Skip to content

Commit

Permalink
fix: Missing BinarySensor from ConfigFlow select (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuyKh authored Sep 10, 2024
1 parent 64ae998 commit 01667cf
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 44 deletions.
4 changes: 2 additions & 2 deletions custom_components/ims/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ async def async_step_user(self, user_input=None):
vol.Required(CONF_MODE, default=DEFAULT_FORECAST_MODE): vol.In(
FORECAST_MODES
),
vol.Optional(CONF_MONITORED_CONDITIONS, default=SENSOR_DESCRIPTIONS_KEYS): cv.multi_select(
SENSOR_DESCRIPTIONS_KEYS
vol.Optional(CONF_MONITORED_CONDITIONS, default=SENSOR_KEYS): cv.multi_select(
SENSOR_KEYS
),
vol.Required(CONF_IMAGES_PATH, default="/tmp"): cv.string,
}
Expand Down
30 changes: 16 additions & 14 deletions custom_components/ims/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,22 @@
}
},
"entity": {
"binary_sensor": {
"ims_is_raining_he": {
"name": "גשם",
"state": {
"on": "יורד",
"off": "לא יורד"
}
},
"ims_is_raining_en": {
"name": "Rain",
"state": {
"on": "Raining",
"off": "Not Raining"
}
}
},
"sensor": {
"ims_city_he": {
"name": "ישוב"
Expand All @@ -64,20 +80,6 @@
"ims_wind_speed_en": {
"name": "Wind Speed"
},
"ims_is_raining_he": {
"name": "גשם",
"state": {
"raining": "יורד",
"not_raining": "לא יורד"
}
},
"ims_is_raining_en": {
"name": "Rain",
"state": {
"raining": "Raining",
"not_raining": "Not Raining"
}
},
"ims_precipitation_he": {
"name": "משקעים"
},
Expand Down
30 changes: 16 additions & 14 deletions custom_components/ims/translations/he.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,22 @@
}
},
"entity": {
"binary_sensor": {
"ims_is_raining_he": {
"name": "גשם",
"state": {
"on": "יורד",
"off": "לא יורד"
}
},
"ims_is_raining_en": {
"name": "Rain",
"state": {
"on": "Raining",
"off": "Not Raining"
}
}
},
"sensor": {
"ims_city_he": {
"name": "ישוב"
Expand All @@ -64,20 +80,6 @@
"ims_wind_speed_en": {
"name": "Wind Speed"
},
"ims_is_raining_he": {
"name": "גשם",
"state": {
"raining": "יורד",
"not_raining": "לא יורד"
}
},
"ims_is_raining_en": {
"name": "Rain",
"state": {
"raining": "Raining",
"not_raining": "Not Raining"
}
},
"ims_precipitation_he": {
"name": "משקעים"
},
Expand Down
30 changes: 16 additions & 14 deletions custom_components/ims/translations/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,22 @@
}
},
"entity": {
"binary_sensor": {
"ims_is_raining_he": {
"name": "Chuva",
"state": {
"on": "A chover",
"off": "Não está a chover"
}
},
"ims_is_raining_en": {
"name": "Chuva",
"state": {
"on": "A chover",
"off": "Não está a chover"
}
}
},
"sensor": {
"ims_city_he": {
"name": "Localidade"
Expand All @@ -62,20 +78,6 @@
"ims_wind_speed_en": {
"name": "Velocidade do Vento"
},
"ims_is_raining_he": {
"name": "Chuva",
"state": {
"raining": "A chover",
"not_raining": "Não está a chover"
}
},
"ims_is_raining_en": {
"name": "Chuva",
"state": {
"raining": "A chover",
"not_raining": "Não está a chover"
}
},
"ims_precipitation_he": {
"name": "Precipitação"
},
Expand Down

0 comments on commit 01667cf

Please sign in to comment.