homeassistant 2025.6.3__py3-none-any.whl → 2025.7.0b0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- homeassistant/__main__.py +4 -8
- homeassistant/auth/mfa_modules/notify.py +4 -4
- homeassistant/auth/mfa_modules/totp.py +5 -5
- homeassistant/bootstrap.py +16 -9
- homeassistant/brands/sony.json +7 -1
- homeassistant/brands/tilt.json +5 -0
- homeassistant/components/abode/__init__.py +3 -73
- homeassistant/components/abode/services.py +90 -0
- homeassistant/components/adax/__init__.py +1 -1
- homeassistant/components/adax/coordinator.py +24 -1
- homeassistant/components/adax/sensor.py +77 -0
- homeassistant/components/aemet/sensor.py +3 -0
- homeassistant/components/agent_dvr/camera.py +2 -2
- homeassistant/components/ai_task/__init__.py +134 -0
- homeassistant/components/ai_task/const.py +34 -0
- homeassistant/components/ai_task/entity.py +103 -0
- homeassistant/components/ai_task/http.py +54 -0
- homeassistant/components/ai_task/icons.json +7 -0
- homeassistant/components/ai_task/manifest.json +9 -0
- homeassistant/components/ai_task/services.yaml +19 -0
- homeassistant/components/ai_task/strings.json +22 -0
- homeassistant/components/ai_task/task.py +75 -0
- homeassistant/components/ai_task/translations/bg.json +1 -0
- homeassistant/components/ai_task/translations/cs.json +22 -0
- homeassistant/components/ai_task/translations/de.json +22 -0
- homeassistant/components/ai_task/translations/el.json +22 -0
- homeassistant/components/ai_task/translations/en.json +22 -0
- homeassistant/components/ai_task/translations/es.json +22 -0
- homeassistant/components/ai_task/translations/et.json +22 -0
- homeassistant/components/ai_task/translations/fr.json +1 -0
- homeassistant/components/ai_task/translations/ga.json +1 -0
- homeassistant/components/ai_task/translations/lt.json +22 -0
- homeassistant/components/ai_task/translations/nl.json +1 -0
- homeassistant/components/ai_task/translations/pt.json +22 -0
- homeassistant/components/ai_task/translations/ru.json +22 -0
- homeassistant/components/ai_task/translations/sk.json +22 -0
- homeassistant/components/ai_task/translations/sv.json +19 -0
- homeassistant/components/ai_task/translations/tr.json +1 -0
- homeassistant/components/ai_task/translations/zh-Hans.json +22 -0
- homeassistant/components/ai_task/translations/zh-Hant.json +22 -0
- homeassistant/components/airly/config_flow.py +3 -3
- homeassistant/components/airnow/coordinator.py +1 -1
- homeassistant/components/airnow/manifest.json +1 -1
- homeassistant/components/airq/manifest.json +1 -1
- homeassistant/components/airthings/__init__.py +6 -20
- homeassistant/components/airthings/coordinator.py +36 -0
- homeassistant/components/airthings/sensor.py +26 -3
- homeassistant/components/airthings/translations/mk.json +11 -0
- homeassistant/components/airtouch5/manifest.json +1 -1
- homeassistant/components/alexa_devices/__init__.py +1 -0
- homeassistant/components/alexa_devices/binary_sensor.py +45 -4
- homeassistant/components/alexa_devices/icons.json +32 -2
- homeassistant/components/alexa_devices/manifest.json +1 -1
- homeassistant/components/alexa_devices/sensor.py +88 -0
- homeassistant/components/alexa_devices/strings.json +15 -0
- homeassistant/components/alexa_devices/translations/cs.json +15 -0
- homeassistant/components/alexa_devices/translations/de.json +15 -0
- homeassistant/components/alexa_devices/translations/el.json +15 -0
- homeassistant/components/alexa_devices/translations/en.json +15 -0
- homeassistant/components/alexa_devices/translations/es.json +15 -0
- homeassistant/components/alexa_devices/translations/et.json +15 -0
- homeassistant/components/alexa_devices/translations/pt.json +15 -0
- homeassistant/components/alexa_devices/translations/sk.json +15 -0
- homeassistant/components/alexa_devices/translations/zh-Hant.json +15 -0
- homeassistant/components/altruist/__init__.py +27 -0
- homeassistant/components/altruist/config_flow.py +107 -0
- homeassistant/components/altruist/const.py +5 -0
- homeassistant/components/altruist/coordinator.py +64 -0
- homeassistant/components/altruist/icons.json +15 -0
- homeassistant/components/altruist/manifest.json +12 -0
- homeassistant/components/altruist/quality_scale.yaml +83 -0
- homeassistant/components/altruist/sensor.py +249 -0
- homeassistant/components/altruist/strings.json +51 -0
- homeassistant/components/altruist/translations/bg.json +41 -0
- homeassistant/components/altruist/translations/cs.json +51 -0
- homeassistant/components/altruist/translations/de.json +51 -0
- homeassistant/components/altruist/translations/el.json +51 -0
- homeassistant/components/altruist/translations/en.json +51 -0
- homeassistant/components/altruist/translations/es.json +51 -0
- homeassistant/components/altruist/translations/et.json +51 -0
- homeassistant/components/altruist/translations/lt.json +51 -0
- homeassistant/components/altruist/translations/nl.json +19 -0
- homeassistant/components/altruist/translations/pt.json +51 -0
- homeassistant/components/altruist/translations/sk.json +51 -0
- homeassistant/components/altruist/translations/sv.json +47 -0
- homeassistant/components/altruist/translations/zh-Hans.json +51 -0
- homeassistant/components/altruist/translations/zh-Hant.json +51 -0
- homeassistant/components/amcrest/__init__.py +4 -50
- homeassistant/components/amcrest/services.py +62 -0
- homeassistant/components/analytics/analytics.py +13 -2
- homeassistant/components/android_ip_webcam/camera.py +16 -0
- homeassistant/components/anthropic/__init__.py +84 -3
- homeassistant/components/anthropic/config_flow.py +107 -53
- homeassistant/components/anthropic/const.py +2 -0
- homeassistant/components/anthropic/conversation.py +41 -25
- homeassistant/components/anthropic/strings.json +34 -18
- homeassistant/components/anthropic/translations/bg.json +0 -12
- homeassistant/components/anthropic/translations/ca.json +0 -14
- homeassistant/components/anthropic/translations/cs.json +33 -18
- homeassistant/components/anthropic/translations/de.json +33 -18
- homeassistant/components/anthropic/translations/el.json +33 -13
- homeassistant/components/anthropic/translations/en-GB.json +0 -22
- homeassistant/components/anthropic/translations/en.json +33 -18
- homeassistant/components/anthropic/translations/es.json +33 -18
- homeassistant/components/anthropic/translations/et.json +33 -18
- homeassistant/components/anthropic/translations/fi.json +1 -11
- homeassistant/components/anthropic/translations/fr.json +0 -22
- homeassistant/components/anthropic/translations/ga.json +1 -17
- homeassistant/components/anthropic/translations/gl.json +0 -17
- homeassistant/components/anthropic/translations/he.json +0 -13
- homeassistant/components/anthropic/translations/hu.json +0 -22
- homeassistant/components/anthropic/translations/id.json +0 -10
- homeassistant/components/anthropic/translations/it.json +0 -12
- homeassistant/components/anthropic/translations/ja.json +0 -17
- homeassistant/components/anthropic/translations/ko.json +0 -13
- homeassistant/components/anthropic/translations/lt.json +33 -18
- homeassistant/components/anthropic/translations/nl.json +15 -11
- homeassistant/components/anthropic/translations/pl.json +0 -10
- homeassistant/components/anthropic/translations/pt-BR.json +1 -11
- homeassistant/components/anthropic/translations/pt.json +33 -18
- homeassistant/components/anthropic/translations/ru.json +0 -22
- homeassistant/components/anthropic/translations/sk.json +33 -18
- homeassistant/components/anthropic/translations/sl.json +0 -12
- homeassistant/components/anthropic/translations/sv.json +20 -18
- homeassistant/components/anthropic/translations/tr.json +0 -22
- homeassistant/components/anthropic/translations/vi.json +1 -14
- homeassistant/components/anthropic/translations/zh-Hans.json +33 -18
- homeassistant/components/anthropic/translations/zh-Hant.json +33 -18
- homeassistant/components/apcupsd/sensor.py +45 -0
- homeassistant/components/api/__init__.py +20 -3
- homeassistant/components/assist_pipeline/pipeline.py +10 -0
- homeassistant/components/assist_satellite/__init__.py +95 -1
- homeassistant/components/assist_satellite/entity.py +159 -1
- homeassistant/components/assist_satellite/icons.json +3 -0
- homeassistant/components/assist_satellite/manifest.json +2 -1
- homeassistant/components/assist_satellite/services.yaml +46 -0
- homeassistant/components/assist_satellite/strings.json +38 -0
- homeassistant/components/assist_satellite/translations/bg.json +15 -0
- homeassistant/components/assist_satellite/translations/cs.json +38 -0
- homeassistant/components/assist_satellite/translations/de.json +38 -0
- homeassistant/components/assist_satellite/translations/el.json +38 -0
- homeassistant/components/assist_satellite/translations/en.json +38 -0
- homeassistant/components/assist_satellite/translations/es.json +38 -0
- homeassistant/components/assist_satellite/translations/et.json +38 -0
- homeassistant/components/assist_satellite/translations/fr.json +30 -0
- homeassistant/components/assist_satellite/translations/ga.json +30 -0
- homeassistant/components/assist_satellite/translations/lt.json +38 -0
- homeassistant/components/assist_satellite/translations/mk.json +22 -1
- homeassistant/components/assist_satellite/translations/pt.json +38 -0
- homeassistant/components/assist_satellite/translations/ru.json +38 -0
- homeassistant/components/assist_satellite/translations/sk.json +38 -0
- homeassistant/components/assist_satellite/translations/sv.json +27 -0
- homeassistant/components/assist_satellite/translations/zh-Hans.json +38 -0
- homeassistant/components/assist_satellite/translations/zh-Hant.json +38 -0
- homeassistant/components/atag/water_heater.py +2 -0
- homeassistant/components/august/translations/mk.json +12 -0
- homeassistant/components/aurora/translations/sv.json +2 -2
- homeassistant/components/automation/helpers.py +2 -3
- homeassistant/components/axis/hub/hub.py +2 -2
- homeassistant/components/backup/__init__.py +4 -2
- homeassistant/components/blink/__init__.py +2 -2
- homeassistant/components/blink/services.py +27 -25
- homeassistant/components/bosch_alarm/manifest.json +1 -1
- homeassistant/components/bosch_alarm/quality_scale.yaml +20 -17
- homeassistant/components/bryant_evolution/translations/el.json +1 -1
- homeassistant/components/bsblan/manifest.json +1 -1
- homeassistant/components/camera/__init__.py +8 -20
- homeassistant/components/camera/manifest.json +1 -1
- homeassistant/components/camera/webrtc.py +9 -0
- homeassistant/components/climate/__init__.py +0 -26
- homeassistant/components/climate/strings.json +3 -0
- homeassistant/components/climate/translations/bg.json +3 -0
- homeassistant/components/climate/translations/cs.json +3 -0
- homeassistant/components/climate/translations/de.json +3 -0
- homeassistant/components/climate/translations/el.json +3 -0
- homeassistant/components/climate/translations/en.json +3 -0
- homeassistant/components/climate/translations/es.json +3 -0
- homeassistant/components/climate/translations/et.json +3 -0
- homeassistant/components/climate/translations/fr.json +3 -0
- homeassistant/components/climate/translations/ga.json +7 -1
- homeassistant/components/climate/translations/he.json +3 -0
- homeassistant/components/climate/translations/id.json +3 -0
- homeassistant/components/climate/translations/lt.json +3 -0
- homeassistant/components/climate/translations/pt.json +3 -0
- homeassistant/components/climate/translations/ru.json +3 -0
- homeassistant/components/climate/translations/sk.json +3 -0
- homeassistant/components/climate/translations/sv.json +3 -0
- homeassistant/components/climate/translations/tr.json +3 -0
- homeassistant/components/climate/translations/zh-Hans.json +3 -0
- homeassistant/components/climate/translations/zh-Hant.json +3 -0
- homeassistant/components/cloud/manifest.json +1 -1
- homeassistant/components/cloudflare/__init__.py +24 -13
- homeassistant/components/command_line/notify.py +4 -23
- homeassistant/components/command_line/sensor.py +3 -30
- homeassistant/components/command_line/utils.py +39 -8
- homeassistant/components/compensation/manifest.json +1 -1
- homeassistant/components/control4/__init__.py +2 -2
- homeassistant/components/conversation/__init__.py +1 -1
- homeassistant/components/conversation/chat_log.py +30 -19
- homeassistant/components/conversation/manifest.json +1 -1
- homeassistant/components/conversation/models.py +13 -1
- homeassistant/components/cover/__init__.py +0 -4
- homeassistant/components/deconz/climate.py +0 -2
- homeassistant/components/deconz/logbook.py +3 -3
- homeassistant/components/derivative/config_flow.py +4 -0
- homeassistant/components/derivative/const.py +1 -0
- homeassistant/components/derivative/manifest.json +1 -1
- homeassistant/components/derivative/sensor.py +105 -22
- homeassistant/components/derivative/strings.json +4 -0
- homeassistant/components/derivative/translations/cs.json +4 -0
- homeassistant/components/derivative/translations/de.json +4 -0
- homeassistant/components/derivative/translations/el.json +4 -0
- homeassistant/components/derivative/translations/en.json +4 -0
- homeassistant/components/derivative/translations/es.json +4 -0
- homeassistant/components/derivative/translations/et.json +4 -0
- homeassistant/components/derivative/translations/lt.json +4 -0
- homeassistant/components/derivative/translations/pt.json +4 -0
- homeassistant/components/derivative/translations/ru.json +1 -0
- homeassistant/components/derivative/translations/sk.json +4 -0
- homeassistant/components/derivative/translations/sv.json +4 -0
- homeassistant/components/derivative/translations/zh-Hans.json +4 -0
- homeassistant/components/derivative/translations/zh-Hant.json +4 -0
- homeassistant/components/device_automation/condition.py +52 -19
- homeassistant/components/devolo_home_control/__init__.py +28 -16
- homeassistant/components/devolo_home_control/climate.py +1 -1
- homeassistant/components/devolo_home_control/const.py +0 -3
- homeassistant/components/devolo_home_control/cover.py +1 -1
- homeassistant/components/devolo_home_control/entity.py +21 -0
- homeassistant/components/devolo_home_control/light.py +1 -1
- homeassistant/components/devolo_home_control/siren.py +1 -1
- homeassistant/components/devolo_home_control/strings.json +21 -0
- homeassistant/components/devolo_home_control/translations/cs.json +21 -0
- homeassistant/components/devolo_home_control/translations/de.json +21 -0
- homeassistant/components/devolo_home_control/translations/el.json +17 -0
- homeassistant/components/devolo_home_control/translations/en.json +21 -0
- homeassistant/components/devolo_home_control/translations/es.json +21 -0
- homeassistant/components/devolo_home_control/translations/et.json +21 -0
- homeassistant/components/devolo_home_control/translations/ga.json +13 -1
- homeassistant/components/devolo_home_control/translations/lt.json +11 -0
- homeassistant/components/devolo_home_control/translations/pt.json +21 -0
- homeassistant/components/devolo_home_control/translations/sk.json +21 -0
- homeassistant/components/devolo_home_control/translations/tr.json +11 -0
- homeassistant/components/devolo_home_control/translations/zh-Hans.json +11 -0
- homeassistant/components/devolo_home_control/translations/zh-Hant.json +21 -0
- homeassistant/components/devolo_home_network/device_tracker.py +2 -0
- homeassistant/components/discord/manifest.json +1 -1
- homeassistant/components/dnsip/sensor.py +4 -3
- homeassistant/components/dormakaba_dkey/manifest.json +1 -1
- homeassistant/components/downloader/__init__.py +2 -2
- homeassistant/components/downloader/services.py +4 -4
- homeassistant/components/ecovacs/binary_sensor.py +4 -5
- homeassistant/components/ecovacs/entity.py +8 -12
- homeassistant/components/ecovacs/number.py +3 -5
- homeassistant/components/ecovacs/select.py +5 -5
- homeassistant/components/ecovacs/sensor.py +2 -4
- homeassistant/components/edl21/manifest.json +1 -1
- homeassistant/components/eheimdigital/number.py +13 -13
- homeassistant/components/eheimdigital/select.py +12 -12
- homeassistant/components/eheimdigital/sensor.py +11 -11
- homeassistant/components/eheimdigital/time.py +10 -12
- homeassistant/components/electric_kiwi/strings.json +7 -1
- homeassistant/components/electric_kiwi/translations/cs.json +6 -0
- homeassistant/components/electric_kiwi/translations/de.json +6 -0
- homeassistant/components/electric_kiwi/translations/el.json +6 -0
- homeassistant/components/electric_kiwi/translations/en-GB.json +6 -0
- homeassistant/components/electric_kiwi/translations/en.json +6 -0
- homeassistant/components/electric_kiwi/translations/es.json +6 -0
- homeassistant/components/electric_kiwi/translations/et.json +6 -0
- homeassistant/components/electric_kiwi/translations/fr.json +6 -0
- homeassistant/components/electric_kiwi/translations/ga.json +14 -1
- homeassistant/components/electric_kiwi/translations/he.json +6 -0
- homeassistant/components/electric_kiwi/translations/id.json +6 -0
- homeassistant/components/electric_kiwi/translations/lt.json +6 -0
- homeassistant/components/electric_kiwi/translations/mk.json +14 -1
- homeassistant/components/electric_kiwi/translations/pt.json +6 -0
- homeassistant/components/electric_kiwi/translations/ru.json +6 -0
- homeassistant/components/electric_kiwi/translations/sk.json +6 -0
- homeassistant/components/electric_kiwi/translations/sv.json +6 -0
- homeassistant/components/electric_kiwi/translations/tr.json +6 -0
- homeassistant/components/electric_kiwi/translations/zh-Hans.json +6 -0
- homeassistant/components/electric_kiwi/translations/zh-Hant.json +6 -0
- homeassistant/components/elkm1/__init__.py +5 -65
- homeassistant/components/elkm1/services.py +78 -0
- homeassistant/components/enphase_envoy/__init__.py +5 -22
- homeassistant/components/enphase_envoy/config_flow.py +2 -2
- homeassistant/components/enphase_envoy/diagnostics.py +6 -4
- homeassistant/components/enphase_envoy/entity.py +2 -2
- homeassistant/components/enphase_envoy/manifest.json +1 -1
- homeassistant/components/enphase_envoy/sensor.py +109 -0
- homeassistant/components/enphase_envoy/strings.json +28 -1
- homeassistant/components/enphase_envoy/translations/bg.json +6 -0
- homeassistant/components/enphase_envoy/translations/cs.json +27 -0
- homeassistant/components/enphase_envoy/translations/de.json +27 -0
- homeassistant/components/enphase_envoy/translations/el.json +27 -0
- homeassistant/components/enphase_envoy/translations/en.json +27 -0
- homeassistant/components/enphase_envoy/translations/es.json +27 -0
- homeassistant/components/enphase_envoy/translations/et.json +27 -0
- homeassistant/components/enphase_envoy/translations/lt.json +30 -0
- homeassistant/components/enphase_envoy/translations/pt.json +27 -0
- homeassistant/components/enphase_envoy/translations/sk.json +30 -0
- homeassistant/components/enphase_envoy/translations/sv.json +18 -0
- homeassistant/components/enphase_envoy/translations/zh-Hans.json +27 -0
- homeassistant/components/enphase_envoy/translations/zh-Hant.json +27 -0
- homeassistant/components/eq3btsmart/__init__.py +1 -7
- homeassistant/components/eq3btsmart/binary_sensor.py +0 -4
- homeassistant/components/eq3btsmart/climate.py +27 -46
- homeassistant/components/eq3btsmart/const.py +10 -9
- homeassistant/components/eq3btsmart/entity.py +38 -5
- homeassistant/components/eq3btsmart/manifest.json +1 -1
- homeassistant/components/eq3btsmart/number.py +18 -24
- homeassistant/components/eq3btsmart/schemas.py +2 -2
- homeassistant/components/eq3btsmart/sensor.py +1 -7
- homeassistant/components/eq3btsmart/switch.py +24 -8
- homeassistant/components/eq3btsmart/translations/nl.json +12 -0
- homeassistant/components/esphome/assist_satellite.py +12 -1
- homeassistant/components/esphome/dashboard.py +1 -3
- homeassistant/components/esphome/entity.py +89 -14
- homeassistant/components/esphome/entry_data.py +22 -2
- homeassistant/components/esphome/manager.py +63 -3
- homeassistant/components/esphome/manifest.json +1 -1
- homeassistant/components/esphome/translations/sv.json +2 -2
- homeassistant/components/evohome/water_heater.py +5 -3
- homeassistant/components/ezviz/select.py +104 -24
- homeassistant/components/ezviz/strings.json +10 -0
- homeassistant/components/ezviz/translations/cs.json +10 -0
- homeassistant/components/ezviz/translations/de.json +10 -0
- homeassistant/components/ezviz/translations/el.json +10 -0
- homeassistant/components/ezviz/translations/en.json +10 -0
- homeassistant/components/ezviz/translations/es.json +10 -0
- homeassistant/components/ezviz/translations/et.json +10 -0
- homeassistant/components/ezviz/translations/pt.json +10 -0
- homeassistant/components/ezviz/translations/sk.json +10 -0
- homeassistant/components/ezviz/translations/zh-Hant.json +10 -0
- homeassistant/components/ffmpeg/__init__.py +10 -41
- homeassistant/components/ffmpeg/const.py +9 -0
- homeassistant/components/ffmpeg/services.py +52 -0
- homeassistant/components/fibaro/cover.py +77 -32
- homeassistant/components/fibaro/light.py +2 -2
- homeassistant/components/fitbit/strings.json +7 -1
- homeassistant/components/fitbit/translations/cs.json +6 -0
- homeassistant/components/fitbit/translations/de.json +6 -0
- homeassistant/components/fitbit/translations/el.json +9 -0
- homeassistant/components/fitbit/translations/en-GB.json +6 -0
- homeassistant/components/fitbit/translations/en.json +6 -0
- homeassistant/components/fitbit/translations/es.json +6 -0
- homeassistant/components/fitbit/translations/et.json +6 -0
- homeassistant/components/fitbit/translations/fr.json +6 -0
- homeassistant/components/fitbit/translations/ga.json +14 -1
- homeassistant/components/fitbit/translations/he.json +6 -0
- homeassistant/components/fitbit/translations/id.json +6 -0
- homeassistant/components/fitbit/translations/lt.json +6 -0
- homeassistant/components/fitbit/translations/mk.json +14 -1
- homeassistant/components/fitbit/translations/pt.json +6 -0
- homeassistant/components/fitbit/translations/ru.json +6 -0
- homeassistant/components/fitbit/translations/sk.json +6 -0
- homeassistant/components/fitbit/translations/sv.json +6 -0
- homeassistant/components/fitbit/translations/tr.json +6 -0
- homeassistant/components/fitbit/translations/zh-Hans.json +6 -0
- homeassistant/components/fitbit/translations/zh-Hant.json +6 -0
- homeassistant/components/flick_electric/translations/mk.json +9 -0
- homeassistant/components/flume/translations/nl.json +13 -0
- homeassistant/components/foscam/__init__.py +1 -1
- homeassistant/components/foscam/config_flow.py +2 -2
- homeassistant/components/foscam/coordinator.py +1 -1
- homeassistant/components/foscam/manifest.json +2 -2
- homeassistant/components/freedompro/climate.py +0 -2
- homeassistant/components/fritz/__init__.py +1 -1
- homeassistant/components/fritz/binary_sensor.py +2 -1
- homeassistant/components/fritz/button.py +3 -8
- homeassistant/components/fritz/coordinator.py +16 -207
- homeassistant/components/fritz/device_tracker.py +3 -8
- homeassistant/components/fritz/entity.py +2 -1
- homeassistant/components/fritz/helpers.py +39 -0
- homeassistant/components/fritz/models.py +182 -0
- homeassistant/components/fritz/sensor.py +2 -1
- homeassistant/components/fritz/services.py +3 -2
- homeassistant/components/fritz/switch.py +3 -9
- homeassistant/components/fritzbox/translations/mk.json +9 -0
- homeassistant/components/fronius/translations/sv.json +1 -1
- homeassistant/components/frontend/__init__.py +1 -2
- homeassistant/components/frontend/manifest.json +1 -1
- homeassistant/components/fully_kiosk/__init__.py +1 -1
- homeassistant/components/fully_kiosk/services.py +65 -63
- homeassistant/components/geocaching/strings.json +7 -1
- homeassistant/components/geocaching/translations/cs.json +6 -0
- homeassistant/components/geocaching/translations/de.json +6 -0
- homeassistant/components/geocaching/translations/el.json +6 -0
- homeassistant/components/geocaching/translations/en-GB.json +6 -0
- homeassistant/components/geocaching/translations/en.json +6 -0
- homeassistant/components/geocaching/translations/es.json +6 -0
- homeassistant/components/geocaching/translations/et.json +6 -0
- homeassistant/components/geocaching/translations/fr.json +6 -0
- homeassistant/components/geocaching/translations/ga.json +14 -1
- homeassistant/components/geocaching/translations/he.json +6 -0
- homeassistant/components/geocaching/translations/id.json +6 -0
- homeassistant/components/geocaching/translations/lt.json +6 -0
- homeassistant/components/geocaching/translations/mk.json +14 -1
- homeassistant/components/geocaching/translations/pt.json +6 -0
- homeassistant/components/geocaching/translations/ru.json +6 -0
- homeassistant/components/geocaching/translations/sk.json +6 -0
- homeassistant/components/geocaching/translations/sv.json +6 -0
- homeassistant/components/geocaching/translations/tr.json +6 -0
- homeassistant/components/geocaching/translations/zh-Hans.json +6 -0
- homeassistant/components/geocaching/translations/zh-Hant.json +6 -0
- homeassistant/components/go2rtc/__init__.py +73 -32
- homeassistant/components/goalzero/sensor.py +1 -0
- homeassistant/components/google/__init__.py +3 -138
- homeassistant/components/google/strings.json +7 -1
- homeassistant/components/google/translations/cs.json +6 -0
- homeassistant/components/google/translations/de.json +6 -0
- homeassistant/components/google/translations/el.json +6 -0
- homeassistant/components/google/translations/en-GB.json +6 -0
- homeassistant/components/google/translations/en.json +6 -0
- homeassistant/components/google/translations/es.json +6 -0
- homeassistant/components/google/translations/et.json +6 -0
- homeassistant/components/google/translations/fr.json +6 -0
- homeassistant/components/google/translations/ga.json +10 -0
- homeassistant/components/google/translations/he.json +6 -0
- homeassistant/components/google/translations/id.json +6 -0
- homeassistant/components/google/translations/lt.json +6 -0
- homeassistant/components/google/translations/mk.json +14 -1
- homeassistant/components/google/translations/pt.json +6 -0
- homeassistant/components/google/translations/ru.json +6 -0
- homeassistant/components/google/translations/sk.json +6 -0
- homeassistant/components/google/translations/sv.json +6 -0
- homeassistant/components/google/translations/tr.json +6 -0
- homeassistant/components/google/translations/zh-Hans.json +6 -0
- homeassistant/components/google/translations/zh-Hant.json +6 -0
- homeassistant/components/google_assistant/helpers.py +5 -6
- homeassistant/components/google_assistant_sdk/__init__.py +4 -54
- homeassistant/components/google_assistant_sdk/services.py +63 -0
- homeassistant/components/google_assistant_sdk/strings.json +7 -1
- homeassistant/components/google_assistant_sdk/translations/cs.json +6 -0
- homeassistant/components/google_assistant_sdk/translations/de.json +6 -0
- homeassistant/components/google_assistant_sdk/translations/el.json +6 -0
- homeassistant/components/google_assistant_sdk/translations/en-GB.json +6 -0
- homeassistant/components/google_assistant_sdk/translations/en.json +6 -0
- homeassistant/components/google_assistant_sdk/translations/es.json +6 -0
- homeassistant/components/google_assistant_sdk/translations/et.json +6 -0
- homeassistant/components/google_assistant_sdk/translations/fr.json +6 -0
- homeassistant/components/google_assistant_sdk/translations/ga.json +12 -0
- homeassistant/components/google_assistant_sdk/translations/he.json +6 -0
- homeassistant/components/google_assistant_sdk/translations/id.json +6 -0
- homeassistant/components/google_assistant_sdk/translations/lt.json +6 -0
- homeassistant/components/google_assistant_sdk/translations/mk.json +14 -1
- homeassistant/components/google_assistant_sdk/translations/pt.json +6 -0
- homeassistant/components/google_assistant_sdk/translations/ru.json +6 -0
- homeassistant/components/google_assistant_sdk/translations/sk.json +6 -0
- homeassistant/components/google_assistant_sdk/translations/sv.json +6 -0
- homeassistant/components/google_assistant_sdk/translations/tr.json +6 -0
- homeassistant/components/google_assistant_sdk/translations/zh-Hans.json +6 -0
- homeassistant/components/google_assistant_sdk/translations/zh-Hant.json +6 -0
- homeassistant/components/google_drive/strings.json +7 -1
- homeassistant/components/google_drive/translations/cs.json +6 -0
- homeassistant/components/google_drive/translations/de.json +6 -0
- homeassistant/components/google_drive/translations/el.json +6 -0
- homeassistant/components/google_drive/translations/en-GB.json +6 -0
- homeassistant/components/google_drive/translations/en.json +6 -0
- homeassistant/components/google_drive/translations/es.json +6 -0
- homeassistant/components/google_drive/translations/et.json +6 -0
- homeassistant/components/google_drive/translations/fr.json +6 -0
- homeassistant/components/google_drive/translations/ga.json +8 -0
- homeassistant/components/google_drive/translations/he.json +6 -0
- homeassistant/components/google_drive/translations/id.json +6 -0
- homeassistant/components/google_drive/translations/lt.json +6 -0
- homeassistant/components/google_drive/translations/mk.json +14 -1
- homeassistant/components/google_drive/translations/pt.json +6 -0
- homeassistant/components/google_drive/translations/ru.json +6 -0
- homeassistant/components/google_drive/translations/sk.json +6 -0
- homeassistant/components/google_drive/translations/sv.json +6 -0
- homeassistant/components/google_drive/translations/tr.json +6 -0
- homeassistant/components/google_drive/translations/zh-Hans.json +6 -0
- homeassistant/components/google_drive/translations/zh-Hant.json +6 -0
- homeassistant/components/google_generative_ai_conversation/__init__.py +78 -5
- homeassistant/components/google_generative_ai_conversation/config_flow.py +101 -47
- homeassistant/components/google_generative_ai_conversation/const.py +5 -1
- homeassistant/components/google_generative_ai_conversation/conversation.py +22 -461
- homeassistant/components/google_generative_ai_conversation/entity.py +477 -0
- homeassistant/components/google_generative_ai_conversation/strings.json +39 -25
- homeassistant/components/google_generative_ai_conversation/translations/bg.json +15 -9
- homeassistant/components/google_generative_ai_conversation/translations/ca.json +0 -14
- homeassistant/components/google_generative_ai_conversation/translations/cs.json +41 -28
- homeassistant/components/google_generative_ai_conversation/translations/de.json +41 -28
- homeassistant/components/google_generative_ai_conversation/translations/el.json +41 -28
- homeassistant/components/google_generative_ai_conversation/translations/en-GB.json +0 -28
- homeassistant/components/google_generative_ai_conversation/translations/en.json +41 -28
- homeassistant/components/google_generative_ai_conversation/translations/es.json +41 -28
- homeassistant/components/google_generative_ai_conversation/translations/et.json +41 -28
- homeassistant/components/google_generative_ai_conversation/translations/fi.json +0 -13
- homeassistant/components/google_generative_ai_conversation/translations/fr.json +0 -25
- homeassistant/components/google_generative_ai_conversation/translations/fy.json +0 -11
- homeassistant/components/google_generative_ai_conversation/translations/ga.json +0 -9
- homeassistant/components/google_generative_ai_conversation/translations/he.json +0 -24
- homeassistant/components/google_generative_ai_conversation/translations/hu.json +0 -28
- homeassistant/components/google_generative_ai_conversation/translations/id.json +0 -23
- homeassistant/components/google_generative_ai_conversation/translations/it.json +0 -18
- homeassistant/components/google_generative_ai_conversation/translations/ja.json +0 -23
- homeassistant/components/google_generative_ai_conversation/translations/ko.json +0 -15
- homeassistant/components/google_generative_ai_conversation/translations/lt.json +41 -28
- homeassistant/components/google_generative_ai_conversation/translations/lv.json +0 -9
- homeassistant/components/google_generative_ai_conversation/translations/nb.json +0 -9
- homeassistant/components/google_generative_ai_conversation/translations/nl.json +17 -17
- homeassistant/components/google_generative_ai_conversation/translations/pl.json +0 -23
- homeassistant/components/google_generative_ai_conversation/translations/pt-BR.json +0 -11
- homeassistant/components/google_generative_ai_conversation/translations/pt.json +41 -28
- homeassistant/components/google_generative_ai_conversation/translations/ro.json +0 -11
- homeassistant/components/google_generative_ai_conversation/translations/ru.json +0 -28
- homeassistant/components/google_generative_ai_conversation/translations/sk.json +41 -28
- homeassistant/components/google_generative_ai_conversation/translations/sl.json +0 -23
- homeassistant/components/google_generative_ai_conversation/translations/sv.json +21 -28
- homeassistant/components/google_generative_ai_conversation/translations/tr.json +0 -23
- homeassistant/components/google_generative_ai_conversation/translations/uk.json +0 -11
- homeassistant/components/google_generative_ai_conversation/translations/vi.json +0 -12
- homeassistant/components/google_generative_ai_conversation/translations/zh-Hans.json +41 -28
- homeassistant/components/google_generative_ai_conversation/translations/zh-Hant.json +41 -28
- homeassistant/components/google_generative_ai_conversation/tts.py +215 -0
- homeassistant/components/google_mail/__init__.py +3 -3
- homeassistant/components/google_mail/services.py +48 -47
- homeassistant/components/google_mail/strings.json +7 -1
- homeassistant/components/google_mail/translations/cs.json +6 -0
- homeassistant/components/google_mail/translations/de.json +6 -0
- homeassistant/components/google_mail/translations/el.json +6 -0
- homeassistant/components/google_mail/translations/en-GB.json +6 -0
- homeassistant/components/google_mail/translations/en.json +6 -0
- homeassistant/components/google_mail/translations/es.json +6 -0
- homeassistant/components/google_mail/translations/et.json +6 -0
- homeassistant/components/google_mail/translations/fr.json +6 -0
- homeassistant/components/google_mail/translations/ga.json +14 -1
- homeassistant/components/google_mail/translations/he.json +6 -0
- homeassistant/components/google_mail/translations/id.json +6 -0
- homeassistant/components/google_mail/translations/lt.json +6 -0
- homeassistant/components/google_mail/translations/mk.json +12 -0
- homeassistant/components/google_mail/translations/pt.json +6 -0
- homeassistant/components/google_mail/translations/ru.json +6 -0
- homeassistant/components/google_mail/translations/sk.json +6 -0
- homeassistant/components/google_mail/translations/sv.json +6 -0
- homeassistant/components/google_mail/translations/tr.json +6 -0
- homeassistant/components/google_mail/translations/zh-Hans.json +6 -0
- homeassistant/components/google_mail/translations/zh-Hant.json +6 -0
- homeassistant/components/google_photos/__init__.py +14 -7
- homeassistant/components/google_photos/services.py +79 -79
- homeassistant/components/google_photos/strings.json +7 -1
- homeassistant/components/google_photos/translations/cs.json +6 -0
- homeassistant/components/google_photos/translations/de.json +6 -0
- homeassistant/components/google_photos/translations/el.json +6 -0
- homeassistant/components/google_photos/translations/en-GB.json +6 -0
- homeassistant/components/google_photos/translations/en.json +6 -0
- homeassistant/components/google_photos/translations/es.json +6 -0
- homeassistant/components/google_photos/translations/et.json +6 -0
- homeassistant/components/google_photos/translations/fr.json +6 -0
- homeassistant/components/google_photos/translations/ga.json +8 -0
- homeassistant/components/google_photos/translations/he.json +6 -0
- homeassistant/components/google_photos/translations/id.json +6 -0
- homeassistant/components/google_photos/translations/lt.json +6 -0
- homeassistant/components/google_photos/translations/mk.json +14 -1
- homeassistant/components/google_photos/translations/pt.json +6 -0
- homeassistant/components/google_photos/translations/ru.json +6 -0
- homeassistant/components/google_photos/translations/sk.json +6 -0
- homeassistant/components/google_photos/translations/sv.json +6 -0
- homeassistant/components/google_photos/translations/tr.json +6 -0
- homeassistant/components/google_photos/translations/zh-Hans.json +6 -0
- homeassistant/components/google_photos/translations/zh-Hant.json +6 -0
- homeassistant/components/google_sheets/__init__.py +12 -80
- homeassistant/components/google_sheets/services.py +88 -0
- homeassistant/components/google_sheets/strings.json +7 -1
- homeassistant/components/google_sheets/translations/cs.json +6 -0
- homeassistant/components/google_sheets/translations/de.json +6 -0
- homeassistant/components/google_sheets/translations/el.json +6 -0
- homeassistant/components/google_sheets/translations/en-GB.json +6 -0
- homeassistant/components/google_sheets/translations/en.json +6 -0
- homeassistant/components/google_sheets/translations/es.json +6 -0
- homeassistant/components/google_sheets/translations/et.json +6 -0
- homeassistant/components/google_sheets/translations/fr.json +6 -0
- homeassistant/components/google_sheets/translations/ga.json +14 -1
- homeassistant/components/google_sheets/translations/he.json +6 -0
- homeassistant/components/google_sheets/translations/id.json +6 -0
- homeassistant/components/google_sheets/translations/lt.json +6 -0
- homeassistant/components/google_sheets/translations/mk.json +10 -0
- homeassistant/components/google_sheets/translations/pt.json +6 -0
- homeassistant/components/google_sheets/translations/ru.json +6 -0
- homeassistant/components/google_sheets/translations/sk.json +6 -0
- homeassistant/components/google_sheets/translations/sv.json +6 -0
- homeassistant/components/google_sheets/translations/tr.json +6 -0
- homeassistant/components/google_sheets/translations/zh-Hans.json +6 -0
- homeassistant/components/google_sheets/translations/zh-Hant.json +6 -0
- homeassistant/components/google_tasks/strings.json +7 -1
- homeassistant/components/google_tasks/translations/cs.json +6 -0
- homeassistant/components/google_tasks/translations/de.json +6 -0
- homeassistant/components/google_tasks/translations/el.json +6 -0
- homeassistant/components/google_tasks/translations/en-GB.json +6 -0
- homeassistant/components/google_tasks/translations/en.json +6 -0
- homeassistant/components/google_tasks/translations/es.json +6 -0
- homeassistant/components/google_tasks/translations/et.json +6 -0
- homeassistant/components/google_tasks/translations/fr.json +10 -0
- homeassistant/components/google_tasks/translations/ga.json +8 -0
- homeassistant/components/google_tasks/translations/he.json +6 -0
- homeassistant/components/google_tasks/translations/id.json +6 -0
- homeassistant/components/google_tasks/translations/lt.json +6 -0
- homeassistant/components/google_tasks/translations/mk.json +14 -1
- homeassistant/components/google_tasks/translations/pt.json +6 -0
- homeassistant/components/google_tasks/translations/ru.json +6 -0
- homeassistant/components/google_tasks/translations/sk.json +6 -0
- homeassistant/components/google_tasks/translations/sv.json +6 -0
- homeassistant/components/google_tasks/translations/tr.json +6 -0
- homeassistant/components/google_tasks/translations/zh-Hans.json +6 -0
- homeassistant/components/google_tasks/translations/zh-Hant.json +6 -0
- homeassistant/components/group/sensor.py +5 -5
- homeassistant/components/habitica/services.py +521 -514
- homeassistant/components/habitica/translations/mk.json +39 -0
- homeassistant/components/hassio/__init__.py +1 -9
- homeassistant/components/hassio/const.py +1 -1
- homeassistant/components/hassio/coordinator.py +1 -1
- homeassistant/components/hassio/translations/lt.json +6 -6
- homeassistant/components/hassio/update_helper.py +3 -6
- homeassistant/components/here_travel_time/coordinator.py +11 -9
- homeassistant/components/here_travel_time/manifest.json +1 -1
- homeassistant/components/here_travel_time/model.py +3 -1
- homeassistant/components/here_travel_time/sensor.py +6 -2
- homeassistant/components/hive/translations/mk.json +8 -0
- homeassistant/components/hive/water_heater.py +3 -1
- homeassistant/components/home_connect/diagnostics.py +20 -2
- homeassistant/components/home_connect/manifest.json +3 -2
- homeassistant/components/home_connect/quality_scale.yaml +71 -0
- homeassistant/components/home_connect/strings.json +7 -1
- homeassistant/components/home_connect/translations/cs.json +6 -0
- homeassistant/components/home_connect/translations/de.json +6 -0
- homeassistant/components/home_connect/translations/el.json +6 -0
- homeassistant/components/home_connect/translations/en-GB.json +6 -0
- homeassistant/components/home_connect/translations/en.json +6 -0
- homeassistant/components/home_connect/translations/es.json +6 -0
- homeassistant/components/home_connect/translations/et.json +6 -0
- homeassistant/components/home_connect/translations/fr.json +6 -0
- homeassistant/components/home_connect/translations/ga.json +8 -0
- homeassistant/components/home_connect/translations/he.json +6 -0
- homeassistant/components/home_connect/translations/id.json +6 -0
- homeassistant/components/home_connect/translations/lt.json +6 -0
- homeassistant/components/home_connect/translations/mk.json +12 -0
- homeassistant/components/home_connect/translations/pt.json +6 -0
- homeassistant/components/home_connect/translations/ru.json +6 -0
- homeassistant/components/home_connect/translations/sk.json +6 -0
- homeassistant/components/home_connect/translations/sv.json +6 -0
- homeassistant/components/home_connect/translations/tr.json +6 -0
- homeassistant/components/home_connect/translations/zh-Hans.json +6 -0
- homeassistant/components/home_connect/translations/zh-Hant.json +6 -0
- homeassistant/components/homeassistant/__init__.py +45 -45
- homeassistant/components/homeassistant/strings.json +1 -0
- homeassistant/components/homeassistant/system_health.py +1 -0
- homeassistant/components/homeassistant/translations/cs.json +1 -0
- homeassistant/components/homeassistant/translations/de.json +1 -0
- homeassistant/components/homeassistant/translations/el.json +2 -1
- homeassistant/components/homeassistant/translations/en.json +1 -0
- homeassistant/components/homeassistant/translations/es.json +1 -0
- homeassistant/components/homeassistant/translations/et.json +1 -0
- homeassistant/components/homeassistant/translations/lt.json +10 -9
- homeassistant/components/homeassistant/translations/pt.json +1 -0
- homeassistant/components/homeassistant/translations/ru.json +1 -0
- homeassistant/components/homeassistant/translations/sk.json +1 -0
- homeassistant/components/homeassistant/translations/sv.json +1 -0
- homeassistant/components/homeassistant/translations/zh-Hans.json +1 -0
- homeassistant/components/homeassistant/translations/zh-Hant.json +1 -0
- homeassistant/components/homeassistant_hardware/firmware_config_flow.py +182 -246
- homeassistant/components/homeassistant_hardware/manifest.json +1 -1
- homeassistant/components/homeassistant_hardware/silabs_multiprotocol_addon.py +6 -15
- homeassistant/components/homeassistant_hardware/strings.json +1 -29
- homeassistant/components/homeassistant_hardware/translations/bg.json +0 -18
- homeassistant/components/homeassistant_hardware/translations/ca.json +0 -28
- homeassistant/components/homeassistant_hardware/translations/cs.json +1 -29
- homeassistant/components/homeassistant_hardware/translations/da.json +0 -10
- homeassistant/components/homeassistant_hardware/translations/de.json +1 -29
- homeassistant/components/homeassistant_hardware/translations/el.json +1 -29
- homeassistant/components/homeassistant_hardware/translations/en-GB.json +0 -31
- homeassistant/components/homeassistant_hardware/translations/en.json +1 -29
- homeassistant/components/homeassistant_hardware/translations/es.json +1 -29
- homeassistant/components/homeassistant_hardware/translations/et.json +1 -29
- homeassistant/components/homeassistant_hardware/translations/fi.json +0 -10
- homeassistant/components/homeassistant_hardware/translations/fr.json +0 -31
- homeassistant/components/homeassistant_hardware/translations/fy.json +0 -3
- homeassistant/components/homeassistant_hardware/translations/he.json +0 -31
- homeassistant/components/homeassistant_hardware/translations/hu.json +0 -31
- homeassistant/components/homeassistant_hardware/translations/id.json +0 -31
- homeassistant/components/homeassistant_hardware/translations/it.json +0 -13
- homeassistant/components/homeassistant_hardware/translations/ja.json +0 -29
- homeassistant/components/homeassistant_hardware/translations/ko.json +0 -29
- homeassistant/components/homeassistant_hardware/translations/lt.json +17 -45
- homeassistant/components/homeassistant_hardware/translations/lv.json +0 -4
- homeassistant/components/homeassistant_hardware/translations/nl.json +0 -22
- homeassistant/components/homeassistant_hardware/translations/pt-BR.json +0 -4
- homeassistant/components/homeassistant_hardware/translations/pt.json +1 -29
- homeassistant/components/homeassistant_hardware/translations/ru.json +1 -29
- homeassistant/components/homeassistant_hardware/translations/sk.json +1 -29
- homeassistant/components/homeassistant_hardware/translations/sv.json +1 -29
- homeassistant/components/homeassistant_hardware/translations/tr.json +0 -31
- homeassistant/components/homeassistant_hardware/translations/uk.json +0 -3
- homeassistant/components/homeassistant_hardware/translations/vi.json +0 -3
- homeassistant/components/homeassistant_hardware/translations/zh-Hans.json +1 -29
- homeassistant/components/homeassistant_hardware/translations/zh-Hant.json +1 -29
- homeassistant/components/homeassistant_hardware/update.py +20 -68
- homeassistant/components/homeassistant_hardware/util.py +53 -2
- homeassistant/components/homeassistant_sky_connect/config_flow.py +44 -7
- homeassistant/components/homeassistant_sky_connect/strings.json +2 -44
- homeassistant/components/homeassistant_sky_connect/translations/bg.json +0 -10
- homeassistant/components/homeassistant_sky_connect/translations/ca.json +2 -44
- homeassistant/components/homeassistant_sky_connect/translations/cs.json +4 -46
- homeassistant/components/homeassistant_sky_connect/translations/da.json +0 -10
- homeassistant/components/homeassistant_sky_connect/translations/de.json +4 -46
- homeassistant/components/homeassistant_sky_connect/translations/el.json +4 -46
- homeassistant/components/homeassistant_sky_connect/translations/en-GB.json +2 -46
- homeassistant/components/homeassistant_sky_connect/translations/en.json +4 -46
- homeassistant/components/homeassistant_sky_connect/translations/es.json +4 -46
- homeassistant/components/homeassistant_sky_connect/translations/et.json +4 -46
- homeassistant/components/homeassistant_sky_connect/translations/fi.json +0 -10
- homeassistant/components/homeassistant_sky_connect/translations/fr.json +2 -46
- homeassistant/components/homeassistant_sky_connect/translations/fy.json +0 -3
- homeassistant/components/homeassistant_sky_connect/translations/he.json +2 -46
- homeassistant/components/homeassistant_sky_connect/translations/hu.json +2 -46
- homeassistant/components/homeassistant_sky_connect/translations/id.json +2 -46
- homeassistant/components/homeassistant_sky_connect/translations/it.json +0 -16
- homeassistant/components/homeassistant_sky_connect/translations/ja.json +2 -46
- homeassistant/components/homeassistant_sky_connect/translations/ko.json +0 -21
- homeassistant/components/homeassistant_sky_connect/translations/lt.json +31 -73
- homeassistant/components/homeassistant_sky_connect/translations/lv.json +0 -3
- homeassistant/components/homeassistant_sky_connect/translations/nl.json +1 -23
- homeassistant/components/homeassistant_sky_connect/translations/pt-BR.json +0 -4
- homeassistant/components/homeassistant_sky_connect/translations/pt.json +4 -46
- homeassistant/components/homeassistant_sky_connect/translations/ru.json +4 -46
- homeassistant/components/homeassistant_sky_connect/translations/sk.json +4 -46
- homeassistant/components/homeassistant_sky_connect/translations/sv.json +4 -46
- homeassistant/components/homeassistant_sky_connect/translations/tr.json +2 -46
- homeassistant/components/homeassistant_sky_connect/translations/uk.json +0 -3
- homeassistant/components/homeassistant_sky_connect/translations/zh-Hans.json +4 -46
- homeassistant/components/homeassistant_sky_connect/translations/zh-Hant.json +4 -46
- homeassistant/components/homeassistant_yellow/config_flow.py +58 -3
- homeassistant/components/homeassistant_yellow/strings.json +1 -25
- homeassistant/components/homeassistant_yellow/translations/bg.json +0 -18
- homeassistant/components/homeassistant_yellow/translations/ca.json +1 -25
- homeassistant/components/homeassistant_yellow/translations/cs.json +2 -26
- homeassistant/components/homeassistant_yellow/translations/da.json +0 -10
- homeassistant/components/homeassistant_yellow/translations/de.json +2 -26
- homeassistant/components/homeassistant_yellow/translations/el.json +2 -26
- homeassistant/components/homeassistant_yellow/translations/en-GB.json +1 -26
- homeassistant/components/homeassistant_yellow/translations/en.json +2 -26
- homeassistant/components/homeassistant_yellow/translations/es.json +2 -26
- homeassistant/components/homeassistant_yellow/translations/et.json +2 -26
- homeassistant/components/homeassistant_yellow/translations/fi.json +0 -10
- homeassistant/components/homeassistant_yellow/translations/fr.json +1 -26
- homeassistant/components/homeassistant_yellow/translations/he.json +1 -26
- homeassistant/components/homeassistant_yellow/translations/hu.json +1 -26
- homeassistant/components/homeassistant_yellow/translations/id.json +1 -26
- homeassistant/components/homeassistant_yellow/translations/it.json +0 -13
- homeassistant/components/homeassistant_yellow/translations/ja.json +1 -26
- homeassistant/components/homeassistant_yellow/translations/ko.json +0 -22
- homeassistant/components/homeassistant_yellow/translations/lt.json +19 -43
- homeassistant/components/homeassistant_yellow/translations/nl.json +1 -19
- homeassistant/components/homeassistant_yellow/translations/pt-BR.json +0 -4
- homeassistant/components/homeassistant_yellow/translations/pt.json +2 -26
- homeassistant/components/homeassistant_yellow/translations/ru.json +2 -26
- homeassistant/components/homeassistant_yellow/translations/sk.json +2 -26
- homeassistant/components/homeassistant_yellow/translations/sv.json +2 -26
- homeassistant/components/homeassistant_yellow/translations/tr.json +1 -26
- homeassistant/components/homeassistant_yellow/translations/uk.json +0 -3
- homeassistant/components/homeassistant_yellow/translations/zh-Hans.json +2 -26
- homeassistant/components/homeassistant_yellow/translations/zh-Hant.json +2 -26
- homeassistant/components/homee/__init__.py +2 -1
- homeassistant/components/homee/climate.py +23 -9
- homeassistant/components/homee/config_flow.py +49 -0
- homeassistant/components/homee/diagnostics.py +43 -0
- homeassistant/components/homee/entity.py +5 -2
- homeassistant/components/homee/event.py +57 -21
- homeassistant/components/homee/lock.py +6 -2
- homeassistant/components/homee/manifest.json +1 -1
- homeassistant/components/homee/number.py +29 -0
- homeassistant/components/homee/select.py +5 -0
- homeassistant/components/homee/sensor.py +10 -0
- homeassistant/components/homee/siren.py +49 -0
- homeassistant/components/homee/strings.json +72 -2
- homeassistant/components/homee/switch.py +1 -0
- homeassistant/components/homee/translations/bg.json +19 -1
- homeassistant/components/homee/translations/cs.json +71 -1
- homeassistant/components/homee/translations/de.json +71 -1
- homeassistant/components/homee/translations/el.json +71 -1
- homeassistant/components/homee/translations/en-GB.json +71 -1
- homeassistant/components/homee/translations/en.json +71 -1
- homeassistant/components/homee/translations/es.json +71 -1
- homeassistant/components/homee/translations/et.json +71 -1
- homeassistant/components/homee/translations/fi.json +7 -0
- homeassistant/components/homee/translations/ga.json +68 -0
- homeassistant/components/homee/translations/he.json +7 -1
- homeassistant/components/homee/translations/hr.json +20 -1
- homeassistant/components/homee/translations/hu.json +47 -1
- homeassistant/components/homee/translations/id.json +7 -1
- homeassistant/components/homee/translations/it.json +13 -1
- homeassistant/components/homee/translations/lt.json +71 -1
- homeassistant/components/homee/translations/nl.json +7 -1
- homeassistant/components/homee/translations/pt.json +71 -1
- homeassistant/components/homee/translations/sk.json +71 -1
- homeassistant/components/homee/translations/sv.json +63 -2
- homeassistant/components/homee/translations/tr.json +62 -1
- homeassistant/components/homee/translations/zh-Hans.json +71 -1
- homeassistant/components/homee/translations/zh-Hant.json +71 -1
- homeassistant/components/homekit_controller/config_flow.py +4 -5
- homeassistant/components/homekit_controller/manifest.json +1 -1
- homeassistant/components/homematicip_cloud/__init__.py +3 -4
- homeassistant/components/homematicip_cloud/climate.py +0 -2
- homeassistant/components/homematicip_cloud/services.py +37 -54
- homeassistant/components/homematicip_cloud/switch.py +29 -30
- homeassistant/components/homewizard/__init__.py +2 -5
- homeassistant/components/homewizard/const.py +7 -1
- homeassistant/components/homewizard/helpers.py +6 -1
- homeassistant/components/homewizard/manifest.json +1 -1
- homeassistant/components/homewizard/select.py +89 -0
- homeassistant/components/homewizard/strings.json +15 -2
- homeassistant/components/homewizard/translations/cs.json +16 -2
- homeassistant/components/homewizard/translations/de.json +16 -3
- homeassistant/components/homewizard/translations/el.json +22 -0
- homeassistant/components/homewizard/translations/en-GB.json +3 -2
- homeassistant/components/homewizard/translations/en.json +13 -0
- homeassistant/components/homewizard/translations/es.json +16 -2
- homeassistant/components/homewizard/translations/et.json +14 -0
- homeassistant/components/homewizard/translations/ga.json +15 -0
- homeassistant/components/homewizard/translations/lt.json +19 -2
- homeassistant/components/homewizard/translations/nl.json +10 -0
- homeassistant/components/homewizard/translations/pt.json +13 -0
- homeassistant/components/homewizard/translations/sk.json +16 -2
- homeassistant/components/homewizard/translations/sv.json +8 -0
- homeassistant/components/homewizard/translations/tr.json +10 -0
- homeassistant/components/homewizard/translations/zh-Hans.json +16 -2
- homeassistant/components/homewizard/translations/zh-Hant.json +16 -2
- homeassistant/components/http/__init__.py +6 -5
- homeassistant/components/http/ban.py +1 -2
- homeassistant/components/http/cors.py +4 -4
- homeassistant/components/huawei_lte/translations/mk.json +5 -0
- homeassistant/components/hue/__init__.py +15 -10
- homeassistant/components/hue/services.py +17 -17
- homeassistant/components/hue/translations/el.json +14 -2
- homeassistant/components/husqvarna_automower/manifest.json +1 -1
- homeassistant/components/husqvarna_automower/strings.json +7 -1
- homeassistant/components/husqvarna_automower/translations/cs.json +6 -0
- homeassistant/components/husqvarna_automower/translations/de.json +6 -0
- homeassistant/components/husqvarna_automower/translations/el.json +6 -0
- homeassistant/components/husqvarna_automower/translations/en-GB.json +6 -0
- homeassistant/components/husqvarna_automower/translations/en.json +6 -0
- homeassistant/components/husqvarna_automower/translations/es.json +6 -0
- homeassistant/components/husqvarna_automower/translations/et.json +6 -0
- homeassistant/components/husqvarna_automower/translations/fr.json +6 -0
- homeassistant/components/husqvarna_automower/translations/ga.json +12 -0
- homeassistant/components/husqvarna_automower/translations/he.json +6 -0
- homeassistant/components/husqvarna_automower/translations/id.json +6 -0
- homeassistant/components/husqvarna_automower/translations/lt.json +6 -0
- homeassistant/components/husqvarna_automower/translations/mk.json +12 -0
- homeassistant/components/husqvarna_automower/translations/pt.json +6 -0
- homeassistant/components/husqvarna_automower/translations/ru.json +6 -0
- homeassistant/components/husqvarna_automower/translations/sk.json +6 -0
- homeassistant/components/husqvarna_automower/translations/sv.json +6 -0
- homeassistant/components/husqvarna_automower/translations/tr.json +6 -0
- homeassistant/components/husqvarna_automower/translations/zh-Hans.json +6 -0
- homeassistant/components/husqvarna_automower/translations/zh-Hant.json +6 -0
- homeassistant/components/husqvarna_automower_ble/__init__.py +4 -2
- homeassistant/components/husqvarna_automower_ble/coordinator.py +5 -4
- homeassistant/components/husqvarna_automower_ble/lawn_mower.py +3 -3
- homeassistant/components/hyperion/manifest.json +1 -1
- homeassistant/components/hyperion/strings.json +3 -0
- homeassistant/components/hyperion/switch.py +3 -0
- homeassistant/components/hyperion/translations/cs.json +3 -0
- homeassistant/components/hyperion/translations/de.json +3 -0
- homeassistant/components/hyperion/translations/el.json +3 -0
- homeassistant/components/hyperion/translations/en.json +3 -0
- homeassistant/components/hyperion/translations/es.json +3 -0
- homeassistant/components/hyperion/translations/et.json +3 -0
- homeassistant/components/hyperion/translations/ga.json +9 -1
- homeassistant/components/hyperion/translations/hu.json +3 -0
- homeassistant/components/hyperion/translations/lt.json +3 -0
- homeassistant/components/hyperion/translations/pt.json +3 -0
- homeassistant/components/hyperion/translations/sk.json +3 -0
- homeassistant/components/hyperion/translations/sv.json +3 -0
- homeassistant/components/hyperion/translations/tr.json +3 -0
- homeassistant/components/hyperion/translations/zh-Hans.json +3 -0
- homeassistant/components/hyperion/translations/zh-Hant.json +3 -0
- homeassistant/components/icloud/__init__.py +14 -3
- homeassistant/components/icloud/services.py +4 -3
- homeassistant/components/imeon_inverter/entity.py +40 -0
- homeassistant/components/imeon_inverter/sensor.py +6 -32
- homeassistant/components/imgw_pib/config_flow.py +3 -1
- homeassistant/components/imgw_pib/manifest.json +1 -1
- homeassistant/components/imgw_pib/translations/el.json +3 -0
- homeassistant/components/immich/__init__.py +2 -1
- homeassistant/components/immich/coordinator.py +11 -1
- homeassistant/components/immich/manifest.json +1 -1
- homeassistant/components/immich/strings.json +5 -0
- homeassistant/components/immich/translations/bg.json +5 -0
- homeassistant/components/immich/translations/cs.json +5 -0
- homeassistant/components/immich/translations/de.json +5 -0
- homeassistant/components/immich/translations/el.json +7 -0
- homeassistant/components/immich/translations/en.json +5 -0
- homeassistant/components/immich/translations/es.json +5 -0
- homeassistant/components/immich/translations/et.json +5 -0
- homeassistant/components/immich/translations/ga.json +5 -0
- homeassistant/components/immich/translations/lt.json +5 -0
- homeassistant/components/immich/translations/pt.json +5 -0
- homeassistant/components/immich/translations/ru.json +5 -0
- homeassistant/components/immich/translations/sk.json +5 -0
- homeassistant/components/immich/translations/sv.json +5 -0
- homeassistant/components/immich/translations/tr.json +5 -0
- homeassistant/components/immich/translations/zh-Hans.json +5 -0
- homeassistant/components/immich/translations/zh-Hant.json +5 -0
- homeassistant/components/immich/update.py +57 -0
- homeassistant/components/insteon/__init__.py +2 -2
- homeassistant/components/insteon/services.py +291 -0
- homeassistant/components/insteon/utils.py +4 -276
- homeassistant/components/intellifire/translations/mk.json +7 -0
- homeassistant/components/intent/timers.py +3 -2
- homeassistant/components/iotty/strings.json +7 -1
- homeassistant/components/iotty/translations/cs.json +6 -0
- homeassistant/components/iotty/translations/de.json +6 -0
- homeassistant/components/iotty/translations/el.json +6 -0
- homeassistant/components/iotty/translations/en-GB.json +6 -0
- homeassistant/components/iotty/translations/en.json +6 -0
- homeassistant/components/iotty/translations/es.json +6 -0
- homeassistant/components/iotty/translations/et.json +6 -0
- homeassistant/components/iotty/translations/fr.json +14 -1
- homeassistant/components/iotty/translations/ga.json +14 -1
- homeassistant/components/iotty/translations/he.json +6 -0
- homeassistant/components/iotty/translations/id.json +6 -0
- homeassistant/components/iotty/translations/lt.json +6 -0
- homeassistant/components/iotty/translations/mk.json +14 -1
- homeassistant/components/iotty/translations/pt.json +6 -0
- homeassistant/components/iotty/translations/ru.json +6 -0
- homeassistant/components/iotty/translations/sk.json +6 -0
- homeassistant/components/iotty/translations/sv.json +6 -0
- homeassistant/components/iotty/translations/tr.json +6 -0
- homeassistant/components/iotty/translations/zh-Hans.json +6 -0
- homeassistant/components/iotty/translations/zh-Hant.json +6 -0
- homeassistant/components/iqvia/manifest.json +1 -1
- homeassistant/components/israel_rail/translations/el.json +1 -1
- homeassistant/components/ista_ecotrend/manifest.json +1 -0
- homeassistant/components/ista_ecotrend/quality_scale.yaml +14 -6
- homeassistant/components/isy994/__init__.py +10 -7
- homeassistant/components/isy994/services.py +0 -19
- homeassistant/components/jellyfin/media_source.py +3 -3
- homeassistant/components/jewish_calendar/__init__.py +1 -1
- homeassistant/components/jewish_calendar/{service.py → services.py} +2 -0
- homeassistant/components/juicenet/__init__.py +20 -93
- homeassistant/components/juicenet/config_flow.py +1 -72
- homeassistant/components/juicenet/const.py +0 -3
- homeassistant/components/juicenet/manifest.json +3 -4
- homeassistant/components/juicenet/strings.json +4 -37
- homeassistant/components/juicenet/translations/bg.json +1 -17
- homeassistant/components/juicenet/translations/ca.json +1 -41
- homeassistant/components/juicenet/translations/cs.json +4 -37
- homeassistant/components/juicenet/translations/da.json +1 -19
- homeassistant/components/juicenet/translations/de.json +4 -37
- homeassistant/components/juicenet/translations/el.json +4 -17
- homeassistant/components/juicenet/translations/en-GB.json +1 -41
- homeassistant/components/juicenet/translations/en.json +4 -37
- homeassistant/components/juicenet/translations/es.json +4 -37
- homeassistant/components/juicenet/translations/et.json +4 -37
- homeassistant/components/juicenet/translations/fi.json +1 -41
- homeassistant/components/juicenet/translations/fr.json +1 -21
- homeassistant/components/juicenet/translations/he.json +1 -20
- homeassistant/components/juicenet/translations/hu.json +1 -41
- homeassistant/components/juicenet/translations/id.json +1 -21
- homeassistant/components/juicenet/translations/it.json +1 -41
- homeassistant/components/juicenet/translations/ja.json +1 -41
- homeassistant/components/juicenet/translations/ko.json +1 -41
- homeassistant/components/juicenet/translations/lb.json +1 -21
- homeassistant/components/juicenet/translations/lt.json +4 -37
- homeassistant/components/juicenet/translations/mk.json +1 -9
- homeassistant/components/juicenet/translations/nb.json +1 -21
- homeassistant/components/juicenet/translations/nl.json +1 -21
- homeassistant/components/juicenet/translations/pl.json +1 -21
- homeassistant/components/juicenet/translations/pt-BR.json +1 -33
- homeassistant/components/juicenet/translations/pt.json +4 -37
- homeassistant/components/juicenet/translations/ro.json +1 -41
- homeassistant/components/juicenet/translations/ru.json +1 -41
- homeassistant/components/juicenet/translations/sk.json +4 -37
- homeassistant/components/juicenet/translations/sl.json +1 -21
- homeassistant/components/juicenet/translations/sv.json +1 -41
- homeassistant/components/juicenet/translations/tr.json +1 -41
- homeassistant/components/juicenet/translations/uk.json +1 -21
- homeassistant/components/juicenet/translations/vi.json +1 -21
- homeassistant/components/juicenet/translations/zh-Hans.json +4 -37
- homeassistant/components/juicenet/translations/zh-Hant.json +4 -37
- homeassistant/components/justnimbus/__init__.py +6 -9
- homeassistant/components/justnimbus/coordinator.py +6 -2
- homeassistant/components/justnimbus/sensor.py +3 -6
- homeassistant/components/kaleidescape/__init__.py +13 -17
- homeassistant/components/kaleidescape/media_player.py +6 -12
- homeassistant/components/kaleidescape/remote.py +7 -12
- homeassistant/components/kaleidescape/sensor.py +9 -14
- homeassistant/components/keenetic_ndms2/__init__.py +10 -19
- homeassistant/components/keenetic_ndms2/binary_sensor.py +3 -7
- homeassistant/components/keenetic_ndms2/config_flow.py +26 -18
- homeassistant/components/keenetic_ndms2/const.py +0 -2
- homeassistant/components/keenetic_ndms2/device_tracker.py +3 -5
- homeassistant/components/keenetic_ndms2/router.py +3 -1
- homeassistant/components/keenetic_ndms2/strings.json +4 -0
- homeassistant/components/keenetic_ndms2/translations/bg.json +3 -0
- homeassistant/components/keenetic_ndms2/translations/cs.json +4 -0
- homeassistant/components/keenetic_ndms2/translations/de.json +4 -0
- homeassistant/components/keenetic_ndms2/translations/el.json +4 -0
- homeassistant/components/keenetic_ndms2/translations/en.json +4 -0
- homeassistant/components/keenetic_ndms2/translations/es.json +4 -0
- homeassistant/components/keenetic_ndms2/translations/et.json +4 -0
- homeassistant/components/keenetic_ndms2/translations/lt.json +4 -0
- homeassistant/components/keenetic_ndms2/translations/nl.json +3 -0
- homeassistant/components/keenetic_ndms2/translations/pt.json +4 -0
- homeassistant/components/keenetic_ndms2/translations/sk.json +4 -0
- homeassistant/components/keenetic_ndms2/translations/sv.json +3 -0
- homeassistant/components/keenetic_ndms2/translations/zh-Hans.json +4 -0
- homeassistant/components/keenetic_ndms2/translations/zh-Hant.json +4 -0
- homeassistant/components/kegtron/__init__.py +12 -16
- homeassistant/components/kegtron/sensor.py +3 -7
- homeassistant/components/keymitt_ble/__init__.py +5 -14
- homeassistant/components/keymitt_ble/coordinator.py +4 -3
- homeassistant/components/keymitt_ble/entity.py +1 -1
- homeassistant/components/keymitt_ble/switch.py +3 -6
- homeassistant/components/kmtronic/__init__.py +10 -45
- homeassistant/components/kmtronic/const.py +0 -5
- homeassistant/components/kmtronic/coordinator.py +50 -0
- homeassistant/components/kmtronic/switch.py +5 -5
- homeassistant/components/knx/manifest.json +1 -0
- homeassistant/components/knx/quality_scale.yaml +11 -8
- homeassistant/components/knx/services.py +14 -4
- homeassistant/components/knx/strings.json +15 -1
- homeassistant/components/knx/translations/bg.json +5 -0
- homeassistant/components/knx/translations/cs.json +14 -0
- homeassistant/components/knx/translations/de.json +14 -0
- homeassistant/components/knx/translations/el.json +17 -2
- homeassistant/components/knx/translations/en-GB.json +14 -0
- homeassistant/components/knx/translations/en.json +14 -0
- homeassistant/components/knx/translations/es.json +14 -0
- homeassistant/components/knx/translations/et.json +14 -0
- homeassistant/components/knx/translations/fr.json +5 -0
- homeassistant/components/knx/translations/ga.json +14 -0
- homeassistant/components/knx/translations/hu.json +14 -0
- homeassistant/components/knx/translations/it.json +14 -0
- homeassistant/components/knx/translations/lt.json +14 -0
- homeassistant/components/knx/translations/pt.json +14 -0
- homeassistant/components/knx/translations/sk.json +14 -0
- homeassistant/components/knx/translations/sv.json +14 -0
- homeassistant/components/knx/translations/tr.json +11 -0
- homeassistant/components/knx/translations/zh-Hans.json +14 -0
- homeassistant/components/knx/translations/zh-Hant.json +14 -0
- homeassistant/components/kodi/__init__.py +19 -21
- homeassistant/components/kodi/const.py +0 -4
- homeassistant/components/kodi/media_player.py +5 -8
- homeassistant/components/konnected/__init__.py +1 -8
- homeassistant/components/konnected/const.py +0 -2
- homeassistant/components/kostal_plenticore/__init__.py +6 -13
- homeassistant/components/kostal_plenticore/coordinator.py +6 -4
- homeassistant/components/kostal_plenticore/diagnostics.py +3 -5
- homeassistant/components/kostal_plenticore/number.py +3 -5
- homeassistant/components/kostal_plenticore/select.py +3 -5
- homeassistant/components/kostal_plenticore/sensor.py +3 -5
- homeassistant/components/kostal_plenticore/switch.py +3 -5
- homeassistant/components/lacrosse_view/__init__.py +5 -12
- homeassistant/components/lacrosse_view/coordinator.py +4 -2
- homeassistant/components/lacrosse_view/diagnostics.py +3 -8
- homeassistant/components/lacrosse_view/sensor.py +4 -7
- homeassistant/components/lametric/__init__.py +6 -8
- homeassistant/components/lametric/button.py +3 -5
- homeassistant/components/lametric/const.py +1 -0
- homeassistant/components/lametric/coordinator.py +4 -2
- homeassistant/components/lametric/diagnostics.py +3 -5
- homeassistant/components/lametric/entity.py +8 -3
- homeassistant/components/lametric/helpers.py +5 -11
- homeassistant/components/lametric/manifest.json +1 -1
- homeassistant/components/lametric/notify.py +8 -6
- homeassistant/components/lametric/number.py +3 -5
- homeassistant/components/lametric/quality_scale.yaml +2 -1
- homeassistant/components/lametric/select.py +3 -5
- homeassistant/components/lametric/sensor.py +3 -5
- homeassistant/components/lametric/strings.json +7 -1
- homeassistant/components/lametric/switch.py +3 -5
- homeassistant/components/lametric/translations/cs.json +6 -0
- homeassistant/components/lametric/translations/de.json +6 -0
- homeassistant/components/lametric/translations/el.json +6 -0
- homeassistant/components/lametric/translations/en-GB.json +6 -0
- homeassistant/components/lametric/translations/en.json +6 -0
- homeassistant/components/lametric/translations/es.json +6 -0
- homeassistant/components/lametric/translations/et.json +6 -0
- homeassistant/components/lametric/translations/fr.json +6 -0
- homeassistant/components/lametric/translations/ga.json +12 -0
- homeassistant/components/lametric/translations/he.json +6 -0
- homeassistant/components/lametric/translations/id.json +6 -0
- homeassistant/components/lametric/translations/lt.json +6 -0
- homeassistant/components/lametric/translations/mk.json +12 -0
- homeassistant/components/lametric/translations/pt.json +6 -0
- homeassistant/components/lametric/translations/ru.json +6 -0
- homeassistant/components/lametric/translations/sk.json +6 -0
- homeassistant/components/lametric/translations/sv.json +6 -0
- homeassistant/components/lametric/translations/tr.json +6 -0
- homeassistant/components/lametric/translations/zh-Hans.json +6 -0
- homeassistant/components/lametric/translations/zh-Hant.json +6 -0
- homeassistant/components/lametric/update.py +46 -0
- homeassistant/components/landisgyr_heat_meter/__init__.py +8 -10
- homeassistant/components/landisgyr_heat_meter/coordinator.py +7 -2
- homeassistant/components/landisgyr_heat_meter/sensor.py +8 -13
- homeassistant/components/lastfm/__init__.py +6 -8
- homeassistant/components/lastfm/config_flow.py +5 -7
- homeassistant/components/lastfm/coordinator.py +2 -0
- homeassistant/components/lastfm/sensor.py +3 -4
- homeassistant/components/laundrify/__init__.py +6 -14
- homeassistant/components/laundrify/binary_sensor.py +3 -6
- homeassistant/components/laundrify/coordinator.py +2 -0
- homeassistant/components/laundrify/sensor.py +3 -6
- homeassistant/components/lcn/__init__.py +22 -27
- homeassistant/components/lcn/binary_sensor.py +10 -15
- homeassistant/components/lcn/climate.py +5 -8
- homeassistant/components/lcn/const.py +0 -4
- homeassistant/components/lcn/cover.py +6 -9
- homeassistant/components/lcn/entity.py +2 -2
- homeassistant/components/lcn/helpers.py +28 -10
- homeassistant/components/lcn/light.py +6 -9
- homeassistant/components/lcn/manifest.json +2 -1
- homeassistant/components/lcn/quality_scale.yaml +77 -0
- homeassistant/components/lcn/scene.py +5 -7
- homeassistant/components/lcn/sensor.py +8 -9
- homeassistant/components/lcn/services.py +18 -7
- homeassistant/components/lcn/switch.py +9 -18
- homeassistant/components/lcn/translations/sv.json +1 -1
- homeassistant/components/lcn/websocket.py +18 -22
- homeassistant/components/ld2410_ble/__init__.py +9 -13
- homeassistant/components/ld2410_ble/binary_sensor.py +3 -5
- homeassistant/components/ld2410_ble/coordinator.py +11 -3
- homeassistant/components/ld2410_ble/models.py +4 -0
- homeassistant/components/ld2410_ble/sensor.py +6 -6
- homeassistant/components/leaone/__init__.py +12 -16
- homeassistant/components/leaone/sensor.py +3 -7
- homeassistant/components/led_ble/__init__.py +8 -13
- homeassistant/components/led_ble/light.py +4 -5
- homeassistant/components/led_ble/models.py +3 -0
- homeassistant/components/letpot/coordinator.py +2 -0
- homeassistant/components/letpot/quality_scale.yaml +3 -3
- homeassistant/components/lg_netcast/__init__.py +16 -10
- homeassistant/components/lg_netcast/device_trigger.py +7 -8
- homeassistant/components/lg_netcast/media_player.py +5 -10
- homeassistant/components/lg_thinq/manifest.json +2 -1
- homeassistant/components/lg_thinq/vacuum.py +2 -1
- homeassistant/components/lifx/__init__.py +10 -15
- homeassistant/components/lifx/binary_sensor.py +4 -5
- homeassistant/components/lifx/button.py +4 -6
- homeassistant/components/lifx/const.py +9 -1
- homeassistant/components/lifx/coordinator.py +4 -2
- homeassistant/components/lifx/diagnostics.py +4 -5
- homeassistant/components/lifx/light.py +5 -7
- homeassistant/components/lifx/manager.py +7 -9
- homeassistant/components/lifx/migration.py +3 -3
- homeassistant/components/lifx/select.py +4 -10
- homeassistant/components/lifx/sensor.py +4 -5
- homeassistant/components/lifx/util.py +6 -4
- homeassistant/components/linear_garage_door/__init__.py +6 -10
- homeassistant/components/linear_garage_door/coordinator.py +4 -2
- homeassistant/components/linear_garage_door/cover.py +3 -5
- homeassistant/components/linear_garage_door/diagnostics.py +3 -5
- homeassistant/components/linear_garage_door/light.py +3 -5
- homeassistant/components/litterrobot/icons.json +3 -0
- homeassistant/components/litterrobot/manifest.json +1 -1
- homeassistant/components/litterrobot/sensor.py +8 -0
- homeassistant/components/litterrobot/strings.json +4 -0
- homeassistant/components/litterrobot/translations/cs.json +4 -0
- homeassistant/components/litterrobot/translations/de.json +4 -0
- homeassistant/components/litterrobot/translations/el.json +4 -0
- homeassistant/components/litterrobot/translations/en.json +4 -0
- homeassistant/components/litterrobot/translations/es.json +4 -0
- homeassistant/components/litterrobot/translations/et.json +4 -0
- homeassistant/components/litterrobot/translations/lt.json +4 -0
- homeassistant/components/litterrobot/translations/pt.json +4 -0
- homeassistant/components/litterrobot/translations/sensor.sv.json +16 -16
- homeassistant/components/litterrobot/translations/sk.json +4 -0
- homeassistant/components/litterrobot/translations/sv.json +13 -9
- homeassistant/components/litterrobot/translations/zh-Hans.json +4 -0
- homeassistant/components/litterrobot/translations/zh-Hant.json +5 -0
- homeassistant/components/livisi/__init__.py +6 -13
- homeassistant/components/livisi/binary_sensor.py +6 -7
- homeassistant/components/livisi/climate.py +4 -6
- homeassistant/components/livisi/coordinator.py +4 -2
- homeassistant/components/livisi/entity.py +2 -3
- homeassistant/components/livisi/switch.py +5 -6
- homeassistant/components/local_calendar/__init__.py +14 -15
- homeassistant/components/local_calendar/calendar.py +4 -4
- homeassistant/components/local_calendar/diagnostics.py +3 -4
- homeassistant/components/lookin/__init__.py +6 -8
- homeassistant/components/lookin/climate.py +4 -5
- homeassistant/components/lookin/coordinator.py +6 -3
- homeassistant/components/lookin/light.py +4 -5
- homeassistant/components/lookin/media_player.py +4 -5
- homeassistant/components/lookin/models.py +4 -0
- homeassistant/components/lookin/sensor.py +3 -5
- homeassistant/components/loqed/__init__.py +7 -17
- homeassistant/components/loqed/coordinator.py +7 -3
- homeassistant/components/loqed/lock.py +3 -7
- homeassistant/components/loqed/sensor.py +3 -5
- homeassistant/components/luftdaten/__init__.py +7 -37
- homeassistant/components/luftdaten/coordinator.py +58 -0
- homeassistant/components/luftdaten/diagnostics.py +4 -7
- homeassistant/components/luftdaten/sensor.py +5 -8
- homeassistant/components/lupusec/__init__.py +4 -4
- homeassistant/components/lupusec/alarm_control_panel.py +4 -4
- homeassistant/components/lupusec/binary_sensor.py +3 -4
- homeassistant/components/lupusec/switch.py +3 -4
- homeassistant/components/lutron/__init__.py +8 -3
- homeassistant/components/lutron/binary_sensor.py +3 -7
- homeassistant/components/lutron/config_flow.py +3 -7
- homeassistant/components/lutron/cover.py +3 -4
- homeassistant/components/lutron/event.py +3 -4
- homeassistant/components/lutron/fan.py +3 -7
- homeassistant/components/lutron/light.py +3 -3
- homeassistant/components/lutron/scene.py +3 -4
- homeassistant/components/lutron/switch.py +3 -4
- homeassistant/components/lyric/__init__.py +8 -65
- homeassistant/components/lyric/climate.py +5 -8
- homeassistant/components/lyric/coordinator.py +89 -0
- homeassistant/components/lyric/entity.py +6 -8
- homeassistant/components/lyric/sensor.py +5 -8
- homeassistant/components/lyric/strings.json +7 -1
- homeassistant/components/lyric/translations/cs.json +6 -0
- homeassistant/components/lyric/translations/de.json +6 -0
- homeassistant/components/lyric/translations/el.json +6 -0
- homeassistant/components/lyric/translations/en-GB.json +6 -0
- homeassistant/components/lyric/translations/en.json +6 -0
- homeassistant/components/lyric/translations/es.json +6 -0
- homeassistant/components/lyric/translations/et.json +6 -0
- homeassistant/components/lyric/translations/fr.json +6 -0
- homeassistant/components/lyric/translations/ga.json +12 -0
- homeassistant/components/lyric/translations/he.json +6 -0
- homeassistant/components/lyric/translations/id.json +6 -0
- homeassistant/components/lyric/translations/lt.json +6 -0
- homeassistant/components/lyric/translations/mk.json +14 -1
- homeassistant/components/lyric/translations/pt.json +6 -0
- homeassistant/components/lyric/translations/ru.json +6 -0
- homeassistant/components/lyric/translations/sk.json +6 -0
- homeassistant/components/lyric/translations/sv.json +6 -0
- homeassistant/components/lyric/translations/tr.json +6 -0
- homeassistant/components/lyric/translations/zh-Hans.json +6 -0
- homeassistant/components/lyric/translations/zh-Hant.json +6 -0
- homeassistant/components/matrix/__init__.py +4 -30
- homeassistant/components/matrix/const.py +5 -0
- homeassistant/components/matrix/services.py +61 -0
- homeassistant/components/matter/binary_sensor.py +30 -0
- homeassistant/components/matter/icons.json +15 -0
- homeassistant/components/matter/light.py +2 -2
- homeassistant/components/matter/sensor.py +89 -6
- homeassistant/components/matter/strings.json +32 -0
- homeassistant/components/matter/translations/bg.json +9 -0
- homeassistant/components/matter/translations/cs.json +32 -0
- homeassistant/components/matter/translations/de.json +32 -0
- homeassistant/components/matter/translations/el.json +32 -0
- homeassistant/components/matter/translations/en.json +32 -0
- homeassistant/components/matter/translations/es.json +32 -0
- homeassistant/components/matter/translations/et.json +32 -0
- homeassistant/components/matter/translations/fi.json +9 -0
- homeassistant/components/matter/translations/fr.json +3 -0
- homeassistant/components/matter/translations/ga.json +3 -0
- homeassistant/components/matter/translations/lt.json +32 -0
- homeassistant/components/matter/translations/nl.json +10 -0
- homeassistant/components/matter/translations/pt.json +32 -0
- homeassistant/components/matter/translations/sk.json +32 -0
- homeassistant/components/matter/translations/sv.json +31 -0
- homeassistant/components/matter/translations/tr.json +3 -0
- homeassistant/components/matter/translations/zh-Hans.json +32 -0
- homeassistant/components/matter/translations/zh-Hant.json +32 -0
- homeassistant/components/matter/vacuum.py +9 -10
- homeassistant/components/maxcube/climate.py +0 -2
- homeassistant/components/mcp/strings.json +2 -2
- homeassistant/components/mcp_server/http.py +0 -1
- homeassistant/components/mealie/__init__.py +2 -2
- homeassistant/components/mealie/manifest.json +1 -1
- homeassistant/components/mealie/services.py +113 -105
- homeassistant/components/meater/__init__.py +9 -74
- homeassistant/components/meater/const.py +4 -0
- homeassistant/components/meater/coordinator.py +77 -0
- homeassistant/components/meater/diagnostics.py +55 -0
- homeassistant/components/meater/sensor.py +59 -42
- homeassistant/components/meater/strings.json +12 -1
- homeassistant/components/meater/translations/cs.json +12 -1
- homeassistant/components/meater/translations/de.json +12 -1
- homeassistant/components/meater/translations/el.json +10 -1
- homeassistant/components/meater/translations/en.json +12 -1
- homeassistant/components/meater/translations/es.json +12 -1
- homeassistant/components/meater/translations/et.json +12 -1
- homeassistant/components/meater/translations/ga.json +19 -1
- homeassistant/components/meater/translations/lt.json +12 -1
- homeassistant/components/meater/translations/mk.json +12 -1
- homeassistant/components/meater/translations/pt.json +12 -1
- homeassistant/components/meater/translations/sk.json +12 -1
- homeassistant/components/meater/translations/sv.json +7 -1
- homeassistant/components/meater/translations/tr.json +12 -1
- homeassistant/components/meater/translations/zh-Hans.json +12 -1
- homeassistant/components/meater/translations/zh-Hant.json +12 -1
- homeassistant/components/media_player/__init__.py +19 -34
- homeassistant/components/media_player/intent.py +19 -4
- homeassistant/components/melcloud/strings.json +0 -10
- homeassistant/components/melcloud/translations/ca.json +0 -9
- homeassistant/components/melcloud/translations/cs.json +0 -10
- homeassistant/components/melcloud/translations/de.json +0 -10
- homeassistant/components/melcloud/translations/el.json +0 -10
- homeassistant/components/melcloud/translations/en-GB.json +0 -10
- homeassistant/components/melcloud/translations/en.json +0 -10
- homeassistant/components/melcloud/translations/es.json +0 -10
- homeassistant/components/melcloud/translations/et.json +0 -10
- homeassistant/components/melcloud/translations/fi.json +0 -9
- homeassistant/components/melcloud/translations/fr.json +0 -8
- homeassistant/components/melcloud/translations/fy.json +1 -7
- homeassistant/components/melcloud/translations/hu.json +0 -10
- homeassistant/components/melcloud/translations/id.json +0 -9
- homeassistant/components/melcloud/translations/it.json +0 -9
- homeassistant/components/melcloud/translations/ja.json +0 -9
- homeassistant/components/melcloud/translations/ko.json +0 -9
- homeassistant/components/melcloud/translations/lt.json +0 -10
- homeassistant/components/melcloud/translations/nl.json +0 -5
- homeassistant/components/melcloud/translations/pl.json +0 -9
- homeassistant/components/melcloud/translations/pt-BR.json +0 -9
- homeassistant/components/melcloud/translations/pt.json +0 -10
- homeassistant/components/melcloud/translations/ru.json +0 -10
- homeassistant/components/melcloud/translations/sk.json +0 -10
- homeassistant/components/melcloud/translations/sv.json +0 -10
- homeassistant/components/melcloud/translations/tr.json +0 -10
- homeassistant/components/melcloud/translations/zh-Hans.json +0 -10
- homeassistant/components/melcloud/translations/zh-Hant.json +0 -10
- homeassistant/components/microbees/strings.json +7 -1
- homeassistant/components/microbees/translations/cs.json +6 -0
- homeassistant/components/microbees/translations/de.json +6 -0
- homeassistant/components/microbees/translations/el.json +6 -0
- homeassistant/components/microbees/translations/en-GB.json +6 -0
- homeassistant/components/microbees/translations/en.json +6 -0
- homeassistant/components/microbees/translations/es.json +6 -0
- homeassistant/components/microbees/translations/et.json +6 -0
- homeassistant/components/microbees/translations/fr.json +6 -0
- homeassistant/components/microbees/translations/ga.json +14 -1
- homeassistant/components/microbees/translations/he.json +6 -0
- homeassistant/components/microbees/translations/id.json +6 -0
- homeassistant/components/microbees/translations/lt.json +6 -0
- homeassistant/components/microbees/translations/mk.json +14 -1
- homeassistant/components/microbees/translations/pt.json +6 -0
- homeassistant/components/microbees/translations/ru.json +6 -0
- homeassistant/components/microbees/translations/sk.json +6 -0
- homeassistant/components/microbees/translations/sv.json +6 -0
- homeassistant/components/microbees/translations/tr.json +6 -0
- homeassistant/components/microbees/translations/zh-Hans.json +6 -0
- homeassistant/components/microbees/translations/zh-Hant.json +6 -0
- homeassistant/components/miele/const.py +27 -0
- homeassistant/components/miele/icons.json +21 -24
- homeassistant/components/miele/sensor.py +14 -34
- homeassistant/components/miele/strings.json +28 -25
- homeassistant/components/miele/translations/bg.json +19 -18
- homeassistant/components/miele/translations/ca.json +0 -7
- homeassistant/components/miele/translations/cs.json +27 -24
- homeassistant/components/miele/translations/de.json +27 -24
- homeassistant/components/miele/translations/el.json +28 -3
- homeassistant/components/miele/translations/en-GB.json +7 -27
- homeassistant/components/miele/translations/en.json +26 -23
- homeassistant/components/miele/translations/es.json +27 -24
- homeassistant/components/miele/translations/et.json +27 -24
- homeassistant/components/miele/translations/fr.json +9 -4
- homeassistant/components/miele/translations/ga.json +9 -27
- homeassistant/components/miele/translations/he.json +6 -26
- homeassistant/components/miele/translations/hu.json +1 -27
- homeassistant/components/miele/translations/id.json +6 -0
- homeassistant/components/miele/translations/it.json +1 -27
- homeassistant/components/miele/translations/lt.json +27 -24
- homeassistant/components/miele/translations/mk.json +12 -0
- homeassistant/components/miele/translations/nl.json +24 -0
- homeassistant/components/miele/translations/pt.json +27 -24
- homeassistant/components/miele/translations/ru.json +6 -0
- homeassistant/components/miele/translations/sk.json +27 -24
- homeassistant/components/miele/translations/sv.json +27 -24
- homeassistant/components/miele/translations/tr.json +9 -7
- homeassistant/components/miele/translations/zh-Hans.json +27 -24
- homeassistant/components/miele/translations/zh-Hant.json +27 -24
- homeassistant/components/min_max/translations/pt.json +1 -1
- homeassistant/components/modbus/manifest.json +1 -1
- homeassistant/components/monzo/strings.json +7 -1
- homeassistant/components/monzo/translations/cs.json +6 -0
- homeassistant/components/monzo/translations/de.json +6 -0
- homeassistant/components/monzo/translations/el.json +6 -0
- homeassistant/components/monzo/translations/en-GB.json +6 -0
- homeassistant/components/monzo/translations/en.json +6 -0
- homeassistant/components/monzo/translations/es.json +6 -0
- homeassistant/components/monzo/translations/et.json +6 -0
- homeassistant/components/monzo/translations/fr.json +14 -1
- homeassistant/components/monzo/translations/ga.json +14 -1
- homeassistant/components/monzo/translations/he.json +6 -0
- homeassistant/components/monzo/translations/id.json +6 -0
- homeassistant/components/monzo/translations/lt.json +6 -0
- homeassistant/components/monzo/translations/mk.json +14 -1
- homeassistant/components/monzo/translations/pt.json +6 -0
- homeassistant/components/monzo/translations/ru.json +6 -0
- homeassistant/components/monzo/translations/sk.json +6 -0
- homeassistant/components/monzo/translations/sv.json +6 -0
- homeassistant/components/monzo/translations/tr.json +6 -0
- homeassistant/components/monzo/translations/zh-Hans.json +6 -0
- homeassistant/components/monzo/translations/zh-Hant.json +6 -0
- homeassistant/components/motion_blinds/translations/el.json +7 -3
- homeassistant/components/motionmount/translations/el.json +1 -1
- homeassistant/components/mqtt/__init__.py +2 -4
- homeassistant/components/mqtt/client.py +8 -14
- homeassistant/components/mqtt/config_flow.py +42 -6
- homeassistant/components/mqtt/entity.py +6 -2
- homeassistant/components/mqtt/icons.json +5 -0
- homeassistant/components/mqtt/sensor.py +3 -40
- homeassistant/components/mqtt/strings.json +26 -5
- homeassistant/components/mqtt/translations/cs.json +7 -5
- homeassistant/components/mqtt/translations/de.json +25 -4
- homeassistant/components/mqtt/translations/el.json +11 -4
- homeassistant/components/mqtt/translations/en-GB.json +1 -5
- homeassistant/components/mqtt/translations/en.json +26 -5
- homeassistant/components/mqtt/translations/es.json +25 -4
- homeassistant/components/mqtt/translations/et.json +25 -4
- homeassistant/components/mqtt/translations/fr.json +0 -5
- homeassistant/components/mqtt/translations/fy.json +0 -1
- homeassistant/components/mqtt/translations/ga.json +0 -7
- homeassistant/components/mqtt/translations/he.json +0 -5
- homeassistant/components/mqtt/translations/hu.json +0 -5
- homeassistant/components/mqtt/translations/id.json +0 -4
- homeassistant/components/mqtt/translations/it.json +0 -4
- homeassistant/components/mqtt/translations/ja.json +0 -4
- homeassistant/components/mqtt/translations/lt.json +0 -5
- homeassistant/components/mqtt/translations/nl.json +0 -5
- homeassistant/components/mqtt/translations/pt.json +24 -5
- homeassistant/components/mqtt/translations/ru.json +18 -5
- homeassistant/components/mqtt/translations/sk.json +25 -4
- homeassistant/components/mqtt/translations/sl.json +0 -3
- homeassistant/components/mqtt/translations/sv.json +3 -6
- homeassistant/components/mqtt/translations/tr.json +0 -4
- homeassistant/components/mqtt/translations/zh-Hans.json +0 -5
- homeassistant/components/mqtt/translations/zh-Hant.json +7 -5
- homeassistant/components/mqtt/triggers.yaml +14 -0
- homeassistant/components/mqtt/util.py +2 -4
- homeassistant/components/music_assistant/__init__.py +33 -2
- homeassistant/components/music_assistant/button.py +53 -0
- homeassistant/components/music_assistant/helpers.py +28 -0
- homeassistant/components/music_assistant/icons.json +7 -0
- homeassistant/components/music_assistant/media_player.py +11 -50
- homeassistant/components/music_assistant/strings.json +7 -0
- homeassistant/components/music_assistant/translations/cs.json +7 -0
- homeassistant/components/music_assistant/translations/de.json +7 -0
- homeassistant/components/music_assistant/translations/el.json +7 -0
- homeassistant/components/music_assistant/translations/en.json +7 -0
- homeassistant/components/music_assistant/translations/es.json +7 -0
- homeassistant/components/music_assistant/translations/et.json +7 -0
- homeassistant/components/music_assistant/translations/lt.json +7 -0
- homeassistant/components/music_assistant/translations/pt.json +7 -0
- homeassistant/components/music_assistant/translations/sk.json +7 -0
- homeassistant/components/music_assistant/translations/zh-Hans.json +7 -0
- homeassistant/components/music_assistant/translations/zh-Hant.json +7 -0
- homeassistant/components/mysensors/manifest.json +1 -1
- homeassistant/components/mysensors/translations/el.json +4 -2
- homeassistant/components/myuplink/strings.json +7 -1
- homeassistant/components/myuplink/translations/cs.json +6 -0
- homeassistant/components/myuplink/translations/de.json +6 -0
- homeassistant/components/myuplink/translations/el.json +6 -0
- homeassistant/components/myuplink/translations/en-GB.json +6 -0
- homeassistant/components/myuplink/translations/en.json +6 -0
- homeassistant/components/myuplink/translations/es.json +6 -0
- homeassistant/components/myuplink/translations/et.json +6 -0
- homeassistant/components/myuplink/translations/fr.json +6 -0
- homeassistant/components/myuplink/translations/ga.json +14 -1
- homeassistant/components/myuplink/translations/he.json +6 -0
- homeassistant/components/myuplink/translations/id.json +6 -0
- homeassistant/components/myuplink/translations/lt.json +6 -0
- homeassistant/components/myuplink/translations/mk.json +14 -1
- homeassistant/components/myuplink/translations/pt.json +6 -0
- homeassistant/components/myuplink/translations/ru.json +6 -0
- homeassistant/components/myuplink/translations/sk.json +6 -0
- homeassistant/components/myuplink/translations/sv.json +6 -0
- homeassistant/components/myuplink/translations/tr.json +6 -0
- homeassistant/components/myuplink/translations/zh-Hans.json +6 -0
- homeassistant/components/myuplink/translations/zh-Hant.json +6 -0
- homeassistant/components/neato/manifest.json +1 -1
- homeassistant/components/neato/strings.json +7 -1
- homeassistant/components/neato/translations/cs.json +6 -0
- homeassistant/components/neato/translations/de.json +6 -0
- homeassistant/components/neato/translations/el.json +6 -0
- homeassistant/components/neato/translations/en-GB.json +6 -0
- homeassistant/components/neato/translations/en.json +6 -0
- homeassistant/components/neato/translations/es.json +6 -0
- homeassistant/components/neato/translations/et.json +6 -0
- homeassistant/components/neato/translations/fr.json +6 -0
- homeassistant/components/neato/translations/ga.json +14 -1
- homeassistant/components/neato/translations/he.json +6 -0
- homeassistant/components/neato/translations/id.json +6 -0
- homeassistant/components/neato/translations/lt.json +6 -0
- homeassistant/components/neato/translations/mk.json +14 -1
- homeassistant/components/neato/translations/pt.json +6 -0
- homeassistant/components/neato/translations/ru.json +6 -0
- homeassistant/components/neato/translations/sk.json +6 -0
- homeassistant/components/neato/translations/sv.json +6 -0
- homeassistant/components/neato/translations/tr.json +6 -0
- homeassistant/components/neato/translations/zh-Hans.json +6 -0
- homeassistant/components/neato/translations/zh-Hant.json +6 -0
- homeassistant/components/ness_alarm/manifest.json +1 -1
- homeassistant/components/nest/climate.py +0 -2
- homeassistant/components/nest/strings.json +7 -1
- homeassistant/components/nest/translations/cs.json +6 -0
- homeassistant/components/nest/translations/de.json +6 -0
- homeassistant/components/nest/translations/el.json +6 -0
- homeassistant/components/nest/translations/en-GB.json +6 -0
- homeassistant/components/nest/translations/en.json +6 -0
- homeassistant/components/nest/translations/es.json +6 -0
- homeassistant/components/nest/translations/et.json +6 -0
- homeassistant/components/nest/translations/fr.json +6 -0
- homeassistant/components/nest/translations/ga.json +8 -0
- homeassistant/components/nest/translations/he.json +6 -0
- homeassistant/components/nest/translations/id.json +6 -0
- homeassistant/components/nest/translations/lt.json +6 -0
- homeassistant/components/nest/translations/mk.json +14 -1
- homeassistant/components/nest/translations/pt.json +6 -0
- homeassistant/components/nest/translations/ru.json +6 -0
- homeassistant/components/nest/translations/sk.json +6 -0
- homeassistant/components/nest/translations/sv.json +7 -1
- homeassistant/components/nest/translations/tr.json +6 -0
- homeassistant/components/nest/translations/zh-Hans.json +6 -0
- homeassistant/components/nest/translations/zh-Hant.json +6 -0
- homeassistant/components/netatmo/manifest.json +1 -1
- homeassistant/components/netatmo/strings.json +7 -1
- homeassistant/components/netatmo/translations/cs.json +6 -0
- homeassistant/components/netatmo/translations/de.json +6 -0
- homeassistant/components/netatmo/translations/el.json +6 -0
- homeassistant/components/netatmo/translations/en-GB.json +6 -0
- homeassistant/components/netatmo/translations/en.json +6 -0
- homeassistant/components/netatmo/translations/es.json +6 -0
- homeassistant/components/netatmo/translations/et.json +6 -0
- homeassistant/components/netatmo/translations/fr.json +6 -0
- homeassistant/components/netatmo/translations/ga.json +12 -0
- homeassistant/components/netatmo/translations/he.json +6 -0
- homeassistant/components/netatmo/translations/id.json +6 -0
- homeassistant/components/netatmo/translations/lt.json +6 -0
- homeassistant/components/netatmo/translations/mk.json +12 -0
- homeassistant/components/netatmo/translations/pt.json +6 -0
- homeassistant/components/netatmo/translations/ru.json +6 -0
- homeassistant/components/netatmo/translations/sk.json +6 -0
- homeassistant/components/netatmo/translations/sv.json +6 -0
- homeassistant/components/netatmo/translations/tr.json +6 -0
- homeassistant/components/netatmo/translations/zh-Hans.json +6 -0
- homeassistant/components/netatmo/translations/zh-Hant.json +6 -0
- homeassistant/components/netgear/translations/mk.json +7 -0
- homeassistant/components/netgear_lte/__init__.py +1 -1
- homeassistant/components/netgear_lte/services.py +33 -25
- homeassistant/components/network/__init__.py +1 -3
- homeassistant/components/nextbus/manifest.json +1 -1
- homeassistant/components/nextcloud/translations/mk.json +9 -0
- homeassistant/components/nextdns/binary_sensor.py +8 -25
- homeassistant/components/nextdns/button.py +4 -19
- homeassistant/components/nextdns/coordinator.py +4 -13
- homeassistant/components/nextdns/entity.py +35 -0
- homeassistant/components/nextdns/sensor.py +13 -27
- homeassistant/components/nextdns/strings.json +10 -1
- homeassistant/components/nextdns/switch.py +3 -9
- homeassistant/components/nextdns/translations/ar.json +0 -7
- homeassistant/components/nextdns/translations/bg.json +1 -1
- homeassistant/components/nextdns/translations/ca.json +0 -5
- homeassistant/components/nextdns/translations/cs.json +10 -1
- homeassistant/components/nextdns/translations/de.json +10 -1
- homeassistant/components/nextdns/translations/el.json +10 -1
- homeassistant/components/nextdns/translations/en-GB.json +5 -2
- homeassistant/components/nextdns/translations/en.json +10 -1
- homeassistant/components/nextdns/translations/es.json +10 -1
- homeassistant/components/nextdns/translations/et.json +10 -1
- homeassistant/components/nextdns/translations/fi.json +0 -5
- homeassistant/components/nextdns/translations/fr.json +10 -1
- homeassistant/components/nextdns/translations/ga.json +22 -0
- homeassistant/components/nextdns/translations/he.json +0 -5
- homeassistant/components/nextdns/translations/hu.json +0 -5
- homeassistant/components/nextdns/translations/id.json +0 -5
- homeassistant/components/nextdns/translations/it.json +0 -5
- homeassistant/components/nextdns/translations/ja.json +0 -5
- homeassistant/components/nextdns/translations/ko.json +0 -5
- homeassistant/components/nextdns/translations/lt.json +10 -1
- homeassistant/components/nextdns/translations/lv.json +0 -5
- homeassistant/components/nextdns/translations/mk.json +11 -1
- homeassistant/components/nextdns/translations/nb.json +0 -5
- homeassistant/components/nextdns/translations/nl.json +0 -5
- homeassistant/components/nextdns/translations/pl.json +7 -1
- homeassistant/components/nextdns/translations/pt-BR.json +0 -5
- homeassistant/components/nextdns/translations/pt.json +10 -1
- homeassistant/components/nextdns/translations/ro.json +0 -5
- homeassistant/components/nextdns/translations/ru.json +10 -1
- homeassistant/components/nextdns/translations/sk.json +10 -1
- homeassistant/components/nextdns/translations/sv.json +7 -1
- homeassistant/components/nextdns/translations/tr.json +10 -1
- homeassistant/components/nextdns/translations/uk.json +0 -5
- homeassistant/components/nextdns/translations/zh-Hans.json +10 -1
- homeassistant/components/nextdns/translations/zh-Hant.json +10 -1
- homeassistant/components/nfandroidtv/__init__.py +1 -10
- homeassistant/components/nfandroidtv/notify.py +32 -19
- homeassistant/components/niko_home_control/config_flow.py +0 -12
- homeassistant/components/niko_home_control/light.py +2 -63
- homeassistant/components/niko_home_control/strings.json +0 -6
- homeassistant/components/niko_home_control/translations/cs.json +0 -6
- homeassistant/components/niko_home_control/translations/de.json +0 -6
- homeassistant/components/niko_home_control/translations/el.json +0 -6
- homeassistant/components/niko_home_control/translations/en-GB.json +0 -6
- homeassistant/components/niko_home_control/translations/en.json +0 -6
- homeassistant/components/niko_home_control/translations/es.json +0 -6
- homeassistant/components/niko_home_control/translations/et.json +0 -6
- homeassistant/components/niko_home_control/translations/hu.json +0 -6
- homeassistant/components/niko_home_control/translations/id.json +0 -5
- homeassistant/components/niko_home_control/translations/it.json +0 -6
- homeassistant/components/niko_home_control/translations/ja.json +0 -6
- homeassistant/components/niko_home_control/translations/lt.json +0 -6
- homeassistant/components/niko_home_control/translations/nl.json +0 -6
- homeassistant/components/niko_home_control/translations/pt.json +0 -6
- homeassistant/components/niko_home_control/translations/ru.json +0 -6
- homeassistant/components/niko_home_control/translations/sk.json +0 -6
- homeassistant/components/niko_home_control/translations/sv.json +0 -6
- homeassistant/components/niko_home_control/translations/tr.json +0 -6
- homeassistant/components/niko_home_control/translations/zh-Hans.json +0 -6
- homeassistant/components/niko_home_control/translations/zh-Hant.json +0 -6
- homeassistant/components/nina/__init__.py +5 -7
- homeassistant/components/nina/binary_sensor.py +4 -3
- homeassistant/components/nina/coordinator.py +2 -0
- homeassistant/components/nmbs/config_flow.py +0 -65
- homeassistant/components/nmbs/sensor.py +11 -103
- homeassistant/components/nmbs/strings.json +0 -6
- homeassistant/components/nmbs/translations/bg.json +0 -5
- homeassistant/components/nmbs/translations/cs.json +0 -6
- homeassistant/components/nmbs/translations/de.json +0 -6
- homeassistant/components/nmbs/translations/el.json +0 -6
- homeassistant/components/nmbs/translations/en-GB.json +0 -6
- homeassistant/components/nmbs/translations/en.json +0 -6
- homeassistant/components/nmbs/translations/es.json +0 -6
- homeassistant/components/nmbs/translations/et.json +0 -6
- homeassistant/components/nmbs/translations/ga.json +0 -6
- homeassistant/components/nmbs/translations/hu.json +0 -6
- homeassistant/components/nmbs/translations/ja.json +0 -5
- homeassistant/components/nmbs/translations/lt.json +0 -6
- homeassistant/components/nmbs/translations/nl.json +0 -5
- homeassistant/components/nmbs/translations/pt-BR.json +0 -5
- homeassistant/components/nmbs/translations/pt.json +0 -6
- homeassistant/components/nmbs/translations/ru.json +0 -6
- homeassistant/components/nmbs/translations/sk.json +0 -6
- homeassistant/components/nmbs/translations/sv.json +0 -6
- homeassistant/components/nmbs/translations/tr.json +0 -6
- homeassistant/components/nmbs/translations/zh-Hans.json +0 -6
- homeassistant/components/nmbs/translations/zh-Hant.json +0 -6
- homeassistant/components/nobo_hub/translations/el.json +4 -0
- homeassistant/components/nordpool/services.py +2 -0
- homeassistant/components/notify/legacy.py +1 -2
- homeassistant/components/ntfy/__init__.py +5 -6
- homeassistant/components/ntfy/config_flow.py +115 -0
- homeassistant/components/ntfy/coordinator.py +74 -0
- homeassistant/components/ntfy/icons.json +62 -0
- homeassistant/components/ntfy/notify.py +3 -2
- homeassistant/components/ntfy/quality_scale.yaml +1 -1
- homeassistant/components/ntfy/sensor.py +272 -0
- homeassistant/components/ntfy/strings.json +111 -2
- homeassistant/components/ntfy/translations/bg.json +49 -1
- homeassistant/components/ntfy/translations/cs.json +110 -1
- homeassistant/components/ntfy/translations/de.json +110 -1
- homeassistant/components/ntfy/translations/el.json +110 -1
- homeassistant/components/ntfy/translations/en.json +110 -1
- homeassistant/components/ntfy/translations/es.json +110 -1
- homeassistant/components/ntfy/translations/et.json +110 -1
- homeassistant/components/ntfy/translations/ga.json +17 -0
- homeassistant/components/ntfy/translations/lt.json +112 -2
- homeassistant/components/ntfy/translations/nl.json +27 -1
- homeassistant/components/ntfy/translations/pt.json +110 -1
- homeassistant/components/ntfy/translations/ru.json +28 -1
- homeassistant/components/ntfy/translations/sk.json +110 -1
- homeassistant/components/ntfy/translations/sv.json +100 -1
- homeassistant/components/ntfy/translations/tr.json +32 -1
- homeassistant/components/ntfy/translations/zh-Hans.json +110 -1
- homeassistant/components/ntfy/translations/zh-Hant.json +110 -1
- homeassistant/components/nuki/lock.py +2 -2
- homeassistant/components/nut/translations/fi.json +4 -1
- homeassistant/components/nzbget/__init__.py +11 -43
- homeassistant/components/nzbget/services.py +59 -0
- homeassistant/components/nzbget/strings.json +5 -0
- homeassistant/components/nzbget/translations/bg.json +5 -0
- homeassistant/components/nzbget/translations/cs.json +5 -0
- homeassistant/components/nzbget/translations/de.json +5 -0
- homeassistant/components/nzbget/translations/el.json +5 -0
- homeassistant/components/nzbget/translations/en-GB.json +5 -0
- homeassistant/components/nzbget/translations/en.json +5 -0
- homeassistant/components/nzbget/translations/es.json +5 -0
- homeassistant/components/nzbget/translations/et.json +5 -0
- homeassistant/components/nzbget/translations/fr.json +5 -0
- homeassistant/components/nzbget/translations/ga.json +7 -1
- homeassistant/components/nzbget/translations/hu.json +5 -0
- homeassistant/components/nzbget/translations/it.json +5 -0
- homeassistant/components/nzbget/translations/lt.json +5 -0
- homeassistant/components/nzbget/translations/pt.json +5 -0
- homeassistant/components/nzbget/translations/sk.json +5 -0
- homeassistant/components/nzbget/translations/sv.json +5 -0
- homeassistant/components/nzbget/translations/tr.json +5 -0
- homeassistant/components/nzbget/translations/zh-Hans.json +5 -0
- homeassistant/components/nzbget/translations/zh-Hant.json +5 -0
- homeassistant/components/ohme/services.py +2 -0
- homeassistant/components/ollama/__init__.py +84 -6
- homeassistant/components/ollama/config_flow.py +136 -68
- homeassistant/components/ollama/const.py +2 -0
- homeassistant/components/ollama/conversation.py +61 -37
- homeassistant/components/ollama/manifest.json +1 -1
- homeassistant/components/ollama/strings.json +30 -15
- homeassistant/components/ollama/translations/bg.json +0 -9
- homeassistant/components/ollama/translations/ca.json +0 -15
- homeassistant/components/ollama/translations/cs.json +29 -14
- homeassistant/components/ollama/translations/de.json +29 -14
- homeassistant/components/ollama/translations/el.json +29 -14
- homeassistant/components/ollama/translations/en-GB.json +0 -18
- homeassistant/components/ollama/translations/en.json +29 -14
- homeassistant/components/ollama/translations/es.json +29 -14
- homeassistant/components/ollama/translations/et.json +29 -14
- homeassistant/components/ollama/translations/fi.json +0 -9
- homeassistant/components/ollama/translations/fr.json +0 -18
- homeassistant/components/ollama/translations/he.json +0 -9
- homeassistant/components/ollama/translations/hu.json +0 -18
- homeassistant/components/ollama/translations/id.json +0 -9
- homeassistant/components/ollama/translations/it.json +0 -10
- homeassistant/components/ollama/translations/ja.json +0 -18
- homeassistant/components/ollama/translations/lt.json +29 -14
- homeassistant/components/ollama/translations/nl.json +14 -8
- homeassistant/components/ollama/translations/pl.json +0 -9
- homeassistant/components/ollama/translations/pt.json +29 -14
- homeassistant/components/ollama/translations/ru.json +10 -15
- homeassistant/components/ollama/translations/sk.json +29 -14
- homeassistant/components/ollama/translations/sl.json +0 -12
- homeassistant/components/ollama/translations/sv.json +15 -14
- homeassistant/components/ollama/translations/tr.json +0 -18
- homeassistant/components/ollama/translations/vi.json +1 -11
- homeassistant/components/ollama/translations/zh-Hans.json +29 -14
- homeassistant/components/ollama/translations/zh-Hant.json +29 -14
- homeassistant/components/onboarding/views.py +2 -4
- homeassistant/components/ondilo_ico/strings.json +7 -1
- homeassistant/components/ondilo_ico/translations/cs.json +6 -0
- homeassistant/components/ondilo_ico/translations/de.json +6 -0
- homeassistant/components/ondilo_ico/translations/el.json +6 -0
- homeassistant/components/ondilo_ico/translations/en-GB.json +6 -0
- homeassistant/components/ondilo_ico/translations/en.json +6 -0
- homeassistant/components/ondilo_ico/translations/es.json +6 -0
- homeassistant/components/ondilo_ico/translations/et.json +6 -0
- homeassistant/components/ondilo_ico/translations/fr.json +6 -0
- homeassistant/components/ondilo_ico/translations/ga.json +14 -1
- homeassistant/components/ondilo_ico/translations/he.json +6 -0
- homeassistant/components/ondilo_ico/translations/id.json +6 -0
- homeassistant/components/ondilo_ico/translations/lt.json +6 -0
- homeassistant/components/ondilo_ico/translations/mk.json +14 -1
- homeassistant/components/ondilo_ico/translations/pt.json +6 -0
- homeassistant/components/ondilo_ico/translations/ru.json +6 -0
- homeassistant/components/ondilo_ico/translations/sk.json +6 -0
- homeassistant/components/ondilo_ico/translations/sv.json +6 -0
- homeassistant/components/ondilo_ico/translations/tr.json +6 -0
- homeassistant/components/ondilo_ico/translations/zh-Hans.json +6 -0
- homeassistant/components/ondilo_ico/translations/zh-Hant.json +6 -0
- homeassistant/components/onedrive/__init__.py +2 -2
- homeassistant/components/onedrive/services.py +10 -9
- homeassistant/components/onedrive/strings.json +7 -1
- homeassistant/components/onedrive/translations/cs.json +6 -0
- homeassistant/components/onedrive/translations/de.json +6 -0
- homeassistant/components/onedrive/translations/el.json +6 -0
- homeassistant/components/onedrive/translations/en-GB.json +6 -0
- homeassistant/components/onedrive/translations/en.json +6 -0
- homeassistant/components/onedrive/translations/es.json +6 -0
- homeassistant/components/onedrive/translations/et.json +6 -0
- homeassistant/components/onedrive/translations/fr.json +6 -0
- homeassistant/components/onedrive/translations/ga.json +8 -0
- homeassistant/components/onedrive/translations/he.json +6 -0
- homeassistant/components/onedrive/translations/id.json +6 -0
- homeassistant/components/onedrive/translations/lt.json +6 -0
- homeassistant/components/onedrive/translations/mk.json +12 -0
- homeassistant/components/onedrive/translations/pt.json +6 -0
- homeassistant/components/onedrive/translations/ru.json +6 -0
- homeassistant/components/onedrive/translations/sk.json +6 -0
- homeassistant/components/onedrive/translations/sv.json +6 -0
- homeassistant/components/onedrive/translations/tr.json +6 -0
- homeassistant/components/onedrive/translations/zh-Hans.json +6 -0
- homeassistant/components/onedrive/translations/zh-Hant.json +6 -0
- homeassistant/components/onewire/binary_sensor.py +4 -6
- homeassistant/components/onewire/const.py +0 -1
- homeassistant/components/onewire/entity.py +2 -5
- homeassistant/components/onewire/switch.py +4 -12
- homeassistant/components/onkyo/__init__.py +2 -2
- homeassistant/components/onkyo/services.py +3 -2
- homeassistant/components/onvif/__init__.py +3 -3
- homeassistant/components/onvif/const.py +9 -2
- homeassistant/components/onvif/device.py +3 -3
- homeassistant/components/onvif/event.py +25 -7
- homeassistant/components/onvif/manifest.json +1 -1
- homeassistant/components/openai_conversation/__init__.py +92 -7
- homeassistant/components/openai_conversation/config_flow.py +264 -154
- homeassistant/components/openai_conversation/const.py +2 -0
- homeassistant/components/openai_conversation/conversation.py +22 -16
- homeassistant/components/openai_conversation/strings.json +52 -25
- homeassistant/components/openai_conversation/translations/af.json +0 -10
- homeassistant/components/openai_conversation/translations/bg.json +0 -14
- homeassistant/components/openai_conversation/translations/ca.json +0 -14
- homeassistant/components/openai_conversation/translations/cs.json +56 -30
- homeassistant/components/openai_conversation/translations/da.json +0 -9
- homeassistant/components/openai_conversation/translations/de.json +56 -30
- homeassistant/components/openai_conversation/translations/el.json +56 -30
- homeassistant/components/openai_conversation/translations/en-GB.json +0 -30
- homeassistant/components/openai_conversation/translations/en.json +56 -30
- homeassistant/components/openai_conversation/translations/es.json +56 -30
- homeassistant/components/openai_conversation/translations/et.json +56 -30
- homeassistant/components/openai_conversation/translations/fi.json +0 -12
- homeassistant/components/openai_conversation/translations/fr.json +0 -30
- homeassistant/components/openai_conversation/translations/fy.json +0 -9
- homeassistant/components/openai_conversation/translations/ga.json +0 -22
- homeassistant/components/openai_conversation/translations/he.json +0 -18
- homeassistant/components/openai_conversation/translations/hu.json +0 -30
- homeassistant/components/openai_conversation/translations/id.json +0 -18
- homeassistant/components/openai_conversation/translations/it.json +0 -17
- homeassistant/components/openai_conversation/translations/ja.json +0 -29
- homeassistant/components/openai_conversation/translations/ko.json +0 -11
- homeassistant/components/openai_conversation/translations/lt.json +56 -30
- homeassistant/components/openai_conversation/translations/lv.json +0 -9
- homeassistant/components/openai_conversation/translations/nb.json +0 -11
- homeassistant/components/openai_conversation/translations/nl.json +7 -19
- homeassistant/components/openai_conversation/translations/pl.json +0 -29
- homeassistant/components/openai_conversation/translations/pt-BR.json +0 -18
- homeassistant/components/openai_conversation/translations/pt.json +56 -30
- homeassistant/components/openai_conversation/translations/ro.json +0 -11
- homeassistant/components/openai_conversation/translations/ru.json +49 -30
- homeassistant/components/openai_conversation/translations/sk.json +56 -30
- homeassistant/components/openai_conversation/translations/sl.json +0 -21
- homeassistant/components/openai_conversation/translations/sv.json +38 -30
- homeassistant/components/openai_conversation/translations/tr.json +0 -23
- homeassistant/components/openai_conversation/translations/uk.json +0 -12
- homeassistant/components/openai_conversation/translations/vi.json +0 -12
- homeassistant/components/openai_conversation/translations/zh-Hans.json +56 -30
- homeassistant/components/openai_conversation/translations/zh-Hant.json +56 -30
- homeassistant/components/opentherm_gw/__init__.py +12 -290
- homeassistant/components/opentherm_gw/services.py +297 -0
- homeassistant/components/opentherm_gw/strings.json +5 -0
- homeassistant/components/opentherm_gw/translations/bg.json +5 -0
- homeassistant/components/opentherm_gw/translations/cs.json +5 -0
- homeassistant/components/opentherm_gw/translations/de.json +5 -0
- homeassistant/components/opentherm_gw/translations/el.json +5 -0
- homeassistant/components/opentherm_gw/translations/en-GB.json +5 -0
- homeassistant/components/opentherm_gw/translations/en.json +5 -0
- homeassistant/components/opentherm_gw/translations/es.json +5 -0
- homeassistant/components/opentherm_gw/translations/et.json +5 -0
- homeassistant/components/opentherm_gw/translations/fi.json +5 -0
- homeassistant/components/opentherm_gw/translations/fr.json +5 -0
- homeassistant/components/opentherm_gw/translations/ga.json +5 -0
- homeassistant/components/opentherm_gw/translations/hu.json +5 -0
- homeassistant/components/opentherm_gw/translations/it.json +5 -0
- homeassistant/components/opentherm_gw/translations/lt.json +5 -0
- homeassistant/components/opentherm_gw/translations/pt.json +5 -0
- homeassistant/components/opentherm_gw/translations/sk.json +5 -0
- homeassistant/components/opentherm_gw/translations/sv.json +5 -0
- homeassistant/components/opentherm_gw/translations/tr.json +5 -0
- homeassistant/components/opentherm_gw/translations/zh-Hans.json +5 -0
- homeassistant/components/opentherm_gw/translations/zh-Hant.json +5 -0
- homeassistant/components/opower/translations/el.json +3 -0
- homeassistant/components/osoenergy/manifest.json +1 -1
- homeassistant/components/osoenergy/translations/nl.json +13 -0
- homeassistant/components/overkiz/manifest.json +1 -1
- homeassistant/components/overkiz/translations/el.json +2 -0
- homeassistant/components/overseerr/__init__.py +2 -2
- homeassistant/components/overseerr/sensor.py +1 -1
- homeassistant/components/overseerr/services.py +36 -33
- homeassistant/components/overseerr/strings.json +1 -1
- homeassistant/components/ovo_energy/manifest.json +1 -1
- homeassistant/components/paperless_ngx/__init__.py +3 -3
- homeassistant/components/paperless_ngx/config_flow.py +15 -8
- homeassistant/components/paperless_ngx/coordinator.py +3 -6
- homeassistant/components/paperless_ngx/diagnostics.py +1 -0
- homeassistant/components/paperless_ngx/entity.py +4 -6
- homeassistant/components/paperless_ngx/sensor.py +9 -8
- homeassistant/components/paperless_ngx/strings.json +13 -4
- homeassistant/components/paperless_ngx/translations/bg.json +7 -1
- homeassistant/components/paperless_ngx/translations/cs.json +13 -4
- homeassistant/components/paperless_ngx/translations/de.json +13 -4
- homeassistant/components/paperless_ngx/translations/el.json +13 -4
- homeassistant/components/paperless_ngx/translations/en-GB.json +5 -0
- homeassistant/components/paperless_ngx/translations/en.json +13 -4
- homeassistant/components/paperless_ngx/translations/es.json +13 -4
- homeassistant/components/paperless_ngx/translations/et.json +13 -4
- homeassistant/components/paperless_ngx/translations/fr.json +13 -4
- homeassistant/components/paperless_ngx/translations/ga.json +9 -2
- homeassistant/components/paperless_ngx/translations/hu.json +5 -0
- homeassistant/components/paperless_ngx/translations/id.json +4 -2
- homeassistant/components/paperless_ngx/translations/ja.json +9 -1
- homeassistant/components/paperless_ngx/translations/lt.json +13 -4
- homeassistant/components/paperless_ngx/translations/mk.json +5 -0
- homeassistant/components/paperless_ngx/translations/nl.json +9 -2
- homeassistant/components/paperless_ngx/translations/pt-BR.json +5 -0
- homeassistant/components/paperless_ngx/translations/pt.json +13 -4
- homeassistant/components/paperless_ngx/translations/ru.json +13 -4
- homeassistant/components/paperless_ngx/translations/sk.json +13 -4
- homeassistant/components/paperless_ngx/translations/sv.json +13 -4
- homeassistant/components/paperless_ngx/translations/tr.json +13 -4
- homeassistant/components/paperless_ngx/translations/zh-Hans.json +13 -4
- homeassistant/components/paperless_ngx/translations/zh-Hant.json +13 -4
- homeassistant/components/paperless_ngx/update.py +90 -0
- homeassistant/components/picnic/__init__.py +12 -4
- homeassistant/components/picnic/services.py +3 -5
- homeassistant/components/playstation_network/__init__.py +34 -0
- homeassistant/components/playstation_network/config_flow.py +125 -0
- homeassistant/components/playstation_network/const.py +18 -0
- homeassistant/components/playstation_network/coordinator.py +74 -0
- homeassistant/components/playstation_network/helpers.py +154 -0
- homeassistant/components/playstation_network/icons.json +32 -0
- homeassistant/components/playstation_network/manifest.json +70 -0
- homeassistant/components/playstation_network/media_player.py +131 -0
- homeassistant/components/playstation_network/quality_scale.yaml +72 -0
- homeassistant/components/playstation_network/sensor.py +168 -0
- homeassistant/components/playstation_network/strings.json +73 -0
- homeassistant/components/playstation_network/translations/bg.json +12 -0
- homeassistant/components/playstation_network/translations/cs.json +73 -0
- homeassistant/components/playstation_network/translations/de.json +73 -0
- homeassistant/components/playstation_network/translations/el.json +73 -0
- homeassistant/components/playstation_network/translations/en.json +73 -0
- homeassistant/components/playstation_network/translations/es.json +73 -0
- homeassistant/components/playstation_network/translations/et.json +73 -0
- homeassistant/components/playstation_network/translations/lt.json +44 -0
- homeassistant/components/playstation_network/translations/nl.json +14 -0
- homeassistant/components/playstation_network/translations/pt.json +73 -0
- homeassistant/components/playstation_network/translations/sk.json +73 -0
- homeassistant/components/playstation_network/translations/sv.json +32 -0
- homeassistant/components/playstation_network/translations/zh-Hans.json +44 -0
- homeassistant/components/playstation_network/translations/zh-Hant.json +73 -0
- homeassistant/components/plex/__init__.py +1 -1
- homeassistant/components/plex/const.py +0 -1
- homeassistant/components/plex/icons.json +0 -3
- homeassistant/components/plex/services.py +5 -24
- homeassistant/components/plex/services.yaml +0 -2
- homeassistant/components/plex/strings.json +0 -4
- homeassistant/components/plex/translations/bg.json +0 -3
- homeassistant/components/plex/translations/cs.json +0 -4
- homeassistant/components/plex/translations/de.json +0 -4
- homeassistant/components/plex/translations/en-GB.json +0 -4
- homeassistant/components/plex/translations/en.json +0 -4
- homeassistant/components/plex/translations/es.json +0 -4
- homeassistant/components/plex/translations/et.json +0 -4
- homeassistant/components/plex/translations/fi.json +0 -4
- homeassistant/components/plex/translations/fr.json +0 -4
- homeassistant/components/plex/translations/hu.json +0 -4
- homeassistant/components/plex/translations/id.json +0 -4
- homeassistant/components/plex/translations/it.json +0 -4
- homeassistant/components/plex/translations/ja.json +0 -4
- homeassistant/components/plex/translations/ko.json +0 -4
- homeassistant/components/plex/translations/lt.json +0 -4
- homeassistant/components/plex/translations/pt.json +0 -4
- homeassistant/components/plex/translations/ru.json +0 -4
- homeassistant/components/plex/translations/sk.json +0 -4
- homeassistant/components/plex/translations/sl.json +0 -4
- homeassistant/components/plex/translations/sv.json +0 -4
- homeassistant/components/plex/translations/tr.json +0 -4
- homeassistant/components/plex/translations/zh-Hans.json +0 -4
- homeassistant/components/plex/translations/zh-Hant.json +0 -4
- homeassistant/components/plugwise/climate.py +0 -12
- homeassistant/components/plugwise/manifest.json +1 -1
- homeassistant/components/plugwise/strings.json +0 -3
- homeassistant/components/plugwise/translations/cs.json +0 -3
- homeassistant/components/plugwise/translations/de.json +0 -3
- homeassistant/components/plugwise/translations/el.json +0 -3
- homeassistant/components/plugwise/translations/en-GB.json +0 -3
- homeassistant/components/plugwise/translations/en.json +0 -3
- homeassistant/components/plugwise/translations/es.json +0 -3
- homeassistant/components/plugwise/translations/et.json +0 -3
- homeassistant/components/plugwise/translations/hu.json +0 -3
- homeassistant/components/plugwise/translations/ja.json +0 -3
- homeassistant/components/plugwise/translations/lt.json +0 -3
- homeassistant/components/plugwise/translations/nl.json +0 -3
- homeassistant/components/plugwise/translations/pt.json +0 -3
- homeassistant/components/plugwise/translations/ru.json +0 -3
- homeassistant/components/plugwise/translations/sk.json +0 -3
- homeassistant/components/plugwise/translations/sv.json +0 -3
- homeassistant/components/plugwise/translations/tr.json +0 -3
- homeassistant/components/plugwise/translations/zh-Hans.json +0 -3
- homeassistant/components/plugwise/translations/zh-Hant.json +0 -3
- homeassistant/components/point/strings.json +7 -1
- homeassistant/components/point/translations/cs.json +6 -0
- homeassistant/components/point/translations/de.json +6 -0
- homeassistant/components/point/translations/el.json +6 -0
- homeassistant/components/point/translations/en-GB.json +6 -0
- homeassistant/components/point/translations/en.json +6 -0
- homeassistant/components/point/translations/es.json +6 -0
- homeassistant/components/point/translations/et.json +6 -0
- homeassistant/components/point/translations/fr.json +10 -0
- homeassistant/components/point/translations/ga.json +14 -1
- homeassistant/components/point/translations/he.json +6 -0
- homeassistant/components/point/translations/id.json +6 -0
- homeassistant/components/point/translations/lt.json +6 -0
- homeassistant/components/point/translations/mk.json +14 -1
- homeassistant/components/point/translations/pt.json +6 -0
- homeassistant/components/point/translations/ru.json +6 -0
- homeassistant/components/point/translations/sk.json +6 -0
- homeassistant/components/point/translations/sv.json +6 -0
- homeassistant/components/point/translations/tr.json +6 -0
- homeassistant/components/point/translations/zh-Hans.json +6 -0
- homeassistant/components/point/translations/zh-Hant.json +6 -0
- homeassistant/components/profiler/__init__.py +9 -9
- homeassistant/components/ps4/__init__.py +2 -2
- homeassistant/components/ps4/services.py +3 -2
- homeassistant/components/ps4/translations/mk.json +7 -0
- homeassistant/components/qbus/climate.py +4 -11
- homeassistant/components/qbus/const.py +1 -0
- homeassistant/components/qbus/cover.py +193 -0
- homeassistant/components/qbus/entity.py +15 -3
- homeassistant/components/qbus/light.py +7 -18
- homeassistant/components/qbus/scene.py +1 -2
- homeassistant/components/qbus/switch.py +4 -9
- homeassistant/components/qbus/translations/el.json +5 -0
- homeassistant/components/radarr/entity.py +1 -5
- homeassistant/components/recorder/__init__.py +2 -2
- homeassistant/components/recorder/auto_repairs/schema.py +2 -4
- homeassistant/components/recorder/history/__init__.py +5 -5
- homeassistant/components/recorder/manifest.json +1 -1
- homeassistant/components/recorder/pool.py +2 -2
- homeassistant/components/recorder/services.py +99 -117
- homeassistant/components/recorder/services.yaml +1 -1
- homeassistant/components/recorder/statistics.py +1 -1
- homeassistant/components/recorder/util.py +3 -4
- homeassistant/components/rehlko/manifest.json +1 -1
- homeassistant/components/remote_calendar/manifest.json +1 -1
- homeassistant/components/reolink/__init__.py +11 -0
- homeassistant/components/reolink/binary_sensor.py +1 -0
- homeassistant/components/reolink/camera.py +15 -4
- homeassistant/components/reolink/config_flow.py +8 -1
- homeassistant/components/reolink/const.py +1 -0
- homeassistant/components/reolink/diagnostics.py +2 -0
- homeassistant/components/reolink/entity.py +18 -6
- homeassistant/components/reolink/host.py +13 -3
- homeassistant/components/reolink/icons.json +18 -0
- homeassistant/components/reolink/light.py +1 -1
- homeassistant/components/reolink/media_source.py +4 -4
- homeassistant/components/reolink/number.py +27 -0
- homeassistant/components/reolink/services.py +41 -38
- homeassistant/components/reolink/strings.json +21 -6
- homeassistant/components/reolink/switch.py +19 -0
- homeassistant/components/reolink/translations/cs.json +24 -9
- homeassistant/components/reolink/translations/de.json +24 -9
- homeassistant/components/reolink/translations/el.json +26 -0
- homeassistant/components/reolink/translations/en-GB.json +3 -9
- homeassistant/components/reolink/translations/en.json +24 -9
- homeassistant/components/reolink/translations/es.json +24 -9
- homeassistant/components/reolink/translations/et.json +24 -9
- homeassistant/components/reolink/translations/fi.json +0 -9
- homeassistant/components/reolink/translations/fr.json +3 -9
- homeassistant/components/reolink/translations/ga.json +12 -0
- homeassistant/components/reolink/translations/hu.json +3 -9
- homeassistant/components/reolink/translations/id.json +0 -9
- homeassistant/components/reolink/translations/it.json +0 -9
- homeassistant/components/reolink/translations/ja.json +3 -9
- homeassistant/components/reolink/translations/ko.json +3 -9
- homeassistant/components/reolink/translations/lt.json +24 -9
- homeassistant/components/reolink/translations/mk.json +17 -0
- homeassistant/components/reolink/translations/nl.json +0 -9
- homeassistant/components/reolink/translations/pl.json +0 -9
- homeassistant/components/reolink/translations/pt.json +24 -9
- homeassistant/components/reolink/translations/ru.json +6 -9
- homeassistant/components/reolink/translations/sk.json +24 -9
- homeassistant/components/reolink/translations/sv.json +27 -12
- homeassistant/components/reolink/translations/tr.json +12 -9
- homeassistant/components/reolink/translations/zh-Hans.json +24 -9
- homeassistant/components/reolink/translations/zh-Hant.json +24 -9
- homeassistant/components/rest/__init__.py +3 -3
- homeassistant/components/rest/data.py +46 -34
- homeassistant/components/rflink/manifest.json +1 -1
- homeassistant/components/rmvtransport/sensor.py +1 -2
- homeassistant/components/russound_rio/__init__.py +36 -1
- homeassistant/components/russound_rio/entity.py +20 -20
- homeassistant/components/russound_rio/icons.json +12 -0
- homeassistant/components/russound_rio/manifest.json +1 -1
- homeassistant/components/russound_rio/media_player.py +2 -8
- homeassistant/components/russound_rio/number.py +112 -0
- homeassistant/components/russound_rio/strings.json +21 -0
- homeassistant/components/russound_rio/switch.py +85 -0
- homeassistant/components/russound_rio/translations/bg.json +10 -0
- homeassistant/components/russound_rio/translations/cs.json +21 -0
- homeassistant/components/russound_rio/translations/de.json +21 -0
- homeassistant/components/russound_rio/translations/el.json +21 -0
- homeassistant/components/russound_rio/translations/en.json +21 -0
- homeassistant/components/russound_rio/translations/es.json +21 -0
- homeassistant/components/russound_rio/translations/et.json +21 -0
- homeassistant/components/russound_rio/translations/lt.json +21 -0
- homeassistant/components/russound_rio/translations/pt.json +21 -0
- homeassistant/components/russound_rio/translations/sk.json +21 -0
- homeassistant/components/russound_rio/translations/sv.json +21 -0
- homeassistant/components/russound_rio/translations/zh-Hans.json +21 -0
- homeassistant/components/russound_rio/translations/zh-Hant.json +21 -0
- homeassistant/components/samsungtv/manifest.json +1 -0
- homeassistant/components/samsungtv/quality_scale.yaml +96 -0
- homeassistant/components/screenlogic/__init__.py +2 -2
- homeassistant/components/screenlogic/services.py +89 -84
- homeassistant/components/script/helpers.py +1 -1
- homeassistant/components/sensibo/translations/sv.json +8 -8
- homeassistant/components/sensor/icons.json +12 -1
- homeassistant/components/sensor/translations/de.json +2 -2
- homeassistant/components/sensorpush_cloud/manifest.json +1 -1
- homeassistant/components/senz/strings.json +7 -1
- homeassistant/components/senz/translations/cs.json +6 -0
- homeassistant/components/senz/translations/de.json +6 -0
- homeassistant/components/senz/translations/el.json +6 -0
- homeassistant/components/senz/translations/en-GB.json +6 -0
- homeassistant/components/senz/translations/en.json +6 -0
- homeassistant/components/senz/translations/es.json +6 -0
- homeassistant/components/senz/translations/et.json +6 -0
- homeassistant/components/senz/translations/fr.json +6 -0
- homeassistant/components/senz/translations/ga.json +14 -1
- homeassistant/components/senz/translations/he.json +6 -0
- homeassistant/components/senz/translations/id.json +6 -0
- homeassistant/components/senz/translations/lt.json +6 -0
- homeassistant/components/senz/translations/mk.json +14 -1
- homeassistant/components/senz/translations/pt.json +6 -0
- homeassistant/components/senz/translations/ru.json +6 -0
- homeassistant/components/senz/translations/sk.json +6 -0
- homeassistant/components/senz/translations/sv.json +6 -0
- homeassistant/components/senz/translations/tr.json +6 -0
- homeassistant/components/senz/translations/zh-Hans.json +6 -0
- homeassistant/components/senz/translations/zh-Hant.json +6 -0
- homeassistant/components/seventeentrack/__init__.py +2 -2
- homeassistant/components/seventeentrack/manifest.json +1 -1
- homeassistant/components/seventeentrack/services.py +86 -79
- homeassistant/components/shelly/manifest.json +1 -1
- homeassistant/components/shelly/translations/el.json +13 -1
- homeassistant/components/shopping_list/__init__.py +27 -6
- homeassistant/components/shopping_list/intent.py +31 -2
- homeassistant/components/smappee/strings.json +7 -1
- homeassistant/components/smappee/translations/cs.json +6 -0
- homeassistant/components/smappee/translations/de.json +6 -0
- homeassistant/components/smappee/translations/el.json +7 -0
- homeassistant/components/smappee/translations/en-GB.json +6 -0
- homeassistant/components/smappee/translations/en.json +6 -0
- homeassistant/components/smappee/translations/es.json +6 -0
- homeassistant/components/smappee/translations/et.json +6 -0
- homeassistant/components/smappee/translations/fr.json +6 -0
- homeassistant/components/smappee/translations/ga.json +14 -1
- homeassistant/components/smappee/translations/he.json +6 -0
- homeassistant/components/smappee/translations/id.json +6 -0
- homeassistant/components/smappee/translations/lt.json +6 -0
- homeassistant/components/smappee/translations/mk.json +14 -1
- homeassistant/components/smappee/translations/pt.json +6 -0
- homeassistant/components/smappee/translations/ru.json +6 -0
- homeassistant/components/smappee/translations/sk.json +6 -0
- homeassistant/components/smappee/translations/sv.json +6 -0
- homeassistant/components/smappee/translations/tr.json +6 -0
- homeassistant/components/smappee/translations/zh-Hans.json +6 -0
- homeassistant/components/smappee/translations/zh-Hant.json +6 -0
- homeassistant/components/smarla/__init__.py +2 -1
- homeassistant/components/smarla/const.py +1 -1
- homeassistant/components/smarla/entity.py +16 -4
- homeassistant/components/smarla/icons.json +5 -0
- homeassistant/components/smarla/manifest.json +1 -1
- homeassistant/components/smarla/number.py +63 -0
- homeassistant/components/smarla/strings.json +5 -0
- homeassistant/components/smarla/switch.py +3 -18
- homeassistant/components/smarla/translations/cs.json +5 -0
- homeassistant/components/smarla/translations/de.json +5 -0
- homeassistant/components/smarla/translations/el.json +5 -0
- homeassistant/components/smarla/translations/en-GB.json +5 -0
- homeassistant/components/smarla/translations/en.json +5 -0
- homeassistant/components/smarla/translations/es.json +5 -0
- homeassistant/components/smarla/translations/et.json +5 -0
- homeassistant/components/smarla/translations/ga.json +5 -0
- homeassistant/components/smarla/translations/hu.json +5 -0
- homeassistant/components/smarla/translations/it.json +9 -1
- homeassistant/components/smarla/translations/lt.json +5 -0
- homeassistant/components/smarla/translations/pt.json +5 -0
- homeassistant/components/smarla/translations/sk.json +5 -0
- homeassistant/components/smarla/translations/sv.json +5 -0
- homeassistant/components/smarla/translations/tr.json +5 -0
- homeassistant/components/smarla/translations/zh-Hans.json +5 -0
- homeassistant/components/smarla/translations/zh-Hant.json +5 -0
- homeassistant/components/smartthings/binary_sensor.py +8 -0
- homeassistant/components/smartthings/sensor.py +10 -0
- homeassistant/components/smartthings/strings.json +14 -2
- homeassistant/components/smartthings/switch.py +1 -0
- homeassistant/components/smartthings/translations/cs.json +12 -0
- homeassistant/components/smartthings/translations/de.json +12 -0
- homeassistant/components/smartthings/translations/el.json +15 -0
- homeassistant/components/smartthings/translations/en-GB.json +9 -0
- homeassistant/components/smartthings/translations/en.json +12 -0
- homeassistant/components/smartthings/translations/es.json +12 -0
- homeassistant/components/smartthings/translations/et.json +12 -0
- homeassistant/components/smartthings/translations/fi.json +5 -0
- homeassistant/components/smartthings/translations/fr.json +12 -0
- homeassistant/components/smartthings/translations/ga.json +11 -0
- homeassistant/components/smartthings/translations/he.json +6 -0
- homeassistant/components/smartthings/translations/id.json +6 -0
- homeassistant/components/smartthings/translations/lt.json +12 -0
- homeassistant/components/smartthings/translations/mk.json +10 -0
- homeassistant/components/smartthings/translations/pt.json +12 -0
- homeassistant/components/smartthings/translations/ru.json +9 -0
- homeassistant/components/smartthings/translations/sk.json +12 -0
- homeassistant/components/smartthings/translations/sv.json +12 -0
- homeassistant/components/smartthings/translations/tr.json +6 -0
- homeassistant/components/smartthings/translations/zh-Hans.json +12 -0
- homeassistant/components/smartthings/translations/zh-Hant.json +12 -0
- homeassistant/components/smarttub/translations/mk.json +2 -1
- homeassistant/components/smlight/manifest.json +1 -1
- homeassistant/components/sonos/__init__.py +23 -45
- homeassistant/components/sonos/alarms.py +2 -2
- homeassistant/components/sonos/binary_sensor.py +8 -9
- homeassistant/components/sonos/const.py +0 -1
- homeassistant/components/sonos/diagnostics.py +29 -14
- homeassistant/components/sonos/entity.py +10 -4
- homeassistant/components/sonos/helpers.py +35 -0
- homeassistant/components/sonos/household_coordinator.py +9 -4
- homeassistant/components/sonos/media_player.py +49 -22
- homeassistant/components/sonos/number.py +11 -6
- homeassistant/components/sonos/sensor.py +10 -9
- homeassistant/components/sonos/speaker.py +47 -21
- homeassistant/components/sonos/strings.json +9 -0
- homeassistant/components/sonos/switch.py +25 -18
- homeassistant/components/sonos/translations/cs.json +3 -0
- homeassistant/components/sonos/translations/de.json +9 -0
- homeassistant/components/sonos/translations/el.json +3 -0
- homeassistant/components/sonos/translations/en.json +9 -0
- homeassistant/components/sonos/translations/es.json +9 -0
- homeassistant/components/sonos/translations/et.json +9 -0
- homeassistant/components/sonos/translations/pt.json +9 -0
- homeassistant/components/sonos/translations/sk.json +9 -0
- homeassistant/components/sonos/translations/zh-Hant.json +3 -0
- homeassistant/components/spotify/strings.json +7 -1
- homeassistant/components/spotify/translations/cs.json +6 -0
- homeassistant/components/spotify/translations/de.json +6 -0
- homeassistant/components/spotify/translations/el.json +6 -0
- homeassistant/components/spotify/translations/en-GB.json +6 -0
- homeassistant/components/spotify/translations/en.json +6 -0
- homeassistant/components/spotify/translations/es.json +6 -0
- homeassistant/components/spotify/translations/et.json +6 -0
- homeassistant/components/spotify/translations/fr.json +6 -0
- homeassistant/components/spotify/translations/ga.json +14 -1
- homeassistant/components/spotify/translations/he.json +6 -0
- homeassistant/components/spotify/translations/id.json +6 -0
- homeassistant/components/spotify/translations/lt.json +6 -0
- homeassistant/components/spotify/translations/mk.json +14 -1
- homeassistant/components/spotify/translations/pt.json +6 -0
- homeassistant/components/spotify/translations/ru.json +6 -0
- homeassistant/components/spotify/translations/sk.json +6 -0
- homeassistant/components/spotify/translations/sv.json +6 -0
- homeassistant/components/spotify/translations/tr.json +6 -0
- homeassistant/components/spotify/translations/zh-Hans.json +6 -0
- homeassistant/components/spotify/translations/zh-Hant.json +6 -0
- homeassistant/components/sql/manifest.json +1 -1
- homeassistant/components/squeezebox/button.py +0 -5
- homeassistant/components/squeezebox/entity.py +7 -0
- homeassistant/components/squeezebox/media_player.py +0 -5
- homeassistant/components/ssdp/server.py +1 -1
- homeassistant/components/starline/sensor.py +1 -1
- homeassistant/components/stream/__init__.py +5 -8
- homeassistant/components/stream/core.py +4 -4
- homeassistant/components/stream/fmp4utils.py +2 -2
- homeassistant/components/stream/manifest.json +1 -1
- homeassistant/components/sun/__init__.py +8 -5
- homeassistant/components/sun/binary_sensor.py +100 -0
- homeassistant/components/sun/condition.py +37 -18
- homeassistant/components/sun/icons.json +9 -0
- homeassistant/components/sun/sensor.py +26 -0
- homeassistant/components/sun/strings.json +15 -0
- homeassistant/components/sun/translations/bg.json +7 -0
- homeassistant/components/sun/translations/cs.json +15 -0
- homeassistant/components/sun/translations/de.json +15 -0
- homeassistant/components/sun/translations/el.json +15 -0
- homeassistant/components/sun/translations/en-GB.json +9 -0
- homeassistant/components/sun/translations/en.json +15 -0
- homeassistant/components/sun/translations/es.json +15 -0
- homeassistant/components/sun/translations/et.json +15 -0
- homeassistant/components/sun/translations/fr.json +9 -0
- homeassistant/components/sun/translations/ga.json +19 -1
- homeassistant/components/sun/translations/he.json +15 -0
- homeassistant/components/sun/translations/hu.json +15 -0
- homeassistant/components/sun/translations/id.json +15 -0
- homeassistant/components/sun/translations/it.json +9 -0
- homeassistant/components/sun/translations/lt.json +15 -0
- homeassistant/components/sun/translations/nl.json +9 -0
- homeassistant/components/sun/translations/pt.json +15 -0
- homeassistant/components/sun/translations/ru.json +15 -0
- homeassistant/components/sun/translations/sk.json +15 -0
- homeassistant/components/sun/translations/sv.json +15 -0
- homeassistant/components/sun/translations/tr.json +15 -0
- homeassistant/components/sun/translations/zh-Hans.json +15 -0
- homeassistant/components/sun/translations/zh-Hant.json +15 -0
- homeassistant/components/swiss_public_transport/__init__.py +2 -2
- homeassistant/components/swiss_public_transport/services.py +26 -23
- homeassistant/components/switch/light.py +4 -4
- homeassistant/components/switch_as_x/entity.py +3 -3
- homeassistant/components/switchbot/__init__.py +6 -0
- homeassistant/components/switchbot/config_flow.py +6 -2
- homeassistant/components/switchbot/const.py +12 -0
- homeassistant/components/switchbot/humidifier.py +84 -1
- homeassistant/components/switchbot/icons.json +58 -0
- homeassistant/components/switchbot/light.py +69 -25
- homeassistant/components/switchbot/manifest.json +1 -1
- homeassistant/components/switchbot/sensor.py +15 -1
- homeassistant/components/switchbot/strings.json +54 -0
- homeassistant/components/switchbot/translations/cs.json +54 -0
- homeassistant/components/switchbot/translations/de.json +54 -0
- homeassistant/components/switchbot/translations/el.json +53 -0
- homeassistant/components/switchbot/translations/en.json +54 -0
- homeassistant/components/switchbot/translations/es.json +54 -1
- homeassistant/components/switchbot/translations/et.json +54 -0
- homeassistant/components/switchbot/translations/nl.json +22 -1
- homeassistant/components/switchbot/translations/pt.json +54 -0
- homeassistant/components/switchbot/translations/ru.json +23 -0
- homeassistant/components/switchbot/translations/sk.json +54 -0
- homeassistant/components/switchbot/translations/zh-Hant.json +54 -0
- homeassistant/components/switchbot_cloud/manifest.json +1 -1
- homeassistant/components/synology_dsm/__init__.py +13 -5
- homeassistant/components/synology_dsm/services.py +77 -0
- homeassistant/components/system_health/__init__.py +1 -1
- homeassistant/components/tado/__init__.py +2 -2
- homeassistant/components/tado/services.py +17 -16
- homeassistant/components/tailscale/translations/nl.json +5 -0
- homeassistant/components/tedee/binary_sensor.py +17 -1
- homeassistant/components/tedee/manifest.json +1 -1
- homeassistant/components/telegram_bot/__init__.py +203 -916
- homeassistant/components/telegram_bot/bot.py +1013 -0
- homeassistant/components/telegram_bot/broadcast.py +10 -2
- homeassistant/components/telegram_bot/config_flow.py +623 -0
- homeassistant/components/telegram_bot/const.py +110 -0
- homeassistant/components/telegram_bot/icons.json +6 -0
- homeassistant/components/telegram_bot/manifest.json +2 -1
- homeassistant/components/telegram_bot/polling.py +24 -15
- homeassistant/components/telegram_bot/quality_scale.yaml +72 -0
- homeassistant/components/telegram_bot/services.yaml +95 -0
- homeassistant/components/telegram_bot/strings.json +247 -4
- homeassistant/components/telegram_bot/translations/bg.json +144 -0
- homeassistant/components/telegram_bot/translations/ca.json +0 -3
- homeassistant/components/telegram_bot/translations/cs.json +246 -3
- homeassistant/components/telegram_bot/translations/de.json +246 -3
- homeassistant/components/telegram_bot/translations/el.json +247 -3
- homeassistant/components/telegram_bot/translations/en-GB.json +187 -4
- homeassistant/components/telegram_bot/translations/en.json +246 -3
- homeassistant/components/telegram_bot/translations/es.json +246 -3
- homeassistant/components/telegram_bot/translations/et.json +246 -3
- homeassistant/components/telegram_bot/translations/fi.json +0 -4
- homeassistant/components/telegram_bot/translations/fr.json +192 -0
- homeassistant/components/telegram_bot/translations/ga.json +295 -1
- homeassistant/components/telegram_bot/translations/he.json +157 -3
- homeassistant/components/telegram_bot/translations/hu.json +220 -3
- homeassistant/components/telegram_bot/translations/id.json +27 -4
- homeassistant/components/telegram_bot/translations/it.json +149 -4
- homeassistant/components/telegram_bot/translations/ja.json +0 -4
- homeassistant/components/telegram_bot/translations/lt.json +246 -3
- homeassistant/components/telegram_bot/translations/mk.json +56 -1
- homeassistant/components/telegram_bot/translations/nl.json +218 -3
- homeassistant/components/telegram_bot/translations/pt.json +246 -3
- homeassistant/components/telegram_bot/translations/ru.json +240 -4
- homeassistant/components/telegram_bot/translations/sk.json +246 -3
- homeassistant/components/telegram_bot/translations/sv.json +236 -3
- homeassistant/components/telegram_bot/translations/tr.json +246 -3
- homeassistant/components/telegram_bot/translations/zh-Hans.json +246 -3
- homeassistant/components/telegram_bot/translations/zh-Hant.json +246 -3
- homeassistant/components/telegram_bot/webhooks.py +63 -46
- homeassistant/components/template/alarm_control_panel.py +71 -15
- homeassistant/components/template/button.py +7 -17
- homeassistant/components/template/config.py +0 -4
- homeassistant/components/template/cover.py +4 -12
- homeassistant/components/template/fan.py +84 -17
- homeassistant/components/template/helpers.py +1 -2
- homeassistant/components/template/image.py +5 -2
- homeassistant/components/template/light.py +28 -39
- homeassistant/components/template/lock.py +73 -13
- homeassistant/components/template/number.py +12 -22
- homeassistant/components/template/select.py +9 -19
- homeassistant/components/template/switch.py +10 -18
- homeassistant/components/template/template_entity.py +17 -9
- homeassistant/components/template/vacuum.py +80 -23
- homeassistant/components/template/weather.py +21 -18
- homeassistant/components/tensorflow/image_processing.py +4 -5
- homeassistant/components/tensorflow/manifest.json +1 -1
- homeassistant/components/tesla_fleet/climate.py +0 -6
- homeassistant/components/tesla_fleet/config_flow.py +174 -14
- homeassistant/components/tesla_fleet/const.py +1 -0
- homeassistant/components/tesla_fleet/manifest.json +1 -1
- homeassistant/components/tesla_fleet/strings.json +29 -5
- homeassistant/components/tesla_fleet/translations/bg.json +2 -1
- homeassistant/components/tesla_fleet/translations/ca.json +0 -3
- homeassistant/components/tesla_fleet/translations/cs.json +28 -4
- homeassistant/components/tesla_fleet/translations/de.json +28 -4
- homeassistant/components/tesla_fleet/translations/el.json +28 -4
- homeassistant/components/tesla_fleet/translations/en-GB.json +6 -6
- homeassistant/components/tesla_fleet/translations/en.json +28 -4
- homeassistant/components/tesla_fleet/translations/es.json +28 -4
- homeassistant/components/tesla_fleet/translations/et.json +28 -4
- homeassistant/components/tesla_fleet/translations/fr.json +12 -0
- homeassistant/components/tesla_fleet/translations/ga.json +35 -0
- homeassistant/components/tesla_fleet/translations/he.json +6 -3
- homeassistant/components/tesla_fleet/translations/hu.json +0 -6
- homeassistant/components/tesla_fleet/translations/id.json +7 -3
- homeassistant/components/tesla_fleet/translations/it.json +0 -3
- homeassistant/components/tesla_fleet/translations/ja.json +0 -6
- homeassistant/components/tesla_fleet/translations/lt.json +28 -4
- homeassistant/components/tesla_fleet/translations/mk.json +17 -0
- homeassistant/components/tesla_fleet/translations/ne.json +9 -1
- homeassistant/components/tesla_fleet/translations/nl.json +1 -3
- homeassistant/components/tesla_fleet/translations/pl.json +0 -3
- homeassistant/components/tesla_fleet/translations/pt.json +28 -4
- homeassistant/components/tesla_fleet/translations/ru.json +6 -6
- homeassistant/components/tesla_fleet/translations/sk.json +28 -4
- homeassistant/components/tesla_fleet/translations/sl.json +0 -3
- homeassistant/components/tesla_fleet/translations/sv.json +16 -4
- homeassistant/components/tesla_fleet/translations/tr.json +28 -4
- homeassistant/components/tesla_fleet/translations/zh-Hans.json +28 -4
- homeassistant/components/tesla_fleet/translations/zh-Hant.json +28 -4
- homeassistant/components/teslemetry/__init__.py +2 -2
- homeassistant/components/teslemetry/manifest.json +1 -1
- homeassistant/components/teslemetry/sensor.py +1 -2
- homeassistant/components/teslemetry/services.py +3 -2
- homeassistant/components/tessie/manifest.json +1 -1
- homeassistant/components/thread/diagnostics.py +1 -3
- homeassistant/components/threshold/translations/sv.json +2 -2
- homeassistant/components/tilt_pi/__init__.py +28 -0
- homeassistant/components/tilt_pi/config_flow.py +63 -0
- homeassistant/components/tilt_pi/const.py +8 -0
- homeassistant/components/tilt_pi/coordinator.py +53 -0
- homeassistant/components/tilt_pi/entity.py +39 -0
- homeassistant/components/tilt_pi/icons.json +9 -0
- homeassistant/components/tilt_pi/manifest.json +10 -0
- homeassistant/components/tilt_pi/quality_scale.yaml +80 -0
- homeassistant/components/tilt_pi/sensor.py +93 -0
- homeassistant/components/tilt_pi/strings.json +31 -0
- homeassistant/components/tilt_pi/translations/bg.json +21 -0
- homeassistant/components/tilt_pi/translations/cs.json +31 -0
- homeassistant/components/tilt_pi/translations/de.json +31 -0
- homeassistant/components/tilt_pi/translations/el.json +31 -0
- homeassistant/components/tilt_pi/translations/en.json +31 -0
- homeassistant/components/tilt_pi/translations/es.json +31 -0
- homeassistant/components/tilt_pi/translations/et.json +31 -0
- homeassistant/components/tilt_pi/translations/lt.json +31 -0
- homeassistant/components/tilt_pi/translations/nl.json +21 -0
- homeassistant/components/tilt_pi/translations/pt.json +31 -0
- homeassistant/components/tilt_pi/translations/sk.json +31 -0
- homeassistant/components/tilt_pi/translations/sv.json +28 -0
- homeassistant/components/tilt_pi/translations/zh-Hans.json +31 -0
- homeassistant/components/tilt_pi/translations/zh-Hant.json +31 -0
- homeassistant/components/tomorrowio/translations/nl.json +1 -0
- homeassistant/components/toon/strings.json +7 -1
- homeassistant/components/toon/translations/cs.json +6 -0
- homeassistant/components/toon/translations/de.json +6 -0
- homeassistant/components/toon/translations/el.json +6 -0
- homeassistant/components/toon/translations/en-GB.json +6 -0
- homeassistant/components/toon/translations/en.json +6 -0
- homeassistant/components/toon/translations/es.json +6 -0
- homeassistant/components/toon/translations/et.json +6 -0
- homeassistant/components/toon/translations/fr.json +6 -0
- homeassistant/components/toon/translations/ga.json +14 -1
- homeassistant/components/toon/translations/he.json +10 -0
- homeassistant/components/toon/translations/id.json +6 -0
- homeassistant/components/toon/translations/lt.json +6 -0
- homeassistant/components/toon/translations/mk.json +12 -0
- homeassistant/components/toon/translations/pt.json +6 -0
- homeassistant/components/toon/translations/ru.json +6 -0
- homeassistant/components/toon/translations/sk.json +6 -0
- homeassistant/components/toon/translations/sv.json +6 -0
- homeassistant/components/toon/translations/tr.json +6 -0
- homeassistant/components/toon/translations/zh-Hans.json +6 -0
- homeassistant/components/toon/translations/zh-Hant.json +6 -0
- homeassistant/components/tplink/climate.py +1 -10
- homeassistant/components/tplink/sensor.py +1 -2
- homeassistant/components/tplink/strings.json +0 -3
- homeassistant/components/tplink/translations/bg.json +0 -3
- homeassistant/components/tplink/translations/cs.json +0 -3
- homeassistant/components/tplink/translations/de.json +0 -3
- homeassistant/components/tplink/translations/el.json +0 -3
- homeassistant/components/tplink/translations/en-GB.json +0 -3
- homeassistant/components/tplink/translations/en.json +0 -3
- homeassistant/components/tplink/translations/es.json +0 -3
- homeassistant/components/tplink/translations/et.json +0 -3
- homeassistant/components/tplink/translations/ga.json +0 -3
- homeassistant/components/tplink/translations/hu.json +0 -3
- homeassistant/components/tplink/translations/ja.json +0 -3
- homeassistant/components/tplink/translations/lt.json +0 -3
- homeassistant/components/tplink/translations/pt-BR.json +0 -3
- homeassistant/components/tplink/translations/pt.json +0 -3
- homeassistant/components/tplink/translations/ru.json +0 -3
- homeassistant/components/tplink/translations/sk.json +0 -3
- homeassistant/components/tplink/translations/sv.json +0 -3
- homeassistant/components/tplink/translations/tr.json +0 -3
- homeassistant/components/tplink/translations/zh-Hans.json +0 -3
- homeassistant/components/tplink/translations/zh-Hant.json +0 -3
- homeassistant/components/tradfri/translations/el.json +3 -1
- homeassistant/components/trend/binary_sensor.py +3 -0
- homeassistant/components/trend/config_flow.py +3 -0
- homeassistant/components/trend/manifest.json +1 -1
- homeassistant/components/trend/strings.json +2 -0
- homeassistant/components/trend/translations/bg.json +2 -0
- homeassistant/components/trend/translations/cs.json +2 -0
- homeassistant/components/trend/translations/de.json +2 -0
- homeassistant/components/trend/translations/el.json +2 -0
- homeassistant/components/trend/translations/en-GB.json +2 -0
- homeassistant/components/trend/translations/en.json +2 -0
- homeassistant/components/trend/translations/es.json +2 -0
- homeassistant/components/trend/translations/et.json +2 -0
- homeassistant/components/trend/translations/fr.json +2 -0
- homeassistant/components/trend/translations/he.json +2 -0
- homeassistant/components/trend/translations/hu.json +2 -0
- homeassistant/components/trend/translations/id.json +2 -0
- homeassistant/components/trend/translations/ja.json +2 -0
- homeassistant/components/trend/translations/lt.json +2 -0
- homeassistant/components/trend/translations/pt-BR.json +2 -0
- homeassistant/components/trend/translations/pt.json +2 -0
- homeassistant/components/trend/translations/ru.json +2 -0
- homeassistant/components/trend/translations/sk.json +2 -0
- homeassistant/components/trend/translations/sv.json +2 -0
- homeassistant/components/trend/translations/tr.json +2 -0
- homeassistant/components/trend/translations/zh-Hans.json +2 -0
- homeassistant/components/trend/translations/zh-Hant.json +2 -0
- homeassistant/components/tts/entity.py +3 -3
- homeassistant/components/tts/media_source.py +2 -2
- homeassistant/components/tuya/__init__.py +1 -1
- homeassistant/components/tuya/translations/mk.json +5 -0
- homeassistant/components/tuya/translations/nl.json +13 -1
- homeassistant/components/unifi/button.py +6 -5
- homeassistant/components/unifi/device_tracker.py +7 -10
- homeassistant/components/unifi/entity.py +7 -6
- homeassistant/components/unifi/hub/hub.py +2 -2
- homeassistant/components/unifi/image.py +6 -5
- homeassistant/components/unifi/sensor.py +6 -5
- homeassistant/components/unifi/switch.py +11 -12
- homeassistant/components/unifi/update.py +5 -6
- homeassistant/components/unifiprotect/services.py +1 -0
- homeassistant/components/utility_meter/strings.json +1 -1
- homeassistant/components/vacuum/__init__.py +2 -15
- homeassistant/components/vegehub/__init__.py +103 -0
- homeassistant/components/vegehub/config_flow.py +168 -0
- homeassistant/components/vegehub/const.py +9 -0
- homeassistant/components/vegehub/coordinator.py +52 -0
- homeassistant/components/vegehub/entity.py +28 -0
- homeassistant/components/vegehub/manifest.json +12 -0
- homeassistant/components/vegehub/quality_scale.yaml +84 -0
- homeassistant/components/vegehub/sensor.py +94 -0
- homeassistant/components/vegehub/strings.json +44 -0
- homeassistant/components/vegehub/translations/bg.json +33 -0
- homeassistant/components/vegehub/translations/cs.json +44 -0
- homeassistant/components/vegehub/translations/de.json +44 -0
- homeassistant/components/vegehub/translations/el.json +44 -0
- homeassistant/components/vegehub/translations/en.json +44 -0
- homeassistant/components/vegehub/translations/es.json +44 -0
- homeassistant/components/vegehub/translations/et.json +44 -0
- homeassistant/components/vegehub/translations/lt.json +44 -0
- homeassistant/components/vegehub/translations/nl.json +23 -0
- homeassistant/components/vegehub/translations/pt.json +44 -0
- homeassistant/components/vegehub/translations/ru.json +30 -0
- homeassistant/components/vegehub/translations/sk.json +44 -0
- homeassistant/components/vegehub/translations/sv.json +40 -0
- homeassistant/components/vegehub/translations/zh-Hans.json +44 -0
- homeassistant/components/vegehub/translations/zh-Hant.json +44 -0
- homeassistant/components/velbus/translations/el.json +8 -0
- homeassistant/components/vera/manifest.json +1 -1
- homeassistant/components/vulcan/translations/mk.json +11 -0
- homeassistant/components/wallbox/translations/el.json +5 -0
- homeassistant/components/wallbox/translations/lt.json +3 -0
- homeassistant/components/water_heater/__init__.py +9 -2
- homeassistant/components/watergate/translations/el.json +34 -0
- homeassistant/components/webdav/manifest.json +1 -1
- homeassistant/components/websocket_api/commands.py +67 -13
- homeassistant/components/websocket_api/messages.py +13 -0
- homeassistant/components/weheat/manifest.json +1 -1
- homeassistant/components/weheat/strings.json +7 -1
- homeassistant/components/weheat/translations/cs.json +6 -0
- homeassistant/components/weheat/translations/de.json +6 -0
- homeassistant/components/weheat/translations/el.json +6 -0
- homeassistant/components/weheat/translations/en-GB.json +6 -0
- homeassistant/components/weheat/translations/en.json +6 -0
- homeassistant/components/weheat/translations/es.json +6 -0
- homeassistant/components/weheat/translations/et.json +6 -0
- homeassistant/components/weheat/translations/fr.json +12 -0
- homeassistant/components/weheat/translations/ga.json +12 -0
- homeassistant/components/weheat/translations/he.json +6 -0
- homeassistant/components/weheat/translations/id.json +6 -0
- homeassistant/components/weheat/translations/lt.json +6 -0
- homeassistant/components/weheat/translations/mk.json +12 -0
- homeassistant/components/weheat/translations/pt.json +6 -0
- homeassistant/components/weheat/translations/ru.json +6 -0
- homeassistant/components/weheat/translations/sk.json +6 -0
- homeassistant/components/weheat/translations/sv.json +6 -0
- homeassistant/components/weheat/translations/tr.json +6 -0
- homeassistant/components/weheat/translations/zh-Hans.json +6 -0
- homeassistant/components/weheat/translations/zh-Hant.json +6 -0
- homeassistant/components/whirlpool/climate.py +1 -3
- homeassistant/components/withings/strings.json +7 -1
- homeassistant/components/withings/translations/cs.json +6 -0
- homeassistant/components/withings/translations/de.json +6 -0
- homeassistant/components/withings/translations/el.json +6 -0
- homeassistant/components/withings/translations/en-GB.json +6 -0
- homeassistant/components/withings/translations/en.json +6 -0
- homeassistant/components/withings/translations/es.json +6 -0
- homeassistant/components/withings/translations/et.json +6 -0
- homeassistant/components/withings/translations/fr.json +6 -0
- homeassistant/components/withings/translations/ga.json +12 -0
- homeassistant/components/withings/translations/he.json +6 -0
- homeassistant/components/withings/translations/id.json +6 -0
- homeassistant/components/withings/translations/lt.json +6 -0
- homeassistant/components/withings/translations/mk.json +14 -1
- homeassistant/components/withings/translations/pt.json +6 -0
- homeassistant/components/withings/translations/ru.json +6 -0
- homeassistant/components/withings/translations/sk.json +6 -0
- homeassistant/components/withings/translations/sv.json +6 -0
- homeassistant/components/withings/translations/tr.json +6 -0
- homeassistant/components/withings/translations/zh-Hans.json +6 -0
- homeassistant/components/withings/translations/zh-Hant.json +6 -0
- homeassistant/components/wiz/__init__.py +3 -3
- homeassistant/components/wiz/manifest.json +1 -1
- homeassistant/components/wyoming/assist_satellite.py +130 -22
- homeassistant/components/wyoming/conversation.py +3 -3
- homeassistant/components/wyoming/manifest.json +1 -1
- homeassistant/components/wyoming/tts.py +106 -2
- homeassistant/components/wyoming/wake_word.py +4 -2
- homeassistant/components/xbox/strings.json +7 -1
- homeassistant/components/xbox/translations/cs.json +6 -0
- homeassistant/components/xbox/translations/de.json +6 -0
- homeassistant/components/xbox/translations/el.json +6 -0
- homeassistant/components/xbox/translations/en-GB.json +6 -0
- homeassistant/components/xbox/translations/en.json +6 -0
- homeassistant/components/xbox/translations/es.json +6 -0
- homeassistant/components/xbox/translations/et.json +6 -0
- homeassistant/components/xbox/translations/fr.json +6 -0
- homeassistant/components/xbox/translations/ga.json +14 -1
- homeassistant/components/xbox/translations/he.json +6 -0
- homeassistant/components/xbox/translations/id.json +6 -0
- homeassistant/components/xbox/translations/lt.json +6 -0
- homeassistant/components/xbox/translations/mk.json +14 -1
- homeassistant/components/xbox/translations/pt.json +6 -0
- homeassistant/components/xbox/translations/ru.json +6 -0
- homeassistant/components/xbox/translations/sk.json +6 -0
- homeassistant/components/xbox/translations/sv.json +6 -0
- homeassistant/components/xbox/translations/tr.json +6 -0
- homeassistant/components/xbox/translations/zh-Hans.json +6 -0
- homeassistant/components/xbox/translations/zh-Hant.json +6 -0
- homeassistant/components/xiaomi_miio/fan.py +9 -3
- homeassistant/components/xiaomi_miio/manifest.json +1 -1
- homeassistant/components/xiaomi_miio/strings.json +13 -13
- homeassistant/components/xiaomi_miio/translations/sv.json +30 -7
- homeassistant/components/yale/strings.json +7 -1
- homeassistant/components/yale/translations/cs.json +6 -0
- homeassistant/components/yale/translations/de.json +6 -0
- homeassistant/components/yale/translations/el.json +6 -0
- homeassistant/components/yale/translations/en-GB.json +6 -0
- homeassistant/components/yale/translations/en.json +6 -0
- homeassistant/components/yale/translations/es.json +6 -0
- homeassistant/components/yale/translations/et.json +6 -0
- homeassistant/components/yale/translations/fr.json +14 -1
- homeassistant/components/yale/translations/ga.json +14 -1
- homeassistant/components/yale/translations/he.json +6 -0
- homeassistant/components/yale/translations/id.json +6 -0
- homeassistant/components/yale/translations/lt.json +6 -0
- homeassistant/components/yale/translations/mk.json +14 -1
- homeassistant/components/yale/translations/pt.json +6 -0
- homeassistant/components/yale/translations/ru.json +6 -0
- homeassistant/components/yale/translations/sk.json +6 -0
- homeassistant/components/yale/translations/sv.json +6 -0
- homeassistant/components/yale/translations/tr.json +6 -0
- homeassistant/components/yale/translations/zh-Hans.json +6 -0
- homeassistant/components/yale/translations/zh-Hant.json +6 -0
- homeassistant/components/yolink/__init__.py +2 -2
- homeassistant/components/yolink/manifest.json +1 -1
- homeassistant/components/yolink/services.py +3 -2
- homeassistant/components/yolink/strings.json +7 -1
- homeassistant/components/yolink/translations/cs.json +6 -0
- homeassistant/components/yolink/translations/de.json +6 -0
- homeassistant/components/yolink/translations/el.json +6 -0
- homeassistant/components/yolink/translations/en-GB.json +6 -0
- homeassistant/components/yolink/translations/en.json +6 -0
- homeassistant/components/yolink/translations/es.json +6 -0
- homeassistant/components/yolink/translations/et.json +6 -0
- homeassistant/components/yolink/translations/fr.json +6 -0
- homeassistant/components/yolink/translations/ga.json +12 -0
- homeassistant/components/yolink/translations/he.json +6 -0
- homeassistant/components/yolink/translations/id.json +6 -0
- homeassistant/components/yolink/translations/lt.json +6 -0
- homeassistant/components/yolink/translations/mk.json +12 -0
- homeassistant/components/yolink/translations/pt.json +6 -0
- homeassistant/components/yolink/translations/ru.json +6 -0
- homeassistant/components/yolink/translations/sk.json +6 -0
- homeassistant/components/yolink/translations/sv.json +6 -0
- homeassistant/components/yolink/translations/tr.json +6 -0
- homeassistant/components/yolink/translations/zh-Hans.json +6 -0
- homeassistant/components/yolink/translations/zh-Hant.json +6 -0
- homeassistant/components/yolink/valve.py +4 -1
- homeassistant/components/zha/manifest.json +7 -1
- homeassistant/components/zha/strings.json +53 -3
- homeassistant/components/zha/translations/cs.json +50 -0
- homeassistant/components/zha/translations/de.json +50 -0
- homeassistant/components/zha/translations/el.json +54 -0
- homeassistant/components/zha/translations/en.json +50 -0
- homeassistant/components/zha/translations/es.json +50 -0
- homeassistant/components/zha/translations/et.json +50 -0
- homeassistant/components/zha/translations/pt.json +50 -0
- homeassistant/components/zha/translations/sk.json +50 -0
- homeassistant/components/zha/translations/zh-Hant.json +50 -0
- homeassistant/components/zha/websocket_api.py +2 -2
- homeassistant/components/zimi/__init__.py +1 -1
- homeassistant/components/zimi/light.py +1 -3
- homeassistant/components/zoneminder/__init__.py +5 -25
- homeassistant/components/zoneminder/const.py +3 -0
- homeassistant/components/zoneminder/services.py +40 -0
- homeassistant/components/zwave_js/__init__.py +2 -5
- homeassistant/components/zwave_js/api.py +21 -24
- homeassistant/components/zwave_js/climate.py +1 -3
- homeassistant/components/zwave_js/device_trigger.py +4 -3
- homeassistant/components/zwave_js/discovery.py +36 -8
- homeassistant/components/zwave_js/manifest.json +1 -1
- homeassistant/components/zwave_js/services.py +7 -0
- homeassistant/components/zwave_js/strings.json +8 -8
- homeassistant/components/zwave_js/translations/cs.json +7 -7
- homeassistant/components/zwave_js/translations/de.json +7 -7
- homeassistant/components/zwave_js/translations/el.json +7 -7
- homeassistant/components/zwave_js/translations/en-GB.json +7 -7
- homeassistant/components/zwave_js/translations/en.json +7 -7
- homeassistant/components/zwave_js/translations/es.json +5 -5
- homeassistant/components/zwave_js/translations/et.json +7 -7
- homeassistant/components/zwave_js/translations/fi.json +0 -1
- homeassistant/components/zwave_js/translations/ga.json +0 -6
- homeassistant/components/zwave_js/translations/hu.json +0 -8
- homeassistant/components/zwave_js/translations/ko.json +0 -3
- homeassistant/components/zwave_js/translations/lt.json +7 -7
- homeassistant/components/zwave_js/translations/mk.json +0 -5
- homeassistant/components/zwave_js/translations/pt.json +0 -8
- homeassistant/components/zwave_js/translations/ru.json +0 -8
- homeassistant/components/zwave_js/translations/sk.json +6 -6
- homeassistant/components/zwave_js/translations/sv.json +7 -7
- homeassistant/components/zwave_js/translations/tr.json +0 -2
- homeassistant/components/zwave_js/translations/zh-Hans.json +6 -6
- homeassistant/components/zwave_js/translations/zh-Hant.json +7 -7
- homeassistant/components/zwave_js/trigger.py +7 -35
- homeassistant/components/zwave_js/triggers/event.py +29 -3
- homeassistant/components/zwave_js/triggers/value_updated.py +27 -1
- homeassistant/config.py +1 -2
- homeassistant/const.py +4 -3
- homeassistant/core.py +11 -14
- homeassistant/core_config.py +5 -6
- homeassistant/exceptions.py +1 -2
- homeassistant/generated/config_flows.py +5 -1
- homeassistant/generated/dhcp.py +81 -1
- homeassistant/generated/integrations.json +36 -13
- homeassistant/generated/usb.py +6 -0
- homeassistant/generated/zeroconf.py +10 -0
- homeassistant/helpers/area_registry.py +3 -6
- homeassistant/helpers/backup.py +1 -2
- homeassistant/helpers/condition.py +45 -24
- homeassistant/helpers/config_entry_flow.py +3 -6
- homeassistant/helpers/config_validation.py +5 -8
- homeassistant/helpers/deprecation.py +3 -4
- homeassistant/helpers/device_registry.py +48 -5
- homeassistant/helpers/entity.py +1 -29
- homeassistant/helpers/entity_registry.py +127 -13
- homeassistant/helpers/json.py +1 -4
- homeassistant/helpers/llm.py +17 -4
- homeassistant/helpers/network.py +2 -4
- homeassistant/helpers/recorder.py +5 -6
- homeassistant/helpers/selector.py +72 -5
- homeassistant/helpers/service.py +8 -7
- homeassistant/helpers/storage.py +1 -1
- homeassistant/helpers/sun.py +2 -2
- homeassistant/helpers/system_info.py +19 -2
- homeassistant/helpers/template.py +28 -17
- homeassistant/helpers/trigger.py +257 -14
- homeassistant/helpers/typing.py +1 -2
- homeassistant/loader.py +11 -6
- homeassistant/package_constraints.txt +25 -19
- homeassistant/scripts/__init__.py +1 -3
- homeassistant/scripts/check_config.py +1 -2
- homeassistant/setup.py +1 -2
- homeassistant/strings.json +3 -1
- homeassistant/util/async_.py +1 -2
- homeassistant/util/signal_type.pyi +2 -3
- homeassistant/util/timeout.py +19 -5
- homeassistant/util/yaml/loader.py +11 -7
- {homeassistant-2025.6.3.dist-info → homeassistant-2025.7.0b0.dist-info}/METADATA +10 -19
- {homeassistant-2025.6.3.dist-info → homeassistant-2025.7.0b0.dist-info}/RECORD +2761 -2585
- homeassistant/backports/enum.py +0 -29
- homeassistant/backports/functools.py +0 -31
- homeassistant/components/devolo_home_control/devolo_multi_level_switch.py +0 -27
- homeassistant/components/juicenet/device.py +0 -19
- homeassistant/components/juicenet/entity.py +0 -34
- homeassistant/components/juicenet/number.py +0 -92
- homeassistant/components/juicenet/sensor.py +0 -117
- homeassistant/components/juicenet/switch.py +0 -49
- homeassistant/components/synology_dsm/service.py +0 -77
- {homeassistant-2025.6.3.dist-info → homeassistant-2025.7.0b0.dist-info}/WHEEL +0 -0
- {homeassistant-2025.6.3.dist-info → homeassistant-2025.7.0b0.dist-info}/entry_points.txt +0 -0
- {homeassistant-2025.6.3.dist-info → homeassistant-2025.7.0b0.dist-info}/licenses/LICENSE.md +0 -0
- {homeassistant-2025.6.3.dist-info → homeassistant-2025.7.0b0.dist-info}/licenses/homeassistant/backports/LICENSE.Python +0 -0
- {homeassistant-2025.6.3.dist-info → homeassistant-2025.7.0b0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,1013 @@
|
|
|
1
|
+
"""Telegram bot classes and utilities."""
|
|
2
|
+
|
|
3
|
+
from abc import abstractmethod
|
|
4
|
+
import asyncio
|
|
5
|
+
from collections.abc import Callable, Sequence
|
|
6
|
+
import io
|
|
7
|
+
import logging
|
|
8
|
+
from ssl import SSLContext
|
|
9
|
+
from types import MappingProxyType
|
|
10
|
+
from typing import Any
|
|
11
|
+
|
|
12
|
+
import httpx
|
|
13
|
+
from telegram import (
|
|
14
|
+
Bot,
|
|
15
|
+
CallbackQuery,
|
|
16
|
+
InlineKeyboardButton,
|
|
17
|
+
InlineKeyboardMarkup,
|
|
18
|
+
InputPollOption,
|
|
19
|
+
Message,
|
|
20
|
+
ReplyKeyboardMarkup,
|
|
21
|
+
ReplyKeyboardRemove,
|
|
22
|
+
Update,
|
|
23
|
+
User,
|
|
24
|
+
)
|
|
25
|
+
from telegram.constants import ParseMode
|
|
26
|
+
from telegram.error import TelegramError
|
|
27
|
+
from telegram.ext import CallbackContext, filters
|
|
28
|
+
from telegram.request import HTTPXRequest
|
|
29
|
+
|
|
30
|
+
from homeassistant.config_entries import ConfigEntry
|
|
31
|
+
from homeassistant.const import (
|
|
32
|
+
ATTR_COMMAND,
|
|
33
|
+
CONF_API_KEY,
|
|
34
|
+
HTTP_BASIC_AUTHENTICATION,
|
|
35
|
+
HTTP_BEARER_AUTHENTICATION,
|
|
36
|
+
HTTP_DIGEST_AUTHENTICATION,
|
|
37
|
+
)
|
|
38
|
+
from homeassistant.core import Context, HomeAssistant
|
|
39
|
+
from homeassistant.exceptions import HomeAssistantError, ServiceValidationError
|
|
40
|
+
from homeassistant.util.ssl import get_default_context, get_default_no_verify_context
|
|
41
|
+
|
|
42
|
+
from .const import (
|
|
43
|
+
ATTR_ARGS,
|
|
44
|
+
ATTR_AUTHENTICATION,
|
|
45
|
+
ATTR_CAPTION,
|
|
46
|
+
ATTR_CHAT_ID,
|
|
47
|
+
ATTR_CHAT_INSTANCE,
|
|
48
|
+
ATTR_DATA,
|
|
49
|
+
ATTR_DATE,
|
|
50
|
+
ATTR_DISABLE_NOTIF,
|
|
51
|
+
ATTR_DISABLE_WEB_PREV,
|
|
52
|
+
ATTR_FILE,
|
|
53
|
+
ATTR_FROM_FIRST,
|
|
54
|
+
ATTR_FROM_LAST,
|
|
55
|
+
ATTR_KEYBOARD,
|
|
56
|
+
ATTR_KEYBOARD_INLINE,
|
|
57
|
+
ATTR_MESSAGE,
|
|
58
|
+
ATTR_MESSAGE_TAG,
|
|
59
|
+
ATTR_MESSAGE_THREAD_ID,
|
|
60
|
+
ATTR_MESSAGEID,
|
|
61
|
+
ATTR_MSG,
|
|
62
|
+
ATTR_MSGID,
|
|
63
|
+
ATTR_ONE_TIME_KEYBOARD,
|
|
64
|
+
ATTR_OPEN_PERIOD,
|
|
65
|
+
ATTR_PARSER,
|
|
66
|
+
ATTR_PASSWORD,
|
|
67
|
+
ATTR_REPLY_TO_MSGID,
|
|
68
|
+
ATTR_REPLYMARKUP,
|
|
69
|
+
ATTR_RESIZE_KEYBOARD,
|
|
70
|
+
ATTR_STICKER_ID,
|
|
71
|
+
ATTR_TEXT,
|
|
72
|
+
ATTR_TIMEOUT,
|
|
73
|
+
ATTR_TITLE,
|
|
74
|
+
ATTR_URL,
|
|
75
|
+
ATTR_USER_ID,
|
|
76
|
+
ATTR_USERNAME,
|
|
77
|
+
ATTR_VERIFY_SSL,
|
|
78
|
+
CONF_CHAT_ID,
|
|
79
|
+
CONF_PROXY_URL,
|
|
80
|
+
DOMAIN,
|
|
81
|
+
EVENT_TELEGRAM_CALLBACK,
|
|
82
|
+
EVENT_TELEGRAM_COMMAND,
|
|
83
|
+
EVENT_TELEGRAM_SENT,
|
|
84
|
+
EVENT_TELEGRAM_TEXT,
|
|
85
|
+
PARSER_HTML,
|
|
86
|
+
PARSER_MD,
|
|
87
|
+
PARSER_MD2,
|
|
88
|
+
PARSER_PLAIN_TEXT,
|
|
89
|
+
SERVICE_EDIT_CAPTION,
|
|
90
|
+
SERVICE_EDIT_MESSAGE,
|
|
91
|
+
SERVICE_SEND_ANIMATION,
|
|
92
|
+
SERVICE_SEND_DOCUMENT,
|
|
93
|
+
SERVICE_SEND_PHOTO,
|
|
94
|
+
SERVICE_SEND_STICKER,
|
|
95
|
+
SERVICE_SEND_VIDEO,
|
|
96
|
+
SERVICE_SEND_VOICE,
|
|
97
|
+
)
|
|
98
|
+
|
|
99
|
+
_LOGGER = logging.getLogger(__name__)
|
|
100
|
+
|
|
101
|
+
type TelegramBotConfigEntry = ConfigEntry[TelegramNotificationService]
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
class BaseTelegramBot:
|
|
105
|
+
"""The base class for the telegram bot."""
|
|
106
|
+
|
|
107
|
+
def __init__(self, hass: HomeAssistant, config: TelegramBotConfigEntry) -> None:
|
|
108
|
+
"""Initialize the bot base class."""
|
|
109
|
+
self.hass = hass
|
|
110
|
+
self.config = config
|
|
111
|
+
|
|
112
|
+
@abstractmethod
|
|
113
|
+
async def shutdown(self) -> None:
|
|
114
|
+
"""Shutdown the bot application."""
|
|
115
|
+
|
|
116
|
+
async def handle_update(self, update: Update, context: CallbackContext) -> bool:
|
|
117
|
+
"""Handle updates from bot application set up by the respective platform."""
|
|
118
|
+
_LOGGER.debug("Handling update %s", update)
|
|
119
|
+
if not self.authorize_update(update):
|
|
120
|
+
return False
|
|
121
|
+
|
|
122
|
+
# establish event type: text, command or callback_query
|
|
123
|
+
if update.callback_query:
|
|
124
|
+
# NOTE: Check for callback query first since effective message will be populated with the message
|
|
125
|
+
# in .callback_query (python-telegram-bot docs are wrong)
|
|
126
|
+
event_type, event_data = self._get_callback_query_event_data(
|
|
127
|
+
update.callback_query
|
|
128
|
+
)
|
|
129
|
+
elif update.effective_message:
|
|
130
|
+
event_type, event_data = self._get_message_event_data(
|
|
131
|
+
update.effective_message
|
|
132
|
+
)
|
|
133
|
+
else:
|
|
134
|
+
_LOGGER.warning("Unhandled update: %s", update)
|
|
135
|
+
return True
|
|
136
|
+
|
|
137
|
+
event_context = Context()
|
|
138
|
+
|
|
139
|
+
_LOGGER.debug("Firing event %s: %s", event_type, event_data)
|
|
140
|
+
self.hass.bus.async_fire(event_type, event_data, context=event_context)
|
|
141
|
+
return True
|
|
142
|
+
|
|
143
|
+
@staticmethod
|
|
144
|
+
def _get_command_event_data(command_text: str | None) -> dict[str, str | list]:
|
|
145
|
+
if not command_text or not command_text.startswith("/"):
|
|
146
|
+
return {}
|
|
147
|
+
command_parts = command_text.split()
|
|
148
|
+
command = command_parts[0]
|
|
149
|
+
args = command_parts[1:]
|
|
150
|
+
return {ATTR_COMMAND: command, ATTR_ARGS: args}
|
|
151
|
+
|
|
152
|
+
def _get_message_event_data(self, message: Message) -> tuple[str, dict[str, Any]]:
|
|
153
|
+
event_data: dict[str, Any] = {
|
|
154
|
+
ATTR_MSGID: message.message_id,
|
|
155
|
+
ATTR_CHAT_ID: message.chat.id,
|
|
156
|
+
ATTR_DATE: message.date,
|
|
157
|
+
ATTR_MESSAGE_THREAD_ID: message.message_thread_id,
|
|
158
|
+
}
|
|
159
|
+
if filters.COMMAND.filter(message):
|
|
160
|
+
# This is a command message - set event type to command and split data into command and args
|
|
161
|
+
event_type = EVENT_TELEGRAM_COMMAND
|
|
162
|
+
event_data.update(self._get_command_event_data(message.text))
|
|
163
|
+
else:
|
|
164
|
+
event_type = EVENT_TELEGRAM_TEXT
|
|
165
|
+
event_data[ATTR_TEXT] = message.text
|
|
166
|
+
|
|
167
|
+
if message.from_user:
|
|
168
|
+
event_data.update(self._get_user_event_data(message.from_user))
|
|
169
|
+
|
|
170
|
+
return event_type, event_data
|
|
171
|
+
|
|
172
|
+
def _get_user_event_data(self, user: User) -> dict[str, Any]:
|
|
173
|
+
return {
|
|
174
|
+
ATTR_USER_ID: user.id,
|
|
175
|
+
ATTR_FROM_FIRST: user.first_name,
|
|
176
|
+
ATTR_FROM_LAST: user.last_name,
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
def _get_callback_query_event_data(
|
|
180
|
+
self, callback_query: CallbackQuery
|
|
181
|
+
) -> tuple[str, dict[str, Any]]:
|
|
182
|
+
event_type = EVENT_TELEGRAM_CALLBACK
|
|
183
|
+
event_data: dict[str, Any] = {
|
|
184
|
+
ATTR_MSGID: callback_query.id,
|
|
185
|
+
ATTR_CHAT_INSTANCE: callback_query.chat_instance,
|
|
186
|
+
ATTR_DATA: callback_query.data,
|
|
187
|
+
ATTR_MSG: None,
|
|
188
|
+
ATTR_CHAT_ID: None,
|
|
189
|
+
}
|
|
190
|
+
if callback_query.message:
|
|
191
|
+
event_data[ATTR_MSG] = callback_query.message.to_dict()
|
|
192
|
+
event_data[ATTR_CHAT_ID] = callback_query.message.chat.id
|
|
193
|
+
|
|
194
|
+
if callback_query.from_user:
|
|
195
|
+
event_data.update(self._get_user_event_data(callback_query.from_user))
|
|
196
|
+
|
|
197
|
+
# Split data into command and args if possible
|
|
198
|
+
event_data.update(self._get_command_event_data(callback_query.data))
|
|
199
|
+
|
|
200
|
+
return event_type, event_data
|
|
201
|
+
|
|
202
|
+
def authorize_update(self, update: Update) -> bool:
|
|
203
|
+
"""Make sure either user or chat is in allowed_chat_ids."""
|
|
204
|
+
from_user = update.effective_user.id if update.effective_user else None
|
|
205
|
+
from_chat = update.effective_chat.id if update.effective_chat else None
|
|
206
|
+
allowed_chat_ids: list[int] = [
|
|
207
|
+
subentry.data[CONF_CHAT_ID] for subentry in self.config.subentries.values()
|
|
208
|
+
]
|
|
209
|
+
if from_user in allowed_chat_ids or from_chat in allowed_chat_ids:
|
|
210
|
+
return True
|
|
211
|
+
_LOGGER.error(
|
|
212
|
+
(
|
|
213
|
+
"Unauthorized update - neither user id %s nor chat id %s is in allowed"
|
|
214
|
+
" chats: %s"
|
|
215
|
+
),
|
|
216
|
+
from_user,
|
|
217
|
+
from_chat,
|
|
218
|
+
allowed_chat_ids,
|
|
219
|
+
)
|
|
220
|
+
return False
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
class TelegramNotificationService:
|
|
224
|
+
"""Implement the notification services for the Telegram Bot domain."""
|
|
225
|
+
|
|
226
|
+
def __init__(
|
|
227
|
+
self,
|
|
228
|
+
hass: HomeAssistant,
|
|
229
|
+
app: BaseTelegramBot,
|
|
230
|
+
bot: Bot,
|
|
231
|
+
config: TelegramBotConfigEntry,
|
|
232
|
+
parser: str,
|
|
233
|
+
) -> None:
|
|
234
|
+
"""Initialize the service."""
|
|
235
|
+
self.app = app
|
|
236
|
+
self.config = config
|
|
237
|
+
self._parsers: dict[str, str | None] = {
|
|
238
|
+
PARSER_HTML: ParseMode.HTML,
|
|
239
|
+
PARSER_MD: ParseMode.MARKDOWN,
|
|
240
|
+
PARSER_MD2: ParseMode.MARKDOWN_V2,
|
|
241
|
+
PARSER_PLAIN_TEXT: None,
|
|
242
|
+
}
|
|
243
|
+
self.parse_mode = self._parsers[parser]
|
|
244
|
+
self.bot = bot
|
|
245
|
+
self.hass = hass
|
|
246
|
+
self._last_message_id: dict[int, int] = {}
|
|
247
|
+
|
|
248
|
+
def _get_allowed_chat_ids(self) -> list[int]:
|
|
249
|
+
allowed_chat_ids: list[int] = [
|
|
250
|
+
subentry.data[CONF_CHAT_ID] for subentry in self.config.subentries.values()
|
|
251
|
+
]
|
|
252
|
+
|
|
253
|
+
if not allowed_chat_ids:
|
|
254
|
+
bot_name: str = self.config.title
|
|
255
|
+
raise ServiceValidationError(
|
|
256
|
+
"No allowed chat IDs found for bot",
|
|
257
|
+
translation_domain=DOMAIN,
|
|
258
|
+
translation_key="missing_allowed_chat_ids",
|
|
259
|
+
translation_placeholders={
|
|
260
|
+
"bot_name": bot_name,
|
|
261
|
+
},
|
|
262
|
+
)
|
|
263
|
+
|
|
264
|
+
return allowed_chat_ids
|
|
265
|
+
|
|
266
|
+
def _get_msg_ids(
|
|
267
|
+
self, msg_data: dict[str, Any], chat_id: int
|
|
268
|
+
) -> tuple[Any | None, int | None]:
|
|
269
|
+
"""Get the message id to edit.
|
|
270
|
+
|
|
271
|
+
This can be one of (message_id, inline_message_id) from a msg dict,
|
|
272
|
+
returning a tuple.
|
|
273
|
+
**You can use 'last' as message_id** to edit
|
|
274
|
+
the message last sent in the chat_id.
|
|
275
|
+
"""
|
|
276
|
+
message_id: Any | None = None
|
|
277
|
+
inline_message_id: int | None = None
|
|
278
|
+
if ATTR_MESSAGEID in msg_data:
|
|
279
|
+
message_id = msg_data[ATTR_MESSAGEID]
|
|
280
|
+
if (
|
|
281
|
+
isinstance(message_id, str)
|
|
282
|
+
and (message_id == "last")
|
|
283
|
+
and (chat_id in self._last_message_id)
|
|
284
|
+
):
|
|
285
|
+
message_id = self._last_message_id[chat_id]
|
|
286
|
+
else:
|
|
287
|
+
inline_message_id = msg_data["inline_message_id"]
|
|
288
|
+
return message_id, inline_message_id
|
|
289
|
+
|
|
290
|
+
def _get_target_chat_ids(self, target: Any) -> list[int]:
|
|
291
|
+
"""Validate chat_id targets or return default target (first).
|
|
292
|
+
|
|
293
|
+
:param target: optional list of integers ([12234, -12345])
|
|
294
|
+
:return list of chat_id targets (integers)
|
|
295
|
+
"""
|
|
296
|
+
allowed_chat_ids: list[int] = self._get_allowed_chat_ids()
|
|
297
|
+
default_user: int = allowed_chat_ids[0]
|
|
298
|
+
if target is not None:
|
|
299
|
+
if isinstance(target, int):
|
|
300
|
+
target = [target]
|
|
301
|
+
chat_ids = [t for t in target if t in allowed_chat_ids]
|
|
302
|
+
if chat_ids:
|
|
303
|
+
return chat_ids
|
|
304
|
+
_LOGGER.warning(
|
|
305
|
+
"Disallowed targets: %s, using default: %s", target, default_user
|
|
306
|
+
)
|
|
307
|
+
return [default_user]
|
|
308
|
+
|
|
309
|
+
def _get_msg_kwargs(self, data: dict[str, Any]) -> dict[str, Any]:
|
|
310
|
+
"""Get parameters in message data kwargs."""
|
|
311
|
+
|
|
312
|
+
def _make_row_inline_keyboard(row_keyboard: Any) -> list[InlineKeyboardButton]:
|
|
313
|
+
"""Make a list of InlineKeyboardButtons.
|
|
314
|
+
|
|
315
|
+
It can accept:
|
|
316
|
+
- a list of tuples like:
|
|
317
|
+
`[(text_b1, data_callback_b1),
|
|
318
|
+
(text_b2, data_callback_b2), ...]
|
|
319
|
+
- a string like: `/cmd1, /cmd2, /cmd3`
|
|
320
|
+
- or a string like: `text_b1:/cmd1, text_b2:/cmd2`
|
|
321
|
+
- also supports urls instead of callback commands
|
|
322
|
+
"""
|
|
323
|
+
buttons = []
|
|
324
|
+
if isinstance(row_keyboard, str):
|
|
325
|
+
for key in row_keyboard.split(","):
|
|
326
|
+
if ":/" in key:
|
|
327
|
+
# check if command or URL
|
|
328
|
+
if "https://" in key:
|
|
329
|
+
label = key.split(":")[0]
|
|
330
|
+
url = key[len(label) + 1 :]
|
|
331
|
+
buttons.append(InlineKeyboardButton(label, url=url))
|
|
332
|
+
else:
|
|
333
|
+
# commands like: 'Label:/cmd' become ('Label', '/cmd')
|
|
334
|
+
label = key.split(":/")[0]
|
|
335
|
+
command = key[len(label) + 1 :]
|
|
336
|
+
buttons.append(
|
|
337
|
+
InlineKeyboardButton(label, callback_data=command)
|
|
338
|
+
)
|
|
339
|
+
else:
|
|
340
|
+
# commands like: '/cmd' become ('CMD', '/cmd')
|
|
341
|
+
label = key.strip()[1:].upper()
|
|
342
|
+
buttons.append(InlineKeyboardButton(label, callback_data=key))
|
|
343
|
+
elif isinstance(row_keyboard, list):
|
|
344
|
+
for entry in row_keyboard:
|
|
345
|
+
text_btn, data_btn = entry
|
|
346
|
+
if data_btn.startswith("https://"):
|
|
347
|
+
buttons.append(InlineKeyboardButton(text_btn, url=data_btn))
|
|
348
|
+
else:
|
|
349
|
+
buttons.append(
|
|
350
|
+
InlineKeyboardButton(text_btn, callback_data=data_btn)
|
|
351
|
+
)
|
|
352
|
+
else:
|
|
353
|
+
raise TypeError(str(row_keyboard))
|
|
354
|
+
return buttons
|
|
355
|
+
|
|
356
|
+
# Defaults
|
|
357
|
+
params: dict[str, Any] = {
|
|
358
|
+
ATTR_PARSER: self.parse_mode,
|
|
359
|
+
ATTR_DISABLE_NOTIF: False,
|
|
360
|
+
ATTR_DISABLE_WEB_PREV: None,
|
|
361
|
+
ATTR_REPLY_TO_MSGID: None,
|
|
362
|
+
ATTR_REPLYMARKUP: None,
|
|
363
|
+
ATTR_TIMEOUT: None,
|
|
364
|
+
ATTR_MESSAGE_TAG: None,
|
|
365
|
+
ATTR_MESSAGE_THREAD_ID: None,
|
|
366
|
+
}
|
|
367
|
+
if data is not None:
|
|
368
|
+
if ATTR_PARSER in data:
|
|
369
|
+
params[ATTR_PARSER] = self._parsers.get(
|
|
370
|
+
data[ATTR_PARSER], self.parse_mode
|
|
371
|
+
)
|
|
372
|
+
if ATTR_TIMEOUT in data:
|
|
373
|
+
params[ATTR_TIMEOUT] = data[ATTR_TIMEOUT]
|
|
374
|
+
if ATTR_DISABLE_NOTIF in data:
|
|
375
|
+
params[ATTR_DISABLE_NOTIF] = data[ATTR_DISABLE_NOTIF]
|
|
376
|
+
if ATTR_DISABLE_WEB_PREV in data:
|
|
377
|
+
params[ATTR_DISABLE_WEB_PREV] = data[ATTR_DISABLE_WEB_PREV]
|
|
378
|
+
if ATTR_REPLY_TO_MSGID in data:
|
|
379
|
+
params[ATTR_REPLY_TO_MSGID] = data[ATTR_REPLY_TO_MSGID]
|
|
380
|
+
if ATTR_MESSAGE_TAG in data:
|
|
381
|
+
params[ATTR_MESSAGE_TAG] = data[ATTR_MESSAGE_TAG]
|
|
382
|
+
if ATTR_MESSAGE_THREAD_ID in data:
|
|
383
|
+
params[ATTR_MESSAGE_THREAD_ID] = data[ATTR_MESSAGE_THREAD_ID]
|
|
384
|
+
# Keyboards:
|
|
385
|
+
if ATTR_KEYBOARD in data:
|
|
386
|
+
keys = data.get(ATTR_KEYBOARD)
|
|
387
|
+
keys = keys if isinstance(keys, list) else [keys]
|
|
388
|
+
if keys:
|
|
389
|
+
params[ATTR_REPLYMARKUP] = ReplyKeyboardMarkup(
|
|
390
|
+
[[key.strip() for key in row.split(",")] for row in keys],
|
|
391
|
+
resize_keyboard=data.get(ATTR_RESIZE_KEYBOARD, False),
|
|
392
|
+
one_time_keyboard=data.get(ATTR_ONE_TIME_KEYBOARD, False),
|
|
393
|
+
)
|
|
394
|
+
else:
|
|
395
|
+
params[ATTR_REPLYMARKUP] = ReplyKeyboardRemove(True)
|
|
396
|
+
|
|
397
|
+
elif ATTR_KEYBOARD_INLINE in data:
|
|
398
|
+
keys = data.get(ATTR_KEYBOARD_INLINE)
|
|
399
|
+
keys = keys if isinstance(keys, list) else [keys]
|
|
400
|
+
params[ATTR_REPLYMARKUP] = InlineKeyboardMarkup(
|
|
401
|
+
[_make_row_inline_keyboard(row) for row in keys]
|
|
402
|
+
)
|
|
403
|
+
return params
|
|
404
|
+
|
|
405
|
+
async def _send_msg(
|
|
406
|
+
self,
|
|
407
|
+
func_send: Callable,
|
|
408
|
+
msg_error: str,
|
|
409
|
+
message_tag: str | None,
|
|
410
|
+
*args_msg: Any,
|
|
411
|
+
context: Context | None = None,
|
|
412
|
+
**kwargs_msg: Any,
|
|
413
|
+
) -> Any:
|
|
414
|
+
"""Send one message."""
|
|
415
|
+
try:
|
|
416
|
+
out = await func_send(*args_msg, **kwargs_msg)
|
|
417
|
+
if not isinstance(out, bool) and hasattr(out, ATTR_MESSAGEID):
|
|
418
|
+
chat_id = out.chat_id
|
|
419
|
+
message_id = out[ATTR_MESSAGEID]
|
|
420
|
+
self._last_message_id[chat_id] = message_id
|
|
421
|
+
_LOGGER.debug(
|
|
422
|
+
"Last message ID: %s (from chat_id %s)",
|
|
423
|
+
self._last_message_id,
|
|
424
|
+
chat_id,
|
|
425
|
+
)
|
|
426
|
+
|
|
427
|
+
event_data = {
|
|
428
|
+
ATTR_CHAT_ID: chat_id,
|
|
429
|
+
ATTR_MESSAGEID: message_id,
|
|
430
|
+
}
|
|
431
|
+
if message_tag is not None:
|
|
432
|
+
event_data[ATTR_MESSAGE_TAG] = message_tag
|
|
433
|
+
if kwargs_msg.get(ATTR_MESSAGE_THREAD_ID) is not None:
|
|
434
|
+
event_data[ATTR_MESSAGE_THREAD_ID] = kwargs_msg[
|
|
435
|
+
ATTR_MESSAGE_THREAD_ID
|
|
436
|
+
]
|
|
437
|
+
self.hass.bus.async_fire(
|
|
438
|
+
EVENT_TELEGRAM_SENT, event_data, context=context
|
|
439
|
+
)
|
|
440
|
+
elif not isinstance(out, bool):
|
|
441
|
+
_LOGGER.warning(
|
|
442
|
+
"Update last message: out_type:%s, out=%s", type(out), out
|
|
443
|
+
)
|
|
444
|
+
except TelegramError as exc:
|
|
445
|
+
_LOGGER.error(
|
|
446
|
+
"%s: %s. Args: %s, kwargs: %s", msg_error, exc, args_msg, kwargs_msg
|
|
447
|
+
)
|
|
448
|
+
return None
|
|
449
|
+
return out
|
|
450
|
+
|
|
451
|
+
async def send_message(
|
|
452
|
+
self,
|
|
453
|
+
message: str = "",
|
|
454
|
+
target: Any = None,
|
|
455
|
+
context: Context | None = None,
|
|
456
|
+
**kwargs: dict[str, Any],
|
|
457
|
+
) -> dict[int, int]:
|
|
458
|
+
"""Send a message to one or multiple pre-allowed chat IDs."""
|
|
459
|
+
title = kwargs.get(ATTR_TITLE)
|
|
460
|
+
text = f"{title}\n{message}" if title else message
|
|
461
|
+
params = self._get_msg_kwargs(kwargs)
|
|
462
|
+
msg_ids = {}
|
|
463
|
+
for chat_id in self._get_target_chat_ids(target):
|
|
464
|
+
_LOGGER.debug("Send message in chat ID %s with params: %s", chat_id, params)
|
|
465
|
+
msg = await self._send_msg(
|
|
466
|
+
self.bot.send_message,
|
|
467
|
+
"Error sending message",
|
|
468
|
+
params[ATTR_MESSAGE_TAG],
|
|
469
|
+
chat_id,
|
|
470
|
+
text,
|
|
471
|
+
parse_mode=params[ATTR_PARSER],
|
|
472
|
+
disable_web_page_preview=params[ATTR_DISABLE_WEB_PREV],
|
|
473
|
+
disable_notification=params[ATTR_DISABLE_NOTIF],
|
|
474
|
+
reply_to_message_id=params[ATTR_REPLY_TO_MSGID],
|
|
475
|
+
reply_markup=params[ATTR_REPLYMARKUP],
|
|
476
|
+
read_timeout=params[ATTR_TIMEOUT],
|
|
477
|
+
message_thread_id=params[ATTR_MESSAGE_THREAD_ID],
|
|
478
|
+
context=context,
|
|
479
|
+
)
|
|
480
|
+
if msg is not None:
|
|
481
|
+
msg_ids[chat_id] = msg.id
|
|
482
|
+
return msg_ids
|
|
483
|
+
|
|
484
|
+
async def delete_message(
|
|
485
|
+
self,
|
|
486
|
+
chat_id: int | None = None,
|
|
487
|
+
context: Context | None = None,
|
|
488
|
+
**kwargs: dict[str, Any],
|
|
489
|
+
) -> bool:
|
|
490
|
+
"""Delete a previously sent message."""
|
|
491
|
+
chat_id = self._get_target_chat_ids(chat_id)[0]
|
|
492
|
+
message_id, _ = self._get_msg_ids(kwargs, chat_id)
|
|
493
|
+
_LOGGER.debug("Delete message %s in chat ID %s", message_id, chat_id)
|
|
494
|
+
deleted: bool = await self._send_msg(
|
|
495
|
+
self.bot.delete_message,
|
|
496
|
+
"Error deleting message",
|
|
497
|
+
None,
|
|
498
|
+
chat_id,
|
|
499
|
+
message_id,
|
|
500
|
+
context=context,
|
|
501
|
+
)
|
|
502
|
+
# reduce message_id anyway:
|
|
503
|
+
if chat_id in self._last_message_id:
|
|
504
|
+
# change last msg_id for deque(n_msgs)?
|
|
505
|
+
self._last_message_id[chat_id] -= 1
|
|
506
|
+
return deleted
|
|
507
|
+
|
|
508
|
+
async def edit_message(
|
|
509
|
+
self,
|
|
510
|
+
type_edit: str,
|
|
511
|
+
chat_id: int | None = None,
|
|
512
|
+
context: Context | None = None,
|
|
513
|
+
**kwargs: dict[str, Any],
|
|
514
|
+
) -> Any:
|
|
515
|
+
"""Edit a previously sent message."""
|
|
516
|
+
chat_id = self._get_target_chat_ids(chat_id)[0]
|
|
517
|
+
message_id, inline_message_id = self._get_msg_ids(kwargs, chat_id)
|
|
518
|
+
params = self._get_msg_kwargs(kwargs)
|
|
519
|
+
_LOGGER.debug(
|
|
520
|
+
"Edit message %s in chat ID %s with params: %s",
|
|
521
|
+
message_id or inline_message_id,
|
|
522
|
+
chat_id,
|
|
523
|
+
params,
|
|
524
|
+
)
|
|
525
|
+
if type_edit == SERVICE_EDIT_MESSAGE:
|
|
526
|
+
message = kwargs.get(ATTR_MESSAGE)
|
|
527
|
+
title = kwargs.get(ATTR_TITLE)
|
|
528
|
+
text = f"{title}\n{message}" if title else message
|
|
529
|
+
_LOGGER.debug("Editing message with ID %s", message_id or inline_message_id)
|
|
530
|
+
return await self._send_msg(
|
|
531
|
+
self.bot.edit_message_text,
|
|
532
|
+
"Error editing text message",
|
|
533
|
+
params[ATTR_MESSAGE_TAG],
|
|
534
|
+
text,
|
|
535
|
+
chat_id=chat_id,
|
|
536
|
+
message_id=message_id,
|
|
537
|
+
inline_message_id=inline_message_id,
|
|
538
|
+
parse_mode=params[ATTR_PARSER],
|
|
539
|
+
disable_web_page_preview=params[ATTR_DISABLE_WEB_PREV],
|
|
540
|
+
reply_markup=params[ATTR_REPLYMARKUP],
|
|
541
|
+
read_timeout=params[ATTR_TIMEOUT],
|
|
542
|
+
context=context,
|
|
543
|
+
)
|
|
544
|
+
if type_edit == SERVICE_EDIT_CAPTION:
|
|
545
|
+
return await self._send_msg(
|
|
546
|
+
self.bot.edit_message_caption,
|
|
547
|
+
"Error editing message attributes",
|
|
548
|
+
params[ATTR_MESSAGE_TAG],
|
|
549
|
+
chat_id=chat_id,
|
|
550
|
+
message_id=message_id,
|
|
551
|
+
inline_message_id=inline_message_id,
|
|
552
|
+
caption=kwargs.get(ATTR_CAPTION),
|
|
553
|
+
reply_markup=params[ATTR_REPLYMARKUP],
|
|
554
|
+
read_timeout=params[ATTR_TIMEOUT],
|
|
555
|
+
parse_mode=params[ATTR_PARSER],
|
|
556
|
+
context=context,
|
|
557
|
+
)
|
|
558
|
+
|
|
559
|
+
return await self._send_msg(
|
|
560
|
+
self.bot.edit_message_reply_markup,
|
|
561
|
+
"Error editing message attributes",
|
|
562
|
+
params[ATTR_MESSAGE_TAG],
|
|
563
|
+
chat_id=chat_id,
|
|
564
|
+
message_id=message_id,
|
|
565
|
+
inline_message_id=inline_message_id,
|
|
566
|
+
reply_markup=params[ATTR_REPLYMARKUP],
|
|
567
|
+
read_timeout=params[ATTR_TIMEOUT],
|
|
568
|
+
context=context,
|
|
569
|
+
)
|
|
570
|
+
|
|
571
|
+
async def answer_callback_query(
|
|
572
|
+
self,
|
|
573
|
+
message: str | None,
|
|
574
|
+
callback_query_id: str,
|
|
575
|
+
show_alert: bool = False,
|
|
576
|
+
context: Context | None = None,
|
|
577
|
+
**kwargs: dict[str, Any],
|
|
578
|
+
) -> None:
|
|
579
|
+
"""Answer a callback originated with a press in an inline keyboard."""
|
|
580
|
+
params = self._get_msg_kwargs(kwargs)
|
|
581
|
+
_LOGGER.debug(
|
|
582
|
+
"Answer callback query with callback ID %s: %s, alert: %s",
|
|
583
|
+
callback_query_id,
|
|
584
|
+
message,
|
|
585
|
+
show_alert,
|
|
586
|
+
)
|
|
587
|
+
await self._send_msg(
|
|
588
|
+
self.bot.answer_callback_query,
|
|
589
|
+
"Error sending answer callback query",
|
|
590
|
+
params[ATTR_MESSAGE_TAG],
|
|
591
|
+
callback_query_id,
|
|
592
|
+
text=message,
|
|
593
|
+
show_alert=show_alert,
|
|
594
|
+
read_timeout=params[ATTR_TIMEOUT],
|
|
595
|
+
context=context,
|
|
596
|
+
)
|
|
597
|
+
|
|
598
|
+
async def send_file(
|
|
599
|
+
self,
|
|
600
|
+
file_type: str,
|
|
601
|
+
target: Any = None,
|
|
602
|
+
context: Context | None = None,
|
|
603
|
+
**kwargs: Any,
|
|
604
|
+
) -> dict[int, int]:
|
|
605
|
+
"""Send a photo, sticker, video, or document."""
|
|
606
|
+
params = self._get_msg_kwargs(kwargs)
|
|
607
|
+
file_content = await load_data(
|
|
608
|
+
self.hass,
|
|
609
|
+
url=kwargs.get(ATTR_URL),
|
|
610
|
+
filepath=kwargs.get(ATTR_FILE),
|
|
611
|
+
username=kwargs.get(ATTR_USERNAME, ""),
|
|
612
|
+
password=kwargs.get(ATTR_PASSWORD, ""),
|
|
613
|
+
authentication=kwargs.get(ATTR_AUTHENTICATION),
|
|
614
|
+
verify_ssl=(
|
|
615
|
+
get_default_context()
|
|
616
|
+
if kwargs.get(ATTR_VERIFY_SSL, False)
|
|
617
|
+
else get_default_no_verify_context()
|
|
618
|
+
),
|
|
619
|
+
)
|
|
620
|
+
|
|
621
|
+
msg_ids = {}
|
|
622
|
+
if file_content:
|
|
623
|
+
for chat_id in self._get_target_chat_ids(target):
|
|
624
|
+
_LOGGER.debug("Sending file to chat ID %s", chat_id)
|
|
625
|
+
|
|
626
|
+
if file_type == SERVICE_SEND_PHOTO:
|
|
627
|
+
msg = await self._send_msg(
|
|
628
|
+
self.bot.send_photo,
|
|
629
|
+
"Error sending photo",
|
|
630
|
+
params[ATTR_MESSAGE_TAG],
|
|
631
|
+
chat_id=chat_id,
|
|
632
|
+
photo=file_content,
|
|
633
|
+
caption=kwargs.get(ATTR_CAPTION),
|
|
634
|
+
disable_notification=params[ATTR_DISABLE_NOTIF],
|
|
635
|
+
reply_to_message_id=params[ATTR_REPLY_TO_MSGID],
|
|
636
|
+
reply_markup=params[ATTR_REPLYMARKUP],
|
|
637
|
+
read_timeout=params[ATTR_TIMEOUT],
|
|
638
|
+
parse_mode=params[ATTR_PARSER],
|
|
639
|
+
message_thread_id=params[ATTR_MESSAGE_THREAD_ID],
|
|
640
|
+
context=context,
|
|
641
|
+
)
|
|
642
|
+
|
|
643
|
+
elif file_type == SERVICE_SEND_STICKER:
|
|
644
|
+
msg = await self._send_msg(
|
|
645
|
+
self.bot.send_sticker,
|
|
646
|
+
"Error sending sticker",
|
|
647
|
+
params[ATTR_MESSAGE_TAG],
|
|
648
|
+
chat_id=chat_id,
|
|
649
|
+
sticker=file_content,
|
|
650
|
+
disable_notification=params[ATTR_DISABLE_NOTIF],
|
|
651
|
+
reply_to_message_id=params[ATTR_REPLY_TO_MSGID],
|
|
652
|
+
reply_markup=params[ATTR_REPLYMARKUP],
|
|
653
|
+
read_timeout=params[ATTR_TIMEOUT],
|
|
654
|
+
message_thread_id=params[ATTR_MESSAGE_THREAD_ID],
|
|
655
|
+
context=context,
|
|
656
|
+
)
|
|
657
|
+
|
|
658
|
+
elif file_type == SERVICE_SEND_VIDEO:
|
|
659
|
+
msg = await self._send_msg(
|
|
660
|
+
self.bot.send_video,
|
|
661
|
+
"Error sending video",
|
|
662
|
+
params[ATTR_MESSAGE_TAG],
|
|
663
|
+
chat_id=chat_id,
|
|
664
|
+
video=file_content,
|
|
665
|
+
caption=kwargs.get(ATTR_CAPTION),
|
|
666
|
+
disable_notification=params[ATTR_DISABLE_NOTIF],
|
|
667
|
+
reply_to_message_id=params[ATTR_REPLY_TO_MSGID],
|
|
668
|
+
reply_markup=params[ATTR_REPLYMARKUP],
|
|
669
|
+
read_timeout=params[ATTR_TIMEOUT],
|
|
670
|
+
parse_mode=params[ATTR_PARSER],
|
|
671
|
+
message_thread_id=params[ATTR_MESSAGE_THREAD_ID],
|
|
672
|
+
context=context,
|
|
673
|
+
)
|
|
674
|
+
elif file_type == SERVICE_SEND_DOCUMENT:
|
|
675
|
+
msg = await self._send_msg(
|
|
676
|
+
self.bot.send_document,
|
|
677
|
+
"Error sending document",
|
|
678
|
+
params[ATTR_MESSAGE_TAG],
|
|
679
|
+
chat_id=chat_id,
|
|
680
|
+
document=file_content,
|
|
681
|
+
caption=kwargs.get(ATTR_CAPTION),
|
|
682
|
+
disable_notification=params[ATTR_DISABLE_NOTIF],
|
|
683
|
+
reply_to_message_id=params[ATTR_REPLY_TO_MSGID],
|
|
684
|
+
reply_markup=params[ATTR_REPLYMARKUP],
|
|
685
|
+
read_timeout=params[ATTR_TIMEOUT],
|
|
686
|
+
parse_mode=params[ATTR_PARSER],
|
|
687
|
+
message_thread_id=params[ATTR_MESSAGE_THREAD_ID],
|
|
688
|
+
context=context,
|
|
689
|
+
)
|
|
690
|
+
elif file_type == SERVICE_SEND_VOICE:
|
|
691
|
+
msg = await self._send_msg(
|
|
692
|
+
self.bot.send_voice,
|
|
693
|
+
"Error sending voice",
|
|
694
|
+
params[ATTR_MESSAGE_TAG],
|
|
695
|
+
chat_id=chat_id,
|
|
696
|
+
voice=file_content,
|
|
697
|
+
caption=kwargs.get(ATTR_CAPTION),
|
|
698
|
+
disable_notification=params[ATTR_DISABLE_NOTIF],
|
|
699
|
+
reply_to_message_id=params[ATTR_REPLY_TO_MSGID],
|
|
700
|
+
reply_markup=params[ATTR_REPLYMARKUP],
|
|
701
|
+
read_timeout=params[ATTR_TIMEOUT],
|
|
702
|
+
message_thread_id=params[ATTR_MESSAGE_THREAD_ID],
|
|
703
|
+
context=context,
|
|
704
|
+
)
|
|
705
|
+
elif file_type == SERVICE_SEND_ANIMATION:
|
|
706
|
+
msg = await self._send_msg(
|
|
707
|
+
self.bot.send_animation,
|
|
708
|
+
"Error sending animation",
|
|
709
|
+
params[ATTR_MESSAGE_TAG],
|
|
710
|
+
chat_id=chat_id,
|
|
711
|
+
animation=file_content,
|
|
712
|
+
caption=kwargs.get(ATTR_CAPTION),
|
|
713
|
+
disable_notification=params[ATTR_DISABLE_NOTIF],
|
|
714
|
+
reply_to_message_id=params[ATTR_REPLY_TO_MSGID],
|
|
715
|
+
reply_markup=params[ATTR_REPLYMARKUP],
|
|
716
|
+
read_timeout=params[ATTR_TIMEOUT],
|
|
717
|
+
parse_mode=params[ATTR_PARSER],
|
|
718
|
+
message_thread_id=params[ATTR_MESSAGE_THREAD_ID],
|
|
719
|
+
context=context,
|
|
720
|
+
)
|
|
721
|
+
|
|
722
|
+
msg_ids[chat_id] = msg.id
|
|
723
|
+
file_content.seek(0)
|
|
724
|
+
else:
|
|
725
|
+
_LOGGER.error("Can't send file with kwargs: %s", kwargs)
|
|
726
|
+
|
|
727
|
+
return msg_ids
|
|
728
|
+
|
|
729
|
+
async def send_sticker(
|
|
730
|
+
self,
|
|
731
|
+
target: Any = None,
|
|
732
|
+
context: Context | None = None,
|
|
733
|
+
**kwargs: Any,
|
|
734
|
+
) -> dict[int, int]:
|
|
735
|
+
"""Send a sticker from a telegram sticker pack."""
|
|
736
|
+
params = self._get_msg_kwargs(kwargs)
|
|
737
|
+
stickerid = kwargs.get(ATTR_STICKER_ID)
|
|
738
|
+
|
|
739
|
+
msg_ids = {}
|
|
740
|
+
if stickerid:
|
|
741
|
+
for chat_id in self._get_target_chat_ids(target):
|
|
742
|
+
msg = await self._send_msg(
|
|
743
|
+
self.bot.send_sticker,
|
|
744
|
+
"Error sending sticker",
|
|
745
|
+
params[ATTR_MESSAGE_TAG],
|
|
746
|
+
chat_id=chat_id,
|
|
747
|
+
sticker=stickerid,
|
|
748
|
+
disable_notification=params[ATTR_DISABLE_NOTIF],
|
|
749
|
+
reply_to_message_id=params[ATTR_REPLY_TO_MSGID],
|
|
750
|
+
reply_markup=params[ATTR_REPLYMARKUP],
|
|
751
|
+
read_timeout=params[ATTR_TIMEOUT],
|
|
752
|
+
message_thread_id=params[ATTR_MESSAGE_THREAD_ID],
|
|
753
|
+
context=context,
|
|
754
|
+
)
|
|
755
|
+
msg_ids[chat_id] = msg.id
|
|
756
|
+
return msg_ids
|
|
757
|
+
return await self.send_file(SERVICE_SEND_STICKER, target, context, **kwargs)
|
|
758
|
+
|
|
759
|
+
async def send_location(
|
|
760
|
+
self,
|
|
761
|
+
latitude: Any,
|
|
762
|
+
longitude: Any,
|
|
763
|
+
target: Any = None,
|
|
764
|
+
context: Context | None = None,
|
|
765
|
+
**kwargs: dict[str, Any],
|
|
766
|
+
) -> dict[int, int]:
|
|
767
|
+
"""Send a location."""
|
|
768
|
+
latitude = float(latitude)
|
|
769
|
+
longitude = float(longitude)
|
|
770
|
+
params = self._get_msg_kwargs(kwargs)
|
|
771
|
+
msg_ids = {}
|
|
772
|
+
for chat_id in self._get_target_chat_ids(target):
|
|
773
|
+
_LOGGER.debug(
|
|
774
|
+
"Send location %s/%s to chat ID %s", latitude, longitude, chat_id
|
|
775
|
+
)
|
|
776
|
+
msg = await self._send_msg(
|
|
777
|
+
self.bot.send_location,
|
|
778
|
+
"Error sending location",
|
|
779
|
+
params[ATTR_MESSAGE_TAG],
|
|
780
|
+
chat_id=chat_id,
|
|
781
|
+
latitude=latitude,
|
|
782
|
+
longitude=longitude,
|
|
783
|
+
disable_notification=params[ATTR_DISABLE_NOTIF],
|
|
784
|
+
reply_to_message_id=params[ATTR_REPLY_TO_MSGID],
|
|
785
|
+
read_timeout=params[ATTR_TIMEOUT],
|
|
786
|
+
message_thread_id=params[ATTR_MESSAGE_THREAD_ID],
|
|
787
|
+
context=context,
|
|
788
|
+
)
|
|
789
|
+
msg_ids[chat_id] = msg.id
|
|
790
|
+
return msg_ids
|
|
791
|
+
|
|
792
|
+
async def send_poll(
|
|
793
|
+
self,
|
|
794
|
+
question: str,
|
|
795
|
+
options: Sequence[str | InputPollOption],
|
|
796
|
+
is_anonymous: bool | None,
|
|
797
|
+
allows_multiple_answers: bool | None,
|
|
798
|
+
target: Any = None,
|
|
799
|
+
context: Context | None = None,
|
|
800
|
+
**kwargs: dict[str, Any],
|
|
801
|
+
) -> dict[int, int]:
|
|
802
|
+
"""Send a poll."""
|
|
803
|
+
params = self._get_msg_kwargs(kwargs)
|
|
804
|
+
openperiod = kwargs.get(ATTR_OPEN_PERIOD)
|
|
805
|
+
msg_ids = {}
|
|
806
|
+
for chat_id in self._get_target_chat_ids(target):
|
|
807
|
+
_LOGGER.debug("Send poll '%s' to chat ID %s", question, chat_id)
|
|
808
|
+
msg = await self._send_msg(
|
|
809
|
+
self.bot.send_poll,
|
|
810
|
+
"Error sending poll",
|
|
811
|
+
params[ATTR_MESSAGE_TAG],
|
|
812
|
+
chat_id=chat_id,
|
|
813
|
+
question=question,
|
|
814
|
+
options=options,
|
|
815
|
+
is_anonymous=is_anonymous,
|
|
816
|
+
allows_multiple_answers=allows_multiple_answers,
|
|
817
|
+
open_period=openperiod,
|
|
818
|
+
disable_notification=params[ATTR_DISABLE_NOTIF],
|
|
819
|
+
reply_to_message_id=params[ATTR_REPLY_TO_MSGID],
|
|
820
|
+
read_timeout=params[ATTR_TIMEOUT],
|
|
821
|
+
message_thread_id=params[ATTR_MESSAGE_THREAD_ID],
|
|
822
|
+
context=context,
|
|
823
|
+
)
|
|
824
|
+
msg_ids[chat_id] = msg.id
|
|
825
|
+
return msg_ids
|
|
826
|
+
|
|
827
|
+
async def leave_chat(
|
|
828
|
+
self,
|
|
829
|
+
chat_id: Any = None,
|
|
830
|
+
context: Context | None = None,
|
|
831
|
+
**kwargs: dict[str, Any],
|
|
832
|
+
) -> Any:
|
|
833
|
+
"""Remove bot from chat."""
|
|
834
|
+
chat_id = self._get_target_chat_ids(chat_id)[0]
|
|
835
|
+
_LOGGER.debug("Leave from chat ID %s", chat_id)
|
|
836
|
+
return await self._send_msg(
|
|
837
|
+
self.bot.leave_chat, "Error leaving chat", None, chat_id, context=context
|
|
838
|
+
)
|
|
839
|
+
|
|
840
|
+
async def set_message_reaction(
|
|
841
|
+
self,
|
|
842
|
+
chat_id: int,
|
|
843
|
+
reaction: str,
|
|
844
|
+
is_big: bool = False,
|
|
845
|
+
context: Context | None = None,
|
|
846
|
+
**kwargs: dict[str, Any],
|
|
847
|
+
) -> None:
|
|
848
|
+
"""Set the bot's reaction for a given message."""
|
|
849
|
+
chat_id = self._get_target_chat_ids(chat_id)[0]
|
|
850
|
+
message_id, _ = self._get_msg_ids(kwargs, chat_id)
|
|
851
|
+
params = self._get_msg_kwargs(kwargs)
|
|
852
|
+
|
|
853
|
+
_LOGGER.debug(
|
|
854
|
+
"Set reaction to message %s in chat ID %s to %s with params: %s",
|
|
855
|
+
message_id,
|
|
856
|
+
chat_id,
|
|
857
|
+
reaction,
|
|
858
|
+
params,
|
|
859
|
+
)
|
|
860
|
+
|
|
861
|
+
await self._send_msg(
|
|
862
|
+
self.bot.set_message_reaction,
|
|
863
|
+
"Error setting message reaction",
|
|
864
|
+
params[ATTR_MESSAGE_TAG],
|
|
865
|
+
chat_id,
|
|
866
|
+
message_id,
|
|
867
|
+
reaction=reaction,
|
|
868
|
+
is_big=is_big,
|
|
869
|
+
read_timeout=params[ATTR_TIMEOUT],
|
|
870
|
+
context=context,
|
|
871
|
+
)
|
|
872
|
+
|
|
873
|
+
|
|
874
|
+
def initialize_bot(hass: HomeAssistant, p_config: MappingProxyType[str, Any]) -> Bot:
|
|
875
|
+
"""Initialize telegram bot with proxy support."""
|
|
876
|
+
api_key: str = p_config[CONF_API_KEY]
|
|
877
|
+
proxy_url: str | None = p_config.get(CONF_PROXY_URL)
|
|
878
|
+
|
|
879
|
+
if proxy_url is not None:
|
|
880
|
+
proxy = httpx.Proxy(proxy_url)
|
|
881
|
+
request = HTTPXRequest(connection_pool_size=8, proxy=proxy)
|
|
882
|
+
else:
|
|
883
|
+
request = HTTPXRequest(connection_pool_size=8)
|
|
884
|
+
return Bot(token=api_key, request=request)
|
|
885
|
+
|
|
886
|
+
|
|
887
|
+
async def load_data(
|
|
888
|
+
hass: HomeAssistant,
|
|
889
|
+
url: str | None,
|
|
890
|
+
filepath: str | None,
|
|
891
|
+
username: str,
|
|
892
|
+
password: str,
|
|
893
|
+
authentication: str | None,
|
|
894
|
+
verify_ssl: SSLContext,
|
|
895
|
+
num_retries: int = 5,
|
|
896
|
+
) -> io.BytesIO:
|
|
897
|
+
"""Load data into ByteIO/File container from a source."""
|
|
898
|
+
if url is not None:
|
|
899
|
+
# Load data from URL
|
|
900
|
+
params: dict[str, Any] = {}
|
|
901
|
+
headers: dict[str, str] = {}
|
|
902
|
+
_validate_credentials_input(authentication, username, password)
|
|
903
|
+
if authentication == HTTP_BEARER_AUTHENTICATION:
|
|
904
|
+
headers = {"Authorization": f"Bearer {password}"}
|
|
905
|
+
elif authentication == HTTP_DIGEST_AUTHENTICATION:
|
|
906
|
+
params["auth"] = httpx.DigestAuth(username, password)
|
|
907
|
+
elif authentication == HTTP_BASIC_AUTHENTICATION:
|
|
908
|
+
params["auth"] = httpx.BasicAuth(username, password)
|
|
909
|
+
|
|
910
|
+
if verify_ssl is not None:
|
|
911
|
+
params["verify"] = verify_ssl
|
|
912
|
+
|
|
913
|
+
retry_num = 0
|
|
914
|
+
async with httpx.AsyncClient(timeout=15, headers=headers, **params) as client:
|
|
915
|
+
while retry_num < num_retries:
|
|
916
|
+
try:
|
|
917
|
+
req = await client.get(url)
|
|
918
|
+
except (httpx.HTTPError, httpx.InvalidURL) as err:
|
|
919
|
+
raise HomeAssistantError(
|
|
920
|
+
f"Failed to load URL: {err!s}",
|
|
921
|
+
translation_domain=DOMAIN,
|
|
922
|
+
translation_key="failed_to_load_url",
|
|
923
|
+
translation_placeholders={"error": str(err)},
|
|
924
|
+
) from err
|
|
925
|
+
|
|
926
|
+
if req.status_code != 200:
|
|
927
|
+
_LOGGER.warning(
|
|
928
|
+
"Status code %s (retry #%s) loading %s",
|
|
929
|
+
req.status_code,
|
|
930
|
+
retry_num + 1,
|
|
931
|
+
url,
|
|
932
|
+
)
|
|
933
|
+
else:
|
|
934
|
+
data = io.BytesIO(req.content)
|
|
935
|
+
if data.read():
|
|
936
|
+
data.seek(0)
|
|
937
|
+
data.name = url
|
|
938
|
+
return data
|
|
939
|
+
_LOGGER.warning("Empty data (retry #%s) in %s)", retry_num + 1, url)
|
|
940
|
+
retry_num += 1
|
|
941
|
+
if retry_num < num_retries:
|
|
942
|
+
await asyncio.sleep(
|
|
943
|
+
1
|
|
944
|
+
) # Add a sleep to allow other async operations to proceed
|
|
945
|
+
raise HomeAssistantError(
|
|
946
|
+
f"Failed to load URL: {req.status_code}",
|
|
947
|
+
translation_domain=DOMAIN,
|
|
948
|
+
translation_key="failed_to_load_url",
|
|
949
|
+
translation_placeholders={"error": str(req.status_code)},
|
|
950
|
+
)
|
|
951
|
+
elif filepath is not None:
|
|
952
|
+
if hass.config.is_allowed_path(filepath):
|
|
953
|
+
return await hass.async_add_executor_job(_read_file_as_bytesio, filepath)
|
|
954
|
+
|
|
955
|
+
raise ServiceValidationError(
|
|
956
|
+
"File path has not been configured in allowlist_external_dirs.",
|
|
957
|
+
translation_domain=DOMAIN,
|
|
958
|
+
translation_key="allowlist_external_dirs_error",
|
|
959
|
+
)
|
|
960
|
+
else:
|
|
961
|
+
raise ServiceValidationError(
|
|
962
|
+
"URL or File is required.",
|
|
963
|
+
translation_domain=DOMAIN,
|
|
964
|
+
translation_key="missing_input",
|
|
965
|
+
translation_placeholders={"field": "URL or File"},
|
|
966
|
+
)
|
|
967
|
+
|
|
968
|
+
|
|
969
|
+
def _validate_credentials_input(
|
|
970
|
+
authentication: str | None, username: str | None, password: str | None
|
|
971
|
+
) -> None:
|
|
972
|
+
if (
|
|
973
|
+
authentication in (HTTP_BASIC_AUTHENTICATION, HTTP_DIGEST_AUTHENTICATION)
|
|
974
|
+
and not username
|
|
975
|
+
):
|
|
976
|
+
raise ServiceValidationError(
|
|
977
|
+
"Username is required.",
|
|
978
|
+
translation_domain=DOMAIN,
|
|
979
|
+
translation_key="missing_input",
|
|
980
|
+
translation_placeholders={"field": "Username"},
|
|
981
|
+
)
|
|
982
|
+
|
|
983
|
+
if (
|
|
984
|
+
authentication
|
|
985
|
+
in (
|
|
986
|
+
HTTP_BASIC_AUTHENTICATION,
|
|
987
|
+
HTTP_BEARER_AUTHENTICATION,
|
|
988
|
+
HTTP_BEARER_AUTHENTICATION,
|
|
989
|
+
)
|
|
990
|
+
and not password
|
|
991
|
+
):
|
|
992
|
+
raise ServiceValidationError(
|
|
993
|
+
"Password is required.",
|
|
994
|
+
translation_domain=DOMAIN,
|
|
995
|
+
translation_key="missing_input",
|
|
996
|
+
translation_placeholders={"field": "Password"},
|
|
997
|
+
)
|
|
998
|
+
|
|
999
|
+
|
|
1000
|
+
def _read_file_as_bytesio(file_path: str) -> io.BytesIO:
|
|
1001
|
+
"""Read a file and return it as a BytesIO object."""
|
|
1002
|
+
try:
|
|
1003
|
+
with open(file_path, "rb") as file:
|
|
1004
|
+
data = io.BytesIO(file.read())
|
|
1005
|
+
data.name = file_path
|
|
1006
|
+
return data
|
|
1007
|
+
except OSError as err:
|
|
1008
|
+
raise HomeAssistantError(
|
|
1009
|
+
f"Failed to load file: {err!s}",
|
|
1010
|
+
translation_domain=DOMAIN,
|
|
1011
|
+
translation_key="failed_to_load_file",
|
|
1012
|
+
translation_placeholders={"error": str(err)},
|
|
1013
|
+
) from err
|