homeassistant 2025.6.3__py3-none-any.whl → 2025.7.0b5__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 +4 -1
- 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 +22 -0
- homeassistant/components/ai_task/translations/ga.json +1 -0
- homeassistant/components/ai_task/translations/hu.json +22 -0
- homeassistant/components/ai_task/translations/it.json +22 -0
- homeassistant/components/ai_task/translations/ja.json +20 -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/coordinator.py +2 -2
- 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 +6 -2
- 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/notify.py +2 -0
- homeassistant/components/alexa_devices/quality_scale.yaml +1 -1
- homeassistant/components/alexa_devices/sensor.py +88 -0
- homeassistant/components/alexa_devices/strings.json +26 -4
- homeassistant/components/alexa_devices/switch.py +2 -0
- homeassistant/components/alexa_devices/translations/bg.json +6 -4
- homeassistant/components/alexa_devices/translations/cs.json +27 -5
- homeassistant/components/alexa_devices/translations/de.json +29 -7
- homeassistant/components/alexa_devices/translations/el.json +27 -5
- homeassistant/components/alexa_devices/translations/en.json +27 -5
- homeassistant/components/alexa_devices/translations/es.json +27 -5
- homeassistant/components/alexa_devices/translations/et.json +27 -5
- homeassistant/components/alexa_devices/translations/ga.json +0 -6
- homeassistant/components/alexa_devices/translations/he.json +0 -4
- homeassistant/components/alexa_devices/translations/hu.json +27 -5
- homeassistant/components/alexa_devices/translations/id.json +1 -0
- homeassistant/components/alexa_devices/translations/it.json +29 -0
- homeassistant/components/alexa_devices/translations/ja.json +29 -0
- homeassistant/components/alexa_devices/translations/lt.json +0 -4
- homeassistant/components/alexa_devices/translations/mk.json +12 -0
- homeassistant/components/alexa_devices/translations/nl.json +0 -4
- homeassistant/components/alexa_devices/translations/pl.json +0 -4
- homeassistant/components/alexa_devices/translations/pt.json +27 -5
- homeassistant/components/alexa_devices/translations/ru.json +4 -5
- homeassistant/components/alexa_devices/translations/sk.json +27 -5
- homeassistant/components/alexa_devices/translations/sv.json +25 -5
- homeassistant/components/alexa_devices/translations/tr.json +0 -4
- homeassistant/components/alexa_devices/translations/zh-Hans.json +27 -5
- homeassistant/components/alexa_devices/translations/zh-Hant.json +27 -5
- homeassistant/components/alexa_devices/utils.py +40 -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/hu.json +51 -0
- homeassistant/components/altruist/translations/id.json +11 -0
- homeassistant/components/altruist/translations/ja.json +50 -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 +98 -4
- 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 +17 -8
- 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 +33 -18
- homeassistant/components/anthropic/translations/ga.json +26 -11
- homeassistant/components/anthropic/translations/gl.json +0 -17
- homeassistant/components/anthropic/translations/he.json +0 -13
- homeassistant/components/anthropic/translations/hu.json +33 -18
- homeassistant/components/anthropic/translations/id.json +15 -6
- homeassistant/components/anthropic/translations/it.json +33 -8
- 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 +16 -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 +26 -18
- 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 +117 -5
- 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 +61 -3
- 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 +38 -0
- homeassistant/components/assist_satellite/translations/ga.json +30 -0
- homeassistant/components/assist_satellite/translations/hu.json +38 -0
- homeassistant/components/assist_satellite/translations/it.json +8 -0
- homeassistant/components/assist_satellite/translations/ja.json +8 -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/asuswrt/translations/nl.json +6 -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/backup/translations/de.json +1 -1
- homeassistant/components/blink/__init__.py +2 -2
- homeassistant/components/blink/services.py +27 -25
- homeassistant/components/blue_current/translations/el.json +3 -1
- homeassistant/components/bluetooth/translations/el.json +3 -0
- 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/buienradar/sensor.py +0 -1
- homeassistant/components/cambridge_audio/translations/sv.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/hu.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/comelit/translations/de.json +1 -1
- 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/counter/translations/sv.json +2 -2
- homeassistant/components/cover/__init__.py +0 -4
- homeassistant/components/deconz/climate.py +0 -2
- homeassistant/components/deconz/logbook.py +3 -3
- homeassistant/components/demo/translations/select.sv.json +2 -2
- homeassistant/components/denonavr/translations/el.json +5 -0
- 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/fr.json +4 -0
- homeassistant/components/derivative/translations/ga.json +20 -0
- homeassistant/components/derivative/translations/hu.json +4 -0
- homeassistant/components/derivative/translations/it.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 +4 -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/bg.json +6 -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/hu.json +21 -0
- homeassistant/components/devolo_home_control/translations/id.json +5 -0
- homeassistant/components/devolo_home_control/translations/it.json +6 -0
- homeassistant/components/devolo_home_control/translations/lt.json +11 -0
- homeassistant/components/devolo_home_control/translations/nl.json +10 -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/sv.json +10 -0
- homeassistant/components/devolo_home_control/translations/tr.json +11 -0
- homeassistant/components/devolo_home_control/translations/zh-Hans.json +21 -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/dlink/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/dsmr/sensor.py +8 -0
- 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/ecovacs/translations/el.json +1 -0
- homeassistant/components/ecovacs/translations/sv.json +1 -1
- 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/hu.json +6 -0
- homeassistant/components/electric_kiwi/translations/id.json +6 -0
- homeassistant/components/electric_kiwi/translations/ja.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/emoncms/translations/el.json +3 -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/hu.json +30 -0
- homeassistant/components/enphase_envoy/translations/it.json +27 -0
- homeassistant/components/enphase_envoy/translations/ja.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 +23 -2
- 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/bg.json +6 -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/hu.json +10 -0
- homeassistant/components/ezviz/translations/it.json +10 -0
- homeassistant/components/ezviz/translations/ja.json +10 -0
- homeassistant/components/ezviz/translations/mk.json +13 -0
- homeassistant/components/ezviz/translations/pt.json +10 -0
- homeassistant/components/ezviz/translations/sk.json +10 -0
- homeassistant/components/ezviz/translations/sv.json +10 -0
- homeassistant/components/ezviz/translations/zh-Hans.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/hu.json +6 -0
- homeassistant/components/fitbit/translations/id.json +6 -0
- homeassistant/components/fitbit/translations/ja.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/fritz/translations/nl.json +3 -0
- homeassistant/components/fritzbox/translations/mk.json +9 -0
- homeassistant/components/fronius/translations/el.json +14 -1
- homeassistant/components/fronius/translations/sv.json +3 -3
- 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/hu.json +6 -0
- homeassistant/components/geocaching/translations/id.json +6 -0
- homeassistant/components/geocaching/translations/ja.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/goodwe/translations/sv.json +5 -5
- 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/hu.json +6 -0
- homeassistant/components/google/translations/id.json +6 -0
- homeassistant/components/google/translations/ja.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/hu.json +6 -0
- homeassistant/components/google_assistant_sdk/translations/id.json +6 -0
- homeassistant/components/google_assistant_sdk/translations/ja.json +11 -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/hu.json +6 -0
- homeassistant/components/google_drive/translations/id.json +6 -0
- homeassistant/components/google_drive/translations/ja.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 +108 -5
- homeassistant/components/google_generative_ai_conversation/config_flow.py +152 -62
- homeassistant/components/google_generative_ai_conversation/const.py +18 -1
- homeassistant/components/google_generative_ai_conversation/conversation.py +22 -471
- homeassistant/components/google_generative_ai_conversation/diagnostics.py +1 -0
- homeassistant/components/google_generative_ai_conversation/entity.py +482 -0
- homeassistant/components/google_generative_ai_conversation/helpers.py +73 -0
- homeassistant/components/google_generative_ai_conversation/strings.json +65 -24
- homeassistant/components/google_generative_ai_conversation/translations/bg.json +34 -9
- homeassistant/components/google_generative_ai_conversation/translations/ca.json +0 -14
- homeassistant/components/google_generative_ai_conversation/translations/cs.json +69 -28
- homeassistant/components/google_generative_ai_conversation/translations/de.json +69 -28
- homeassistant/components/google_generative_ai_conversation/translations/el.json +69 -28
- homeassistant/components/google_generative_ai_conversation/translations/en-GB.json +0 -28
- homeassistant/components/google_generative_ai_conversation/translations/en.json +69 -28
- homeassistant/components/google_generative_ai_conversation/translations/es.json +69 -28
- homeassistant/components/google_generative_ai_conversation/translations/et.json +69 -28
- homeassistant/components/google_generative_ai_conversation/translations/fi.json +0 -13
- homeassistant/components/google_generative_ai_conversation/translations/fr.json +82 -26
- homeassistant/components/google_generative_ai_conversation/translations/fy.json +0 -11
- homeassistant/components/google_generative_ai_conversation/translations/ga.json +9 -9
- homeassistant/components/google_generative_ai_conversation/translations/he.json +0 -24
- homeassistant/components/google_generative_ai_conversation/translations/hu.json +69 -28
- homeassistant/components/google_generative_ai_conversation/translations/id.json +26 -19
- homeassistant/components/google_generative_ai_conversation/translations/it.json +65 -14
- homeassistant/components/google_generative_ai_conversation/translations/ja.json +65 -19
- 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/mk.json +11 -0
- homeassistant/components/google_generative_ai_conversation/translations/nb.json +0 -9
- homeassistant/components/google_generative_ai_conversation/translations/nl.json +33 -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 +69 -28
- homeassistant/components/google_generative_ai_conversation/translations/ro.json +0 -11
- homeassistant/components/google_generative_ai_conversation/translations/ru.json +67 -28
- homeassistant/components/google_generative_ai_conversation/translations/sk.json +69 -28
- homeassistant/components/google_generative_ai_conversation/translations/sl.json +0 -23
- homeassistant/components/google_generative_ai_conversation/translations/sv.json +44 -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 +69 -28
- homeassistant/components/google_generative_ai_conversation/translations/zh-Hant.json +69 -28
- homeassistant/components/google_generative_ai_conversation/tts.py +157 -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/hu.json +6 -0
- homeassistant/components/google_mail/translations/id.json +6 -0
- homeassistant/components/google_mail/translations/ja.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/hu.json +6 -0
- homeassistant/components/google_photos/translations/id.json +6 -0
- homeassistant/components/google_photos/translations/ja.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/hu.json +6 -0
- homeassistant/components/google_sheets/translations/id.json +6 -0
- homeassistant/components/google_sheets/translations/ja.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/hu.json +6 -0
- homeassistant/components/google_tasks/translations/id.json +6 -0
- homeassistant/components/google_tasks/translations/ja.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/group/translations/el.json +18 -18
- homeassistant/components/group/translations/pl.json +52 -2
- homeassistant/components/habitica/const.py +1 -1
- homeassistant/components/habitica/services.py +521 -514
- homeassistant/components/habitica/translations/mk.json +39 -0
- homeassistant/components/harmony/translations/select.sv.json +1 -1
- homeassistant/components/harmony/translations/sv.json +1 -1
- 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/hu.json +6 -0
- homeassistant/components/home_connect/translations/id.json +6 -0
- homeassistant/components/home_connect/translations/ja.json +9 -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/fr.json +1 -0
- homeassistant/components/homeassistant/translations/hu.json +1 -0
- homeassistant/components/homeassistant/translations/it.json +1 -0
- homeassistant/components/homeassistant/translations/ja.json +1 -0
- homeassistant/components/homeassistant/translations/lt.json +10 -9
- homeassistant/components/homeassistant/translations/nl.json +1 -1
- 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 +279 -231
- homeassistant/components/homeassistant_hardware/manifest.json +1 -1
- homeassistant/components/homeassistant_hardware/silabs_multiprotocol_addon.py +6 -15
- homeassistant/components/homeassistant_hardware/strings.json +4 -30
- 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 +3 -29
- homeassistant/components/homeassistant_hardware/translations/el.json +2 -29
- homeassistant/components/homeassistant_hardware/translations/en-GB.json +1 -31
- homeassistant/components/homeassistant_hardware/translations/en.json +3 -29
- homeassistant/components/homeassistant_hardware/translations/es.json +2 -29
- homeassistant/components/homeassistant_hardware/translations/et.json +2 -29
- homeassistant/components/homeassistant_hardware/translations/fi.json +0 -10
- homeassistant/components/homeassistant_hardware/translations/fr.json +2 -29
- homeassistant/components/homeassistant_hardware/translations/fy.json +0 -3
- homeassistant/components/homeassistant_hardware/translations/ga.json +9 -0
- homeassistant/components/homeassistant_hardware/translations/he.json +0 -31
- homeassistant/components/homeassistant_hardware/translations/hu.json +2 -29
- homeassistant/components/homeassistant_hardware/translations/id.json +0 -31
- homeassistant/components/homeassistant_hardware/translations/it.json +6 -13
- homeassistant/components/homeassistant_hardware/translations/ja.json +2 -27
- 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/mk.json +9 -0
- 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 +2 -29
- homeassistant/components/homeassistant_hardware/translations/ru.json +2 -29
- homeassistant/components/homeassistant_hardware/translations/sk.json +2 -29
- homeassistant/components/homeassistant_hardware/translations/sv.json +2 -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 +2 -29
- homeassistant/components/homeassistant_hardware/translations/zh-Hant.json +2 -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 +8 -46
- 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 +8 -46
- homeassistant/components/homeassistant_sky_connect/translations/el.json +6 -46
- homeassistant/components/homeassistant_sky_connect/translations/en-GB.json +4 -46
- homeassistant/components/homeassistant_sky_connect/translations/en.json +8 -46
- homeassistant/components/homeassistant_sky_connect/translations/es.json +6 -46
- homeassistant/components/homeassistant_sky_connect/translations/et.json +6 -46
- homeassistant/components/homeassistant_sky_connect/translations/fi.json +0 -10
- homeassistant/components/homeassistant_sky_connect/translations/fr.json +6 -46
- homeassistant/components/homeassistant_sky_connect/translations/fy.json +0 -3
- homeassistant/components/homeassistant_sky_connect/translations/ga.json +10 -0
- homeassistant/components/homeassistant_sky_connect/translations/he.json +2 -46
- homeassistant/components/homeassistant_sky_connect/translations/hu.json +6 -46
- homeassistant/components/homeassistant_sky_connect/translations/id.json +2 -46
- homeassistant/components/homeassistant_sky_connect/translations/it.json +4 -16
- homeassistant/components/homeassistant_sky_connect/translations/ja.json +6 -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/mk.json +7 -0
- 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 +6 -46
- homeassistant/components/homeassistant_sky_connect/translations/ru.json +6 -46
- homeassistant/components/homeassistant_sky_connect/translations/sk.json +6 -46
- homeassistant/components/homeassistant_sky_connect/translations/sv.json +6 -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 +6 -46
- homeassistant/components/homeassistant_sky_connect/translations/zh-Hant.json +6 -46
- homeassistant/components/homeassistant_yellow/config_flow.py +58 -3
- homeassistant/components/homeassistant_yellow/strings.json +4 -26
- homeassistant/components/homeassistant_yellow/translations/bg.json +0 -19
- homeassistant/components/homeassistant_yellow/translations/ca.json +1 -25
- homeassistant/components/homeassistant_yellow/translations/cs.json +2 -27
- homeassistant/components/homeassistant_yellow/translations/da.json +0 -10
- homeassistant/components/homeassistant_yellow/translations/de.json +4 -26
- homeassistant/components/homeassistant_yellow/translations/el.json +3 -26
- homeassistant/components/homeassistant_yellow/translations/en-GB.json +3 -27
- homeassistant/components/homeassistant_yellow/translations/en.json +5 -27
- homeassistant/components/homeassistant_yellow/translations/es.json +3 -26
- homeassistant/components/homeassistant_yellow/translations/et.json +3 -26
- homeassistant/components/homeassistant_yellow/translations/fi.json +0 -10
- homeassistant/components/homeassistant_yellow/translations/fr.json +3 -27
- homeassistant/components/homeassistant_yellow/translations/ga.json +5 -0
- homeassistant/components/homeassistant_yellow/translations/he.json +1 -27
- homeassistant/components/homeassistant_yellow/translations/hu.json +4 -27
- homeassistant/components/homeassistant_yellow/translations/id.json +1 -27
- homeassistant/components/homeassistant_yellow/translations/it.json +2 -14
- homeassistant/components/homeassistant_yellow/translations/ja.json +3 -27
- homeassistant/components/homeassistant_yellow/translations/ko.json +0 -22
- homeassistant/components/homeassistant_yellow/translations/lt.json +19 -44
- 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 +3 -26
- homeassistant/components/homeassistant_yellow/translations/ru.json +3 -26
- homeassistant/components/homeassistant_yellow/translations/sk.json +3 -26
- homeassistant/components/homeassistant_yellow/translations/sv.json +3 -27
- homeassistant/components/homeassistant_yellow/translations/tr.json +1 -27
- homeassistant/components/homeassistant_yellow/translations/uk.json +0 -3
- homeassistant/components/homeassistant_yellow/translations/zh-Hans.json +3 -26
- homeassistant/components/homeassistant_yellow/translations/zh-Hant.json +3 -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 +72 -1
- homeassistant/components/homee/translations/id.json +7 -1
- homeassistant/components/homee/translations/it.json +13 -1
- homeassistant/components/homee/translations/ja.json +31 -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/hu.json +19 -2
- 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 +10 -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/honeywell/__init__.py +8 -16
- homeassistant/components/honeywell/config_flow.py +6 -2
- homeassistant/components/honeywell/manifest.json +1 -1
- homeassistant/components/http/__init__.py +6 -5
- homeassistant/components/http/auth.py +1 -1
- 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/button.py +3 -1
- 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/hu.json +6 -0
- homeassistant/components/husqvarna_automower/translations/id.json +6 -0
- homeassistant/components/husqvarna_automower/translations/ja.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/image/__init__.py +34 -3
- homeassistant/components/imap/translations/fr.json +2 -0
- 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/hu.json +5 -0
- homeassistant/components/immich/translations/ja.json +9 -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/input_number/translations/sv.json +2 -2
- homeassistant/components/input_select/translations/sv.json +6 -6
- homeassistant/components/input_text/translations/sv.json +1 -1
- 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/hu.json +6 -0
- homeassistant/components/iotty/translations/id.json +6 -0
- homeassistant/components/iotty/translations/ja.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/iron_os/manifest.json +1 -1
- homeassistant/components/iron_os/translations/sv.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/ista_ecotrend/util.py +14 -14
- homeassistant/components/isy994/__init__.py +10 -7
- homeassistant/components/isy994/services.py +0 -19
- homeassistant/components/jellyfin/client_wrapper.py +1 -2
- homeassistant/components/jellyfin/coordinator.py +3 -0
- homeassistant/components/jellyfin/manifest.json +1 -2
- 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 +4 -37
- homeassistant/components/juicenet/translations/id.json +1 -21
- homeassistant/components/juicenet/translations/it.json +4 -37
- homeassistant/components/juicenet/translations/ja.json +4 -37
- 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/hu.json +4 -0
- homeassistant/components/keenetic_ndms2/translations/id.json +3 -0
- homeassistant/components/keenetic_ndms2/translations/it.json +4 -0
- homeassistant/components/keenetic_ndms2/translations/ja.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/ja.json +11 -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/lamarzocco/entity.py +19 -1
- homeassistant/components/lamarzocco/number.py +0 -4
- homeassistant/components/lamarzocco/sensor.py +2 -4
- homeassistant/components/lamarzocco/translations/sv.json +3 -3
- 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/hu.json +6 -0
- homeassistant/components/lametric/translations/id.json +6 -0
- homeassistant/components/lametric/translations/ja.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 +8 -2
- 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/translations/sv.json +5 -5
- 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/translations/el.json +2 -1
- 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/bg.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/ga.json +3 -0
- homeassistant/components/litterrobot/translations/hu.json +4 -0
- homeassistant/components/litterrobot/translations/it.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/hu.json +6 -0
- homeassistant/components/lyric/translations/id.json +6 -0
- homeassistant/components/lyric/translations/ja.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/hu.json +32 -0
- homeassistant/components/matter/translations/id.json +5 -0
- homeassistant/components/matter/translations/ja.json +29 -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 +47 -36
- homeassistant/components/maxcube/climate.py +0 -2
- homeassistant/components/mcp/strings.json +2 -2
- homeassistant/components/mcp/translations/hu.json +6 -0
- 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 +11 -72
- homeassistant/components/meater/const.py +4 -0
- homeassistant/components/meater/coordinator.py +79 -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/hu.json +12 -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/media_source/local_source.py +21 -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/hu.json +6 -0
- homeassistant/components/microbees/translations/id.json +6 -0
- homeassistant/components/microbees/translations/ja.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 +27 -24
- homeassistant/components/miele/translations/id.json +6 -0
- homeassistant/components/miele/translations/it.json +21 -24
- homeassistant/components/miele/translations/ja.json +29 -0
- 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/minecraft_server/translations/sv.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/hu.json +6 -0
- homeassistant/components/monzo/translations/id.json +6 -0
- homeassistant/components/monzo/translations/ja.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/motioneye/translations/sv.json +1 -1
- 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 +76 -13
- 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 +37 -9
- homeassistant/components/mqtt/translations/bg.json +11 -3
- homeassistant/components/mqtt/translations/cs.json +27 -10
- homeassistant/components/mqtt/translations/de.json +48 -20
- homeassistant/components/mqtt/translations/el.json +43 -4
- homeassistant/components/mqtt/translations/en-GB.json +3 -11
- homeassistant/components/mqtt/translations/en.json +39 -11
- homeassistant/components/mqtt/translations/es.json +38 -10
- homeassistant/components/mqtt/translations/et.json +38 -10
- homeassistant/components/mqtt/translations/fi.json +3 -0
- homeassistant/components/mqtt/translations/fr.json +38 -11
- homeassistant/components/mqtt/translations/fy.json +2 -6
- homeassistant/components/mqtt/translations/ga.json +27 -13
- homeassistant/components/mqtt/translations/he.json +2 -11
- homeassistant/components/mqtt/translations/hu.json +39 -11
- homeassistant/components/mqtt/translations/id.json +0 -4
- homeassistant/components/mqtt/translations/it.json +40 -4
- homeassistant/components/mqtt/translations/ja.json +39 -8
- homeassistant/components/mqtt/translations/lt.json +2 -11
- homeassistant/components/mqtt/translations/mk.json +24 -6
- homeassistant/components/mqtt/translations/nl.json +39 -12
- homeassistant/components/mqtt/translations/pt.json +28 -11
- homeassistant/components/mqtt/translations/ru.json +31 -10
- homeassistant/components/mqtt/translations/sk.json +38 -10
- homeassistant/components/mqtt/translations/sl.json +2 -9
- homeassistant/components/mqtt/translations/sv.json +40 -12
- homeassistant/components/mqtt/translations/tr.json +2 -10
- homeassistant/components/mqtt/translations/zh-Hans.json +39 -11
- homeassistant/components/mqtt/translations/zh-Hant.json +38 -10
- 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 +47 -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/hu.json +7 -0
- homeassistant/components/music_assistant/translations/ja.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/hu.json +6 -0
- homeassistant/components/myuplink/translations/id.json +6 -0
- homeassistant/components/myuplink/translations/ja.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/nam/translations/pl.json +9 -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/hu.json +6 -0
- homeassistant/components/neato/translations/id.json +6 -0
- homeassistant/components/neato/translations/ja.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/hu.json +6 -0
- homeassistant/components/nest/translations/id.json +6 -0
- homeassistant/components/nest/translations/ja.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/hu.json +6 -0
- homeassistant/components/netatmo/translations/id.json +6 -0
- homeassistant/components/netatmo/translations/ja.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/nextcloud/translations/nl.json +3 -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 +16 -1
- homeassistant/components/nextdns/translations/ga.json +22 -0
- homeassistant/components/nextdns/translations/he.json +0 -5
- homeassistant/components/nextdns/translations/hu.json +10 -1
- homeassistant/components/nextdns/translations/id.json +0 -5
- homeassistant/components/nextdns/translations/it.json +0 -5
- homeassistant/components/nextdns/translations/ja.json +6 -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/hu.json +112 -2
- homeassistant/components/ntfy/translations/id.json +13 -0
- homeassistant/components/ntfy/translations/it.json +82 -0
- homeassistant/components/ntfy/translations/ja.json +71 -0
- homeassistant/components/ntfy/translations/lt.json +112 -2
- homeassistant/components/ntfy/translations/nl.json +45 -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 +101 -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/number/translations/sv.json +2 -2
- homeassistant/components/nut/config_flow.py +4 -2
- homeassistant/components/nut/translations/el.json +42 -0
- 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/ja.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/ohme/translations/sv.json +1 -1
- homeassistant/components/ollama/__init__.py +92 -6
- homeassistant/components/ollama/config_flow.py +136 -68
- homeassistant/components/ollama/const.py +4 -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 +15 -5
- 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 +29 -14
- homeassistant/components/ollama/translations/ga.json +31 -1
- homeassistant/components/ollama/translations/he.json +0 -9
- homeassistant/components/ollama/translations/hu.json +29 -14
- homeassistant/components/ollama/translations/id.json +14 -5
- homeassistant/components/ollama/translations/it.json +31 -6
- homeassistant/components/ollama/translations/ja.json +29 -14
- homeassistant/components/ollama/translations/lt.json +29 -14
- homeassistant/components/ollama/translations/mk.json +13 -1
- 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 +16 -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/hu.json +6 -0
- homeassistant/components/ondilo_ico/translations/id.json +6 -0
- homeassistant/components/ondilo_ico/translations/ja.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/hu.json +6 -0
- homeassistant/components/onedrive/translations/id.json +6 -0
- homeassistant/components/onedrive/translations/ja.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/onewire/translations/sv.json +4 -4
- 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 +100 -7
- homeassistant/components/openai_conversation/config_flow.py +264 -154
- homeassistant/components/openai_conversation/const.py +3 -1
- 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 +22 -10
- 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 +56 -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 +56 -30
- homeassistant/components/openai_conversation/translations/id.json +23 -18
- homeassistant/components/openai_conversation/translations/it.json +56 -17
- homeassistant/components/openai_conversation/translations/ja.json +45 -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/mk.json +44 -0
- homeassistant/components/openai_conversation/translations/nb.json +0 -11
- homeassistant/components/openai_conversation/translations/nl.json +18 -17
- 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 +42 -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/climate.py +12 -1
- homeassistant/components/opentherm_gw/services.py +297 -0
- homeassistant/components/opentherm_gw/strings.json +8 -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 +8 -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 +8 -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/ja.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 +14 -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/manifest.json +1 -1
- 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 +13 -4
- homeassistant/components/paperless_ngx/translations/id.json +4 -2
- homeassistant/components/paperless_ngx/translations/ja.json +29 -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/peblar/translations/el.json +12 -0
- homeassistant/components/pegel_online/translations/bg.json +1 -2
- homeassistant/components/pegel_online/translations/ca.json +1 -2
- homeassistant/components/pegel_online/translations/cs.json +1 -2
- homeassistant/components/pegel_online/translations/de.json +1 -1
- homeassistant/components/pegel_online/translations/el.json +1 -1
- homeassistant/components/pegel_online/translations/en-GB.json +1 -1
- homeassistant/components/pegel_online/translations/en.json +1 -1
- homeassistant/components/pegel_online/translations/es.json +1 -1
- homeassistant/components/pegel_online/translations/et.json +1 -1
- homeassistant/components/pegel_online/translations/fi.json +1 -2
- homeassistant/components/pegel_online/translations/fr.json +1 -2
- homeassistant/components/pegel_online/translations/hu.json +1 -1
- homeassistant/components/pegel_online/translations/id.json +1 -2
- homeassistant/components/pegel_online/translations/it.json +1 -2
- homeassistant/components/pegel_online/translations/ja.json +1 -2
- homeassistant/components/pegel_online/translations/ko.json +1 -2
- homeassistant/components/pegel_online/translations/lt.json +1 -2
- homeassistant/components/pegel_online/translations/lv.json +1 -2
- homeassistant/components/pegel_online/translations/nl.json +1 -2
- homeassistant/components/pegel_online/translations/pt.json +1 -2
- homeassistant/components/pegel_online/translations/ru.json +1 -1
- homeassistant/components/pegel_online/translations/sk.json +1 -1
- homeassistant/components/pegel_online/translations/sv.json +1 -1
- homeassistant/components/pegel_online/translations/tr.json +1 -2
- homeassistant/components/pegel_online/translations/zh-Hant.json +1 -1
- homeassistant/components/person/__init__.py +1 -2
- homeassistant/components/pi_hole/translations/fr.json +1 -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/diagnostics.py +55 -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 +36 -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/fr.json +15 -0
- homeassistant/components/playstation_network/translations/ga.json +31 -0
- homeassistant/components/playstation_network/translations/hu.json +73 -0
- homeassistant/components/playstation_network/translations/id.json +14 -0
- homeassistant/components/playstation_network/translations/it.json +73 -0
- homeassistant/components/playstation_network/translations/ja.json +44 -0
- homeassistant/components/playstation_network/translations/lt.json +44 -0
- homeassistant/components/playstation_network/translations/mk.json +18 -0
- homeassistant/components/playstation_network/translations/nl.json +14 -0
- homeassistant/components/playstation_network/translations/pl.json +73 -0
- homeassistant/components/playstation_network/translations/pt.json +73 -0
- homeassistant/components/playstation_network/translations/ru.json +1 -0
- homeassistant/components/playstation_network/translations/sk.json +73 -0
- homeassistant/components/playstation_network/translations/sv.json +62 -0
- homeassistant/components/playstation_network/translations/zh-Hans.json +73 -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 +2 -5
- 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/hu.json +6 -0
- homeassistant/components/point/translations/id.json +6 -0
- homeassistant/components/point/translations/ja.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/proximity/translations/bg.json +0 -3
- homeassistant/components/proximity/translations/ca.json +2 -27
- homeassistant/components/proximity/translations/cs.json +1 -25
- homeassistant/components/proximity/translations/el.json +1 -25
- homeassistant/components/proximity/translations/en-GB.json +4 -4
- homeassistant/components/proximity/translations/en.json +4 -4
- homeassistant/components/proximity/translations/et.json +1 -1
- homeassistant/components/proximity/translations/fi.json +1 -25
- homeassistant/components/proximity/translations/fr.json +1 -25
- homeassistant/components/proximity/translations/gl.json +1 -24
- homeassistant/components/proximity/translations/hu.json +1 -25
- homeassistant/components/proximity/translations/id.json +1 -25
- homeassistant/components/proximity/translations/it.json +1 -13
- homeassistant/components/proximity/translations/ja.json +1 -25
- homeassistant/components/proximity/translations/lt.json +1 -25
- homeassistant/components/proximity/translations/nl.json +8 -0
- homeassistant/components/proximity/translations/pl.json +1 -25
- homeassistant/components/proximity/translations/pt-BR.json +1 -25
- homeassistant/components/proximity/translations/pt.json +1 -25
- homeassistant/components/proximity/translations/ru.json +1 -25
- homeassistant/components/proximity/translations/sk.json +2 -2
- homeassistant/components/proximity/translations/sv.json +1 -25
- homeassistant/components/proximity/translations/tr.json +1 -25
- homeassistant/components/proximity/translations/zh-Hans.json +2 -2
- homeassistant/components/ps4/__init__.py +2 -2
- homeassistant/components/ps4/services.py +3 -2
- homeassistant/components/ps4/translations/mk.json +7 -0
- homeassistant/components/pushbullet/sensor.py +7 -2
- 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/qnap/translations/sv.json +1 -1
- homeassistant/components/radarr/entity.py +1 -5
- homeassistant/components/random/translations/sv.json +4 -4
- 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/remote_calendar/translations/fi.json +34 -0
- 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/manifest.json +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 +24 -9
- homeassistant/components/reolink/translations/id.json +0 -9
- homeassistant/components/reolink/translations/it.json +12 -9
- homeassistant/components/reolink/translations/ja.json +18 -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 +92 -35
- 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/hu.json +21 -0
- homeassistant/components/russound_rio/translations/ja.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/screenlogic/translations/el.json +7 -0
- homeassistant/components/script/helpers.py +1 -1
- homeassistant/components/select/translations/sv.json +10 -10
- homeassistant/components/sensibo/translations/el.json +1 -0
- 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/sensor/translations/pl.json +1 -0
- 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/hu.json +6 -0
- homeassistant/components/senz/translations/id.json +6 -0
- homeassistant/components/senz/translations/ja.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/entity.py +10 -3
- 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/sma/translations/ja.json +8 -0
- 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/hu.json +6 -0
- homeassistant/components/smappee/translations/id.json +6 -0
- homeassistant/components/smappee/translations/ja.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 +4 -3
- 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/ja.json +9 -0
- 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/hu.json +15 -0
- homeassistant/components/smartthings/translations/id.json +6 -0
- homeassistant/components/smartthings/translations/ja.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/bg.json +5 -0
- homeassistant/components/sonos/translations/cs.json +9 -0
- homeassistant/components/sonos/translations/de.json +9 -0
- homeassistant/components/sonos/translations/el.json +9 -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/fr.json +6 -0
- homeassistant/components/sonos/translations/ga.json +8 -0
- homeassistant/components/sonos/translations/hu.json +9 -0
- homeassistant/components/sonos/translations/it.json +11 -0
- homeassistant/components/sonos/translations/ja.json +9 -0
- homeassistant/components/sonos/translations/mk.json +10 -0
- homeassistant/components/sonos/translations/pt.json +9 -0
- homeassistant/components/sonos/translations/ru.json +6 -0
- homeassistant/components/sonos/translations/sk.json +9 -0
- homeassistant/components/sonos/translations/sv.json +6 -0
- homeassistant/components/sonos/translations/zh-Hans.json +9 -0
- homeassistant/components/sonos/translations/zh-Hant.json +9 -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/hu.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 +13 -12
- homeassistant/components/stream/const.py +2 -1
- homeassistant/components/stream/core.py +7 -5
- homeassistant/components/stream/fmp4utils.py +2 -2
- homeassistant/components/stream/manifest.json +1 -1
- homeassistant/components/subaru/strings.json +2 -2
- homeassistant/components/subaru/translations/ca.json +0 -1
- homeassistant/components/subaru/translations/cs.json +0 -2
- homeassistant/components/subaru/translations/de.json +2 -2
- homeassistant/components/subaru/translations/el.json +2 -2
- homeassistant/components/subaru/translations/en-GB.json +2 -2
- homeassistant/components/subaru/translations/en.json +2 -2
- homeassistant/components/subaru/translations/es.json +2 -2
- homeassistant/components/subaru/translations/et.json +2 -2
- homeassistant/components/subaru/translations/fi.json +0 -1
- homeassistant/components/subaru/translations/hu.json +2 -2
- homeassistant/components/subaru/translations/it.json +0 -1
- homeassistant/components/subaru/translations/ja.json +0 -1
- homeassistant/components/subaru/translations/ko.json +0 -1
- homeassistant/components/subaru/translations/lt.json +0 -2
- homeassistant/components/subaru/translations/pt-BR.json +0 -1
- homeassistant/components/subaru/translations/pt.json +2 -2
- homeassistant/components/subaru/translations/ru.json +2 -2
- homeassistant/components/subaru/translations/sk.json +2 -2
- homeassistant/components/subaru/translations/sv.json +0 -2
- homeassistant/components/subaru/translations/tr.json +0 -2
- homeassistant/components/subaru/translations/zh-Hans.json +2 -2
- homeassistant/components/subaru/translations/zh-Hant.json +2 -2
- 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/ja.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/swiss_public_transport/translations/el.json +60 -6
- 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/bg.json +26 -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/ga.json +33 -0
- homeassistant/components/switchbot/translations/hu.json +54 -0
- homeassistant/components/switchbot/translations/id.json +19 -0
- homeassistant/components/switchbot/translations/it.json +53 -0
- homeassistant/components/switchbot/translations/ja.json +46 -0
- homeassistant/components/switchbot/translations/mk.json +49 -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/sv.json +54 -0
- homeassistant/components/switchbot/translations/zh-Hans.json +53 -0
- homeassistant/components/switchbot/translations/zh-Hant.json +54 -0
- homeassistant/components/switchbot_cloud/__init__.py +6 -1
- homeassistant/components/switchbot_cloud/binary_sensor.py +8 -1
- homeassistant/components/switchbot_cloud/manifest.json +1 -1
- homeassistant/components/switchbot_cloud/sensor.py +3 -2
- 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 +220 -917
- homeassistant/components/telegram_bot/bot.py +1017 -0
- homeassistant/components/telegram_bot/broadcast.py +10 -2
- homeassistant/components/telegram_bot/config_flow.py +674 -0
- homeassistant/components/telegram_bot/const.py +110 -0
- homeassistant/components/telegram_bot/icons.json +6 -0
- homeassistant/components/telegram_bot/manifest.json +3 -2
- 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 +270 -4
- homeassistant/components/telegram_bot/translations/bg.json +143 -0
- homeassistant/components/telegram_bot/translations/ca.json +0 -3
- homeassistant/components/telegram_bot/translations/cs.json +269 -3
- homeassistant/components/telegram_bot/translations/de.json +269 -3
- homeassistant/components/telegram_bot/translations/el.json +270 -3
- homeassistant/components/telegram_bot/translations/en-GB.json +182 -4
- homeassistant/components/telegram_bot/translations/en.json +269 -3
- homeassistant/components/telegram_bot/translations/es.json +269 -3
- homeassistant/components/telegram_bot/translations/et.json +269 -3
- homeassistant/components/telegram_bot/translations/fi.json +0 -4
- homeassistant/components/telegram_bot/translations/fr.json +187 -0
- homeassistant/components/telegram_bot/translations/ga.json +289 -1
- homeassistant/components/telegram_bot/translations/he.json +152 -3
- homeassistant/components/telegram_bot/translations/hu.json +269 -3
- homeassistant/components/telegram_bot/translations/id.json +22 -4
- homeassistant/components/telegram_bot/translations/it.json +176 -4
- homeassistant/components/telegram_bot/translations/ja.json +99 -4
- homeassistant/components/telegram_bot/translations/lt.json +239 -3
- homeassistant/components/telegram_bot/translations/mk.json +58 -1
- homeassistant/components/telegram_bot/translations/nl.json +211 -3
- homeassistant/components/telegram_bot/translations/pt.json +269 -3
- homeassistant/components/telegram_bot/translations/ru.json +261 -4
- homeassistant/components/telegram_bot/translations/sk.json +269 -3
- homeassistant/components/telegram_bot/translations/sv.json +252 -3
- homeassistant/components/telegram_bot/translations/tr.json +239 -3
- homeassistant/components/telegram_bot/translations/zh-Hans.json +269 -3
- homeassistant/components/telegram_bot/translations/zh-Hant.json +269 -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/translations/pl.json +25 -3
- homeassistant/components/template/translations/sv.json +5 -5
- 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 +29 -5
- 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 +28 -4
- 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 +20 -4
- 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/coordinator.py +6 -6
- homeassistant/components/teslemetry/manifest.json +1 -1
- homeassistant/components/teslemetry/sensor.py +1 -2
- homeassistant/components/teslemetry/services.py +3 -2
- homeassistant/components/teslemetry/translations/de.json +2 -2
- homeassistant/components/tessie/manifest.json +1 -1
- homeassistant/components/text/translations/sv.json +1 -1
- homeassistant/components/thermopro/strings.json +1 -1
- homeassistant/components/thermopro/translations/cs.json +0 -7
- homeassistant/components/thermopro/translations/de.json +1 -1
- homeassistant/components/thermopro/translations/el.json +1 -1
- homeassistant/components/thermopro/translations/en-GB.json +1 -1
- homeassistant/components/thermopro/translations/en.json +1 -1
- homeassistant/components/thermopro/translations/et.json +1 -1
- homeassistant/components/thermopro/translations/ja.json +0 -7
- homeassistant/components/thermopro/translations/lt.json +0 -7
- homeassistant/components/thermopro/translations/nl.json +0 -7
- homeassistant/components/thermopro/translations/pt-BR.json +0 -7
- homeassistant/components/thermopro/translations/pt.json +0 -7
- homeassistant/components/thermopro/translations/sk.json +1 -1
- homeassistant/components/thermopro/translations/sv.json +0 -7
- homeassistant/components/thermopro/translations/tr.json +0 -7
- homeassistant/components/thread/diagnostics.py +1 -3
- homeassistant/components/threshold/translations/sv.json +2 -2
- homeassistant/components/tibber/manifest.json +1 -1
- homeassistant/components/tibber/sensor.py +1 -1
- 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/hu.json +31 -0
- homeassistant/components/tilt_pi/translations/id.json +11 -0
- homeassistant/components/tilt_pi/translations/ja.json +31 -0
- homeassistant/components/tilt_pi/translations/lt.json +31 -0
- homeassistant/components/tilt_pi/translations/nl.json +28 -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/hu.json +6 -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/__init__.py +15 -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/unifiprotect/translations/zh-Hans.json +3 -3
- homeassistant/components/utility_meter/strings.json +1 -1
- homeassistant/components/utility_meter/translations/sv.json +9 -9
- 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 +35 -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/hu.json +44 -0
- homeassistant/components/vegehub/translations/id.json +11 -0
- homeassistant/components/vegehub/translations/it.json +44 -0
- homeassistant/components/vegehub/translations/ja.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 +41 -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/vesync/fan.py +25 -17
- homeassistant/components/vicare/translations/sv.json +2 -2
- homeassistant/components/vulcan/manifest.json +1 -1
- homeassistant/components/vulcan/translations/mk.json +11 -0
- homeassistant/components/wallbox/const.py +4 -0
- homeassistant/components/wallbox/coordinator.py +47 -20
- homeassistant/components/wallbox/lock.py +1 -12
- homeassistant/components/wallbox/number.py +1 -12
- homeassistant/components/wallbox/translations/el.json +5 -0
- homeassistant/components/wallbox/translations/hu.json +3 -0
- homeassistant/components/wallbox/translations/ja.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/hu.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/whirlpool/translations/sv.json +12 -12
- homeassistant/components/withings/strings.json +7 -1
- homeassistant/components/withings/translations/cs.json +6 -0
- homeassistant/components/withings/translations/de.json +10 -4
- 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/hu.json +6 -0
- homeassistant/components/withings/translations/id.json +6 -0
- homeassistant/components/withings/translations/ja.json +3 -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/wled/translations/fr.json +1 -0
- homeassistant/components/wmspro/cover.py +4 -7
- homeassistant/components/wmspro/light.py +12 -9
- homeassistant/components/wmspro/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/translations/sv.json +2 -2
- 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/hu.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/fr.json +24 -2
- homeassistant/components/xiaomi_miio/translations/hu.json +30 -7
- 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/hu.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/hu.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/bg.json +23 -0
- homeassistant/components/zha/translations/cs.json +50 -0
- homeassistant/components/zha/translations/de.json +50 -0
- homeassistant/components/zha/translations/el.json +64 -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/fr.json +50 -0
- homeassistant/components/zha/translations/ga.json +20 -0
- homeassistant/components/zha/translations/hu.json +53 -0
- homeassistant/components/zha/translations/id.json +6 -0
- homeassistant/components/zha/translations/it.json +50 -0
- homeassistant/components/zha/translations/ja.json +41 -0
- homeassistant/components/zha/translations/nl.json +7 -0
- homeassistant/components/zha/translations/pt.json +50 -0
- homeassistant/components/zha/translations/sk.json +50 -0
- homeassistant/components/zha/translations/sv.json +38 -0
- homeassistant/components/zha/translations/zh-Hans.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 +22 -25
- homeassistant/components/zwave_js/climate.py +1 -3
- homeassistant/components/zwave_js/config_flow.py +96 -96
- 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 +38 -22
- homeassistant/components/zwave_js/translations/bg.json +0 -3
- homeassistant/components/zwave_js/translations/cs.json +7 -24
- homeassistant/components/zwave_js/translations/de.json +33 -17
- homeassistant/components/zwave_js/translations/el.json +31 -15
- homeassistant/components/zwave_js/translations/en-GB.json +31 -15
- homeassistant/components/zwave_js/translations/en.json +31 -15
- homeassistant/components/zwave_js/translations/es.json +29 -13
- homeassistant/components/zwave_js/translations/et.json +31 -15
- homeassistant/components/zwave_js/translations/fi.json +0 -15
- homeassistant/components/zwave_js/translations/fr.json +6 -0
- homeassistant/components/zwave_js/translations/ga.json +0 -25
- homeassistant/components/zwave_js/translations/hu.json +30 -14
- homeassistant/components/zwave_js/translations/it.json +26 -0
- homeassistant/components/zwave_js/translations/ja.json +26 -0
- homeassistant/components/zwave_js/translations/ko.json +0 -3
- homeassistant/components/zwave_js/translations/lt.json +7 -24
- homeassistant/components/zwave_js/translations/mk.json +0 -15
- homeassistant/components/zwave_js/translations/pt.json +8 -24
- homeassistant/components/zwave_js/translations/ru.json +28 -16
- homeassistant/components/zwave_js/translations/sk.json +30 -14
- homeassistant/components/zwave_js/translations/sv.json +36 -20
- homeassistant/components/zwave_js/translations/tr.json +0 -14
- homeassistant/components/zwave_js/translations/zh-Hans.json +32 -16
- homeassistant/components/zwave_js/translations/zh-Hant.json +31 -15
- 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/config_entries.py +6 -0
- 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 +37 -21
- 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.0b5.dist-info}/METADATA +10 -19
- {homeassistant-2025.6.3.dist-info → homeassistant-2025.7.0b5.dist-info}/RECORD +3165 -2955
- 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/dweet/__init__.py +0 -79
- homeassistant/components/dweet/manifest.json +0 -10
- homeassistant/components/dweet/sensor.py +0 -124
- 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/components/thermopro/translations/ga.json +0 -9
- homeassistant/components/thermopro/translations/mk.json +0 -9
- {homeassistant-2025.6.3.dist-info → homeassistant-2025.7.0b5.dist-info}/WHEEL +0 -0
- {homeassistant-2025.6.3.dist-info → homeassistant-2025.7.0b5.dist-info}/entry_points.txt +0 -0
- {homeassistant-2025.6.3.dist-info → homeassistant-2025.7.0b5.dist-info}/licenses/LICENSE.md +0 -0
- {homeassistant-2025.6.3.dist-info → homeassistant-2025.7.0b5.dist-info}/licenses/homeassistant/backports/LICENSE.Python +0 -0
- {homeassistant-2025.6.3.dist-info → homeassistant-2025.7.0b5.dist-info}/top_level.txt +0 -0
|
@@ -2,136 +2,104 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
import
|
|
6
|
-
import io
|
|
7
|
-
from ipaddress import ip_network
|
|
5
|
+
from ipaddress import IPv4Network, ip_network
|
|
8
6
|
import logging
|
|
7
|
+
from types import ModuleType
|
|
9
8
|
from typing import Any
|
|
10
9
|
|
|
11
|
-
import
|
|
12
|
-
from telegram import
|
|
13
|
-
Bot,
|
|
14
|
-
CallbackQuery,
|
|
15
|
-
InlineKeyboardButton,
|
|
16
|
-
InlineKeyboardMarkup,
|
|
17
|
-
Message,
|
|
18
|
-
ReplyKeyboardMarkup,
|
|
19
|
-
ReplyKeyboardRemove,
|
|
20
|
-
Update,
|
|
21
|
-
User,
|
|
22
|
-
)
|
|
23
|
-
from telegram.constants import ParseMode
|
|
24
|
-
from telegram.error import TelegramError
|
|
25
|
-
from telegram.ext import CallbackContext, filters
|
|
26
|
-
from telegram.request import HTTPXRequest
|
|
10
|
+
from telegram import Bot
|
|
11
|
+
from telegram.error import InvalidToken, TelegramError
|
|
27
12
|
import voluptuous as vol
|
|
28
13
|
|
|
14
|
+
from homeassistant.config_entries import SOURCE_IMPORT
|
|
29
15
|
from homeassistant.const import (
|
|
30
|
-
ATTR_COMMAND,
|
|
31
16
|
ATTR_LATITUDE,
|
|
32
17
|
ATTR_LONGITUDE,
|
|
33
18
|
CONF_API_KEY,
|
|
34
19
|
CONF_PLATFORM,
|
|
20
|
+
CONF_SOURCE,
|
|
35
21
|
CONF_URL,
|
|
36
|
-
HTTP_BEARER_AUTHENTICATION,
|
|
37
|
-
HTTP_DIGEST_AUTHENTICATION,
|
|
38
22
|
)
|
|
39
23
|
from homeassistant.core import (
|
|
40
|
-
Context,
|
|
41
24
|
HomeAssistant,
|
|
42
25
|
ServiceCall,
|
|
43
26
|
ServiceResponse,
|
|
44
27
|
SupportsResponse,
|
|
45
28
|
)
|
|
46
|
-
from homeassistant.
|
|
29
|
+
from homeassistant.exceptions import (
|
|
30
|
+
ConfigEntryAuthFailed,
|
|
31
|
+
ConfigEntryNotReady,
|
|
32
|
+
HomeAssistantError,
|
|
33
|
+
ServiceValidationError,
|
|
34
|
+
)
|
|
35
|
+
from homeassistant.helpers import config_validation as cv
|
|
47
36
|
from homeassistant.helpers.typing import ConfigType
|
|
48
|
-
from homeassistant.loader import async_get_loaded_integration
|
|
49
|
-
from homeassistant.util.ssl import get_default_context, get_default_no_verify_context
|
|
50
|
-
|
|
51
|
-
_LOGGER = logging.getLogger(__name__)
|
|
52
|
-
|
|
53
|
-
ATTR_DATA = "data"
|
|
54
|
-
ATTR_MESSAGE = "message"
|
|
55
|
-
ATTR_TITLE = "title"
|
|
56
|
-
|
|
57
|
-
ATTR_ARGS = "args"
|
|
58
|
-
ATTR_AUTHENTICATION = "authentication"
|
|
59
|
-
ATTR_CALLBACK_QUERY = "callback_query"
|
|
60
|
-
ATTR_CALLBACK_QUERY_ID = "callback_query_id"
|
|
61
|
-
ATTR_CAPTION = "caption"
|
|
62
|
-
ATTR_CHAT_ID = "chat_id"
|
|
63
|
-
ATTR_CHAT_INSTANCE = "chat_instance"
|
|
64
|
-
ATTR_DATE = "date"
|
|
65
|
-
ATTR_DISABLE_NOTIF = "disable_notification"
|
|
66
|
-
ATTR_DISABLE_WEB_PREV = "disable_web_page_preview"
|
|
67
|
-
ATTR_EDITED_MSG = "edited_message"
|
|
68
|
-
ATTR_FILE = "file"
|
|
69
|
-
ATTR_FROM_FIRST = "from_first"
|
|
70
|
-
ATTR_FROM_LAST = "from_last"
|
|
71
|
-
ATTR_KEYBOARD = "keyboard"
|
|
72
|
-
ATTR_RESIZE_KEYBOARD = "resize_keyboard"
|
|
73
|
-
ATTR_ONE_TIME_KEYBOARD = "one_time_keyboard"
|
|
74
|
-
ATTR_KEYBOARD_INLINE = "inline_keyboard"
|
|
75
|
-
ATTR_MESSAGEID = "message_id"
|
|
76
|
-
ATTR_MSG = "message"
|
|
77
|
-
ATTR_MSGID = "id"
|
|
78
|
-
ATTR_PARSER = "parse_mode"
|
|
79
|
-
ATTR_PASSWORD = "password"
|
|
80
|
-
ATTR_REPLY_TO_MSGID = "reply_to_message_id"
|
|
81
|
-
ATTR_REPLYMARKUP = "reply_markup"
|
|
82
|
-
ATTR_SHOW_ALERT = "show_alert"
|
|
83
|
-
ATTR_STICKER_ID = "sticker_id"
|
|
84
|
-
ATTR_TARGET = "target"
|
|
85
|
-
ATTR_TEXT = "text"
|
|
86
|
-
ATTR_URL = "url"
|
|
87
|
-
ATTR_USER_ID = "user_id"
|
|
88
|
-
ATTR_USERNAME = "username"
|
|
89
|
-
ATTR_VERIFY_SSL = "verify_ssl"
|
|
90
|
-
ATTR_TIMEOUT = "timeout"
|
|
91
|
-
ATTR_MESSAGE_TAG = "message_tag"
|
|
92
|
-
ATTR_CHANNEL_POST = "channel_post"
|
|
93
|
-
ATTR_QUESTION = "question"
|
|
94
|
-
ATTR_OPTIONS = "options"
|
|
95
|
-
ATTR_ANSWERS = "answers"
|
|
96
|
-
ATTR_OPEN_PERIOD = "open_period"
|
|
97
|
-
ATTR_IS_ANONYMOUS = "is_anonymous"
|
|
98
|
-
ATTR_ALLOWS_MULTIPLE_ANSWERS = "allows_multiple_answers"
|
|
99
|
-
ATTR_MESSAGE_THREAD_ID = "message_thread_id"
|
|
100
|
-
|
|
101
|
-
CONF_ALLOWED_CHAT_IDS = "allowed_chat_ids"
|
|
102
|
-
CONF_PROXY_URL = "proxy_url"
|
|
103
|
-
CONF_PROXY_PARAMS = "proxy_params"
|
|
104
|
-
CONF_TRUSTED_NETWORKS = "trusted_networks"
|
|
105
|
-
|
|
106
|
-
DOMAIN = "telegram_bot"
|
|
107
|
-
|
|
108
|
-
SERVICE_SEND_MESSAGE = "send_message"
|
|
109
|
-
SERVICE_SEND_PHOTO = "send_photo"
|
|
110
|
-
SERVICE_SEND_STICKER = "send_sticker"
|
|
111
|
-
SERVICE_SEND_ANIMATION = "send_animation"
|
|
112
|
-
SERVICE_SEND_VIDEO = "send_video"
|
|
113
|
-
SERVICE_SEND_VOICE = "send_voice"
|
|
114
|
-
SERVICE_SEND_DOCUMENT = "send_document"
|
|
115
|
-
SERVICE_SEND_LOCATION = "send_location"
|
|
116
|
-
SERVICE_SEND_POLL = "send_poll"
|
|
117
|
-
SERVICE_EDIT_MESSAGE = "edit_message"
|
|
118
|
-
SERVICE_EDIT_CAPTION = "edit_caption"
|
|
119
|
-
SERVICE_EDIT_REPLYMARKUP = "edit_replymarkup"
|
|
120
|
-
SERVICE_ANSWER_CALLBACK_QUERY = "answer_callback_query"
|
|
121
|
-
SERVICE_DELETE_MESSAGE = "delete_message"
|
|
122
|
-
SERVICE_LEAVE_CHAT = "leave_chat"
|
|
123
37
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
38
|
+
from . import broadcast, polling, webhooks
|
|
39
|
+
from .bot import TelegramBotConfigEntry, TelegramNotificationService, initialize_bot
|
|
40
|
+
from .const import (
|
|
41
|
+
ATTR_ALLOWS_MULTIPLE_ANSWERS,
|
|
42
|
+
ATTR_AUTHENTICATION,
|
|
43
|
+
ATTR_CALLBACK_QUERY_ID,
|
|
44
|
+
ATTR_CAPTION,
|
|
45
|
+
ATTR_CHAT_ID,
|
|
46
|
+
ATTR_DISABLE_NOTIF,
|
|
47
|
+
ATTR_DISABLE_WEB_PREV,
|
|
48
|
+
ATTR_FILE,
|
|
49
|
+
ATTR_IS_ANONYMOUS,
|
|
50
|
+
ATTR_IS_BIG,
|
|
51
|
+
ATTR_KEYBOARD,
|
|
52
|
+
ATTR_KEYBOARD_INLINE,
|
|
53
|
+
ATTR_MESSAGE,
|
|
54
|
+
ATTR_MESSAGE_TAG,
|
|
55
|
+
ATTR_MESSAGE_THREAD_ID,
|
|
56
|
+
ATTR_MESSAGEID,
|
|
57
|
+
ATTR_ONE_TIME_KEYBOARD,
|
|
58
|
+
ATTR_OPEN_PERIOD,
|
|
59
|
+
ATTR_OPTIONS,
|
|
60
|
+
ATTR_PARSER,
|
|
61
|
+
ATTR_PASSWORD,
|
|
62
|
+
ATTR_QUESTION,
|
|
63
|
+
ATTR_REACTION,
|
|
64
|
+
ATTR_RESIZE_KEYBOARD,
|
|
65
|
+
ATTR_SHOW_ALERT,
|
|
66
|
+
ATTR_STICKER_ID,
|
|
67
|
+
ATTR_TARGET,
|
|
68
|
+
ATTR_TIMEOUT,
|
|
69
|
+
ATTR_TITLE,
|
|
70
|
+
ATTR_URL,
|
|
71
|
+
ATTR_USERNAME,
|
|
72
|
+
ATTR_VERIFY_SSL,
|
|
73
|
+
CONF_ALLOWED_CHAT_IDS,
|
|
74
|
+
CONF_BOT_COUNT,
|
|
75
|
+
CONF_CONFIG_ENTRY_ID,
|
|
76
|
+
CONF_PROXY_URL,
|
|
77
|
+
CONF_TRUSTED_NETWORKS,
|
|
78
|
+
DEFAULT_TRUSTED_NETWORKS,
|
|
79
|
+
DOMAIN,
|
|
80
|
+
PARSER_MD,
|
|
81
|
+
PLATFORM_BROADCAST,
|
|
82
|
+
PLATFORM_POLLING,
|
|
83
|
+
PLATFORM_WEBHOOKS,
|
|
84
|
+
SERVICE_ANSWER_CALLBACK_QUERY,
|
|
85
|
+
SERVICE_DELETE_MESSAGE,
|
|
86
|
+
SERVICE_EDIT_CAPTION,
|
|
87
|
+
SERVICE_EDIT_MESSAGE,
|
|
88
|
+
SERVICE_EDIT_REPLYMARKUP,
|
|
89
|
+
SERVICE_LEAVE_CHAT,
|
|
90
|
+
SERVICE_SEND_ANIMATION,
|
|
91
|
+
SERVICE_SEND_DOCUMENT,
|
|
92
|
+
SERVICE_SEND_LOCATION,
|
|
93
|
+
SERVICE_SEND_MESSAGE,
|
|
94
|
+
SERVICE_SEND_PHOTO,
|
|
95
|
+
SERVICE_SEND_POLL,
|
|
96
|
+
SERVICE_SEND_STICKER,
|
|
97
|
+
SERVICE_SEND_VIDEO,
|
|
98
|
+
SERVICE_SEND_VOICE,
|
|
99
|
+
SERVICE_SET_MESSAGE_REACTION,
|
|
100
|
+
)
|
|
133
101
|
|
|
134
|
-
|
|
102
|
+
_LOGGER = logging.getLogger(__name__)
|
|
135
103
|
|
|
136
104
|
CONFIG_SCHEMA = vol.Schema(
|
|
137
105
|
{
|
|
@@ -141,7 +109,7 @@ CONFIG_SCHEMA = vol.Schema(
|
|
|
141
109
|
vol.Schema(
|
|
142
110
|
{
|
|
143
111
|
vol.Required(CONF_PLATFORM): vol.In(
|
|
144
|
-
(
|
|
112
|
+
(PLATFORM_BROADCAST, PLATFORM_POLLING, PLATFORM_WEBHOOKS)
|
|
145
113
|
),
|
|
146
114
|
vol.Required(CONF_API_KEY): cv.string,
|
|
147
115
|
vol.Required(CONF_ALLOWED_CHAT_IDS): vol.All(
|
|
@@ -149,7 +117,6 @@ CONFIG_SCHEMA = vol.Schema(
|
|
|
149
117
|
),
|
|
150
118
|
vol.Optional(ATTR_PARSER, default=PARSER_MD): cv.string,
|
|
151
119
|
vol.Optional(CONF_PROXY_URL): cv.string,
|
|
152
|
-
vol.Optional(CONF_PROXY_PARAMS): dict,
|
|
153
120
|
# webhooks
|
|
154
121
|
vol.Optional(CONF_URL): cv.url,
|
|
155
122
|
vol.Optional(
|
|
@@ -165,6 +132,7 @@ CONFIG_SCHEMA = vol.Schema(
|
|
|
165
132
|
|
|
166
133
|
BASE_SERVICE_SCHEMA = vol.Schema(
|
|
167
134
|
{
|
|
135
|
+
vol.Optional(CONF_CONFIG_ENTRY_ID): cv.string,
|
|
168
136
|
vol.Optional(ATTR_TARGET): vol.All(cv.ensure_list, [vol.Coerce(int)]),
|
|
169
137
|
vol.Optional(ATTR_PARSER): cv.string,
|
|
170
138
|
vol.Optional(ATTR_DISABLE_NOTIF): cv.boolean,
|
|
@@ -209,6 +177,7 @@ SERVICE_SCHEMA_SEND_LOCATION = BASE_SERVICE_SCHEMA.extend(
|
|
|
209
177
|
|
|
210
178
|
SERVICE_SCHEMA_SEND_POLL = vol.Schema(
|
|
211
179
|
{
|
|
180
|
+
vol.Optional(CONF_CONFIG_ENTRY_ID): cv.string,
|
|
212
181
|
vol.Optional(ATTR_TARGET): vol.All(cv.ensure_list, [vol.Coerce(int)]),
|
|
213
182
|
vol.Required(ATTR_QUESTION): cv.string,
|
|
214
183
|
vol.Required(ATTR_OPTIONS): vol.All(cv.ensure_list, [cv.string]),
|
|
@@ -232,6 +201,7 @@ SERVICE_SCHEMA_EDIT_MESSAGE = SERVICE_SCHEMA_SEND_MESSAGE.extend(
|
|
|
232
201
|
|
|
233
202
|
SERVICE_SCHEMA_EDIT_CAPTION = vol.Schema(
|
|
234
203
|
{
|
|
204
|
+
vol.Optional(CONF_CONFIG_ENTRY_ID): cv.string,
|
|
235
205
|
vol.Required(ATTR_MESSAGEID): vol.Any(
|
|
236
206
|
cv.positive_int, vol.All(cv.string, "last")
|
|
237
207
|
),
|
|
@@ -244,6 +214,7 @@ SERVICE_SCHEMA_EDIT_CAPTION = vol.Schema(
|
|
|
244
214
|
|
|
245
215
|
SERVICE_SCHEMA_EDIT_REPLYMARKUP = vol.Schema(
|
|
246
216
|
{
|
|
217
|
+
vol.Optional(CONF_CONFIG_ENTRY_ID): cv.string,
|
|
247
218
|
vol.Required(ATTR_MESSAGEID): vol.Any(
|
|
248
219
|
cv.positive_int, vol.All(cv.string, "last")
|
|
249
220
|
),
|
|
@@ -255,6 +226,7 @@ SERVICE_SCHEMA_EDIT_REPLYMARKUP = vol.Schema(
|
|
|
255
226
|
|
|
256
227
|
SERVICE_SCHEMA_ANSWER_CALLBACK_QUERY = vol.Schema(
|
|
257
228
|
{
|
|
229
|
+
vol.Optional(CONF_CONFIG_ENTRY_ID): cv.string,
|
|
258
230
|
vol.Required(ATTR_MESSAGE): cv.string,
|
|
259
231
|
vol.Required(ATTR_CALLBACK_QUERY_ID): vol.Coerce(int),
|
|
260
232
|
vol.Optional(ATTR_SHOW_ALERT): cv.boolean,
|
|
@@ -264,6 +236,7 @@ SERVICE_SCHEMA_ANSWER_CALLBACK_QUERY = vol.Schema(
|
|
|
264
236
|
|
|
265
237
|
SERVICE_SCHEMA_DELETE_MESSAGE = vol.Schema(
|
|
266
238
|
{
|
|
239
|
+
vol.Optional(CONF_CONFIG_ENTRY_ID): cv.string,
|
|
267
240
|
vol.Required(ATTR_CHAT_ID): vol.Coerce(int),
|
|
268
241
|
vol.Required(ATTR_MESSAGEID): vol.Any(
|
|
269
242
|
cv.positive_int, vol.All(cv.string, "last")
|
|
@@ -272,7 +245,25 @@ SERVICE_SCHEMA_DELETE_MESSAGE = vol.Schema(
|
|
|
272
245
|
extra=vol.ALLOW_EXTRA,
|
|
273
246
|
)
|
|
274
247
|
|
|
275
|
-
SERVICE_SCHEMA_LEAVE_CHAT = vol.Schema(
|
|
248
|
+
SERVICE_SCHEMA_LEAVE_CHAT = vol.Schema(
|
|
249
|
+
{
|
|
250
|
+
vol.Optional(CONF_CONFIG_ENTRY_ID): cv.string,
|
|
251
|
+
vol.Required(ATTR_CHAT_ID): vol.Coerce(int),
|
|
252
|
+
}
|
|
253
|
+
)
|
|
254
|
+
|
|
255
|
+
SERVICE_SCHEMA_SET_MESSAGE_REACTION = vol.Schema(
|
|
256
|
+
{
|
|
257
|
+
vol.Optional(CONF_CONFIG_ENTRY_ID): cv.string,
|
|
258
|
+
vol.Required(ATTR_MESSAGEID): vol.Any(
|
|
259
|
+
cv.positive_int, vol.All(cv.string, "last")
|
|
260
|
+
),
|
|
261
|
+
vol.Required(ATTR_CHAT_ID): vol.Coerce(int),
|
|
262
|
+
vol.Required(ATTR_REACTION): cv.string,
|
|
263
|
+
vol.Optional(ATTR_IS_BIG, default=False): cv.boolean,
|
|
264
|
+
},
|
|
265
|
+
extra=vol.ALLOW_EXTRA,
|
|
266
|
+
)
|
|
276
267
|
|
|
277
268
|
SERVICE_MAP = {
|
|
278
269
|
SERVICE_SEND_MESSAGE: SERVICE_SCHEMA_SEND_MESSAGE,
|
|
@@ -290,120 +281,46 @@ SERVICE_MAP = {
|
|
|
290
281
|
SERVICE_ANSWER_CALLBACK_QUERY: SERVICE_SCHEMA_ANSWER_CALLBACK_QUERY,
|
|
291
282
|
SERVICE_DELETE_MESSAGE: SERVICE_SCHEMA_DELETE_MESSAGE,
|
|
292
283
|
SERVICE_LEAVE_CHAT: SERVICE_SCHEMA_LEAVE_CHAT,
|
|
284
|
+
SERVICE_SET_MESSAGE_REACTION: SERVICE_SCHEMA_SET_MESSAGE_REACTION,
|
|
293
285
|
}
|
|
294
286
|
|
|
295
287
|
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
return data
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
async def load_data(
|
|
305
|
-
hass,
|
|
306
|
-
url=None,
|
|
307
|
-
filepath=None,
|
|
308
|
-
username=None,
|
|
309
|
-
password=None,
|
|
310
|
-
authentication=None,
|
|
311
|
-
num_retries=5,
|
|
312
|
-
verify_ssl=None,
|
|
313
|
-
):
|
|
314
|
-
"""Load data into ByteIO/File container from a source."""
|
|
315
|
-
try:
|
|
316
|
-
if url is not None:
|
|
317
|
-
# Load data from URL
|
|
318
|
-
params = {}
|
|
319
|
-
headers = {}
|
|
320
|
-
if authentication == HTTP_BEARER_AUTHENTICATION and password is not None:
|
|
321
|
-
headers = {"Authorization": f"Bearer {password}"}
|
|
322
|
-
elif username is not None and password is not None:
|
|
323
|
-
if authentication == HTTP_DIGEST_AUTHENTICATION:
|
|
324
|
-
params["auth"] = httpx.DigestAuth(username, password)
|
|
325
|
-
else:
|
|
326
|
-
params["auth"] = httpx.BasicAuth(username, password)
|
|
327
|
-
if verify_ssl is not None:
|
|
328
|
-
params["verify"] = verify_ssl
|
|
329
|
-
|
|
330
|
-
retry_num = 0
|
|
331
|
-
async with httpx.AsyncClient(
|
|
332
|
-
timeout=15, headers=headers, **params
|
|
333
|
-
) as client:
|
|
334
|
-
while retry_num < num_retries:
|
|
335
|
-
req = await client.get(url)
|
|
336
|
-
if req.status_code != 200:
|
|
337
|
-
_LOGGER.warning(
|
|
338
|
-
"Status code %s (retry #%s) loading %s",
|
|
339
|
-
req.status_code,
|
|
340
|
-
retry_num + 1,
|
|
341
|
-
url,
|
|
342
|
-
)
|
|
343
|
-
else:
|
|
344
|
-
data = io.BytesIO(req.content)
|
|
345
|
-
if data.read():
|
|
346
|
-
data.seek(0)
|
|
347
|
-
data.name = url
|
|
348
|
-
return data
|
|
349
|
-
_LOGGER.warning(
|
|
350
|
-
"Empty data (retry #%s) in %s)", retry_num + 1, url
|
|
351
|
-
)
|
|
352
|
-
retry_num += 1
|
|
353
|
-
if retry_num < num_retries:
|
|
354
|
-
await asyncio.sleep(
|
|
355
|
-
1
|
|
356
|
-
) # Add a sleep to allow other async operations to proceed
|
|
357
|
-
_LOGGER.warning(
|
|
358
|
-
"Can't load data in %s after %s retries", url, retry_num
|
|
359
|
-
)
|
|
360
|
-
elif filepath is not None:
|
|
361
|
-
if hass.config.is_allowed_path(filepath):
|
|
362
|
-
return await hass.async_add_executor_job(
|
|
363
|
-
_read_file_as_bytesio, filepath
|
|
364
|
-
)
|
|
365
|
-
|
|
366
|
-
_LOGGER.warning("'%s' are not secure to load data from!", filepath)
|
|
367
|
-
else:
|
|
368
|
-
_LOGGER.warning("Can't load data. No data found in params!")
|
|
369
|
-
|
|
370
|
-
except (OSError, TypeError) as error:
|
|
371
|
-
_LOGGER.error("Can't load data into ByteIO: %s", error)
|
|
372
|
-
|
|
373
|
-
return None
|
|
288
|
+
MODULES: dict[str, ModuleType] = {
|
|
289
|
+
PLATFORM_BROADCAST: broadcast,
|
|
290
|
+
PLATFORM_POLLING: polling,
|
|
291
|
+
PLATFORM_WEBHOOKS: webhooks,
|
|
292
|
+
}
|
|
374
293
|
|
|
375
294
|
|
|
376
295
|
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|
377
296
|
"""Set up the Telegram bot component."""
|
|
378
|
-
domain_config: list[dict[str, Any]] = config[DOMAIN]
|
|
379
297
|
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
hass, bot, p_config.get(CONF_ALLOWED_CHAT_IDS), p_config.get(ATTR_PARSER)
|
|
298
|
+
# import the last YAML config since existing behavior only works with the last config
|
|
299
|
+
domain_config: list[dict[str, Any]] | None = config.get(DOMAIN)
|
|
300
|
+
if domain_config:
|
|
301
|
+
trusted_networks: list[IPv4Network] = domain_config[-1].get(
|
|
302
|
+
CONF_TRUSTED_NETWORKS, []
|
|
303
|
+
)
|
|
304
|
+
trusted_networks_str: list[str] = (
|
|
305
|
+
[str(trusted_network) for trusted_network in trusted_networks]
|
|
306
|
+
if trusted_networks
|
|
307
|
+
else []
|
|
308
|
+
)
|
|
309
|
+
hass.async_create_task(
|
|
310
|
+
hass.config_entries.flow.async_init(
|
|
311
|
+
DOMAIN,
|
|
312
|
+
context={CONF_SOURCE: SOURCE_IMPORT},
|
|
313
|
+
data={
|
|
314
|
+
CONF_PLATFORM: domain_config[-1][CONF_PLATFORM],
|
|
315
|
+
CONF_API_KEY: domain_config[-1][CONF_API_KEY],
|
|
316
|
+
CONF_ALLOWED_CHAT_IDS: domain_config[-1][CONF_ALLOWED_CHAT_IDS],
|
|
317
|
+
ATTR_PARSER: domain_config[-1][ATTR_PARSER],
|
|
318
|
+
CONF_PROXY_URL: domain_config[-1].get(CONF_PROXY_URL),
|
|
319
|
+
CONF_URL: domain_config[-1].get(CONF_URL),
|
|
320
|
+
CONF_TRUSTED_NETWORKS: trusted_networks_str,
|
|
321
|
+
CONF_BOT_COUNT: len(domain_config),
|
|
322
|
+
},
|
|
323
|
+
)
|
|
407
324
|
)
|
|
408
325
|
|
|
409
326
|
async def async_send_telegram_message(service: ServiceCall) -> ServiceResponse:
|
|
@@ -413,6 +330,35 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|
|
413
330
|
kwargs = dict(service.data)
|
|
414
331
|
_LOGGER.debug("New telegram message %s: %s", msgtype, kwargs)
|
|
415
332
|
|
|
333
|
+
config_entry_id: str | None = service.data.get(CONF_CONFIG_ENTRY_ID)
|
|
334
|
+
config_entry: TelegramBotConfigEntry | None = None
|
|
335
|
+
if config_entry_id:
|
|
336
|
+
config_entry = hass.config_entries.async_get_known_entry(config_entry_id)
|
|
337
|
+
|
|
338
|
+
else:
|
|
339
|
+
config_entries: list[TelegramBotConfigEntry] = (
|
|
340
|
+
service.hass.config_entries.async_entries(DOMAIN)
|
|
341
|
+
)
|
|
342
|
+
|
|
343
|
+
if len(config_entries) == 1:
|
|
344
|
+
config_entry = config_entries[0]
|
|
345
|
+
|
|
346
|
+
if len(config_entries) > 1:
|
|
347
|
+
raise ServiceValidationError(
|
|
348
|
+
"Multiple config entries found. Please specify the Telegram bot to use.",
|
|
349
|
+
translation_domain=DOMAIN,
|
|
350
|
+
translation_key="multiple_config_entry",
|
|
351
|
+
)
|
|
352
|
+
|
|
353
|
+
if not config_entry or not hasattr(config_entry, "runtime_data"):
|
|
354
|
+
raise ServiceValidationError(
|
|
355
|
+
"No config entries found or setup failed. Please set up the Telegram Bot first.",
|
|
356
|
+
translation_domain=DOMAIN,
|
|
357
|
+
translation_key="missing_config_entry",
|
|
358
|
+
)
|
|
359
|
+
|
|
360
|
+
notify_service = config_entry.runtime_data
|
|
361
|
+
|
|
416
362
|
messages = None
|
|
417
363
|
if msgtype == SERVICE_SEND_MESSAGE:
|
|
418
364
|
messages = await notify_service.send_message(
|
|
@@ -444,17 +390,38 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|
|
444
390
|
)
|
|
445
391
|
elif msgtype == SERVICE_DELETE_MESSAGE:
|
|
446
392
|
await notify_service.delete_message(context=service.context, **kwargs)
|
|
393
|
+
elif msgtype == SERVICE_LEAVE_CHAT:
|
|
394
|
+
await notify_service.leave_chat(context=service.context, **kwargs)
|
|
395
|
+
elif msgtype == SERVICE_SET_MESSAGE_REACTION:
|
|
396
|
+
await notify_service.set_message_reaction(context=service.context, **kwargs)
|
|
447
397
|
else:
|
|
448
398
|
await notify_service.edit_message(
|
|
449
399
|
msgtype, context=service.context, **kwargs
|
|
450
400
|
)
|
|
451
401
|
|
|
452
|
-
if service.return_response and messages:
|
|
402
|
+
if service.return_response and messages is not None:
|
|
403
|
+
target: list[int] | None = service.data.get(ATTR_TARGET)
|
|
404
|
+
if not target:
|
|
405
|
+
target = notify_service.get_target_chat_ids(None)
|
|
406
|
+
|
|
407
|
+
failed_chat_ids = [chat_id for chat_id in target if chat_id not in messages]
|
|
408
|
+
if failed_chat_ids:
|
|
409
|
+
raise HomeAssistantError(
|
|
410
|
+
f"Failed targets: {failed_chat_ids}",
|
|
411
|
+
translation_domain=DOMAIN,
|
|
412
|
+
translation_key="failed_chat_ids",
|
|
413
|
+
translation_placeholders={
|
|
414
|
+
"chat_ids": ", ".join([str(i) for i in failed_chat_ids]),
|
|
415
|
+
"bot_name": config_entry.title,
|
|
416
|
+
},
|
|
417
|
+
)
|
|
418
|
+
|
|
453
419
|
return {
|
|
454
420
|
"chats": [
|
|
455
421
|
{"chat_id": cid, "message_id": mid} for cid, mid in messages.items()
|
|
456
422
|
]
|
|
457
423
|
}
|
|
424
|
+
|
|
458
425
|
return None
|
|
459
426
|
|
|
460
427
|
# Register notification services
|
|
@@ -485,710 +452,46 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|
|
485
452
|
return True
|
|
486
453
|
|
|
487
454
|
|
|
488
|
-
def
|
|
489
|
-
"""
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
# CONF_PROXY_PARAMS has been kept for backwards compatibility.
|
|
498
|
-
proxy_params = {}
|
|
499
|
-
elif "username" in proxy_params and "password" in proxy_params:
|
|
500
|
-
# Auth can actually be stuffed into the URL, but the docs have previously
|
|
501
|
-
# indicated to put them here.
|
|
502
|
-
auth = proxy_params.pop("username"), proxy_params.pop("password")
|
|
503
|
-
ir.create_issue(
|
|
504
|
-
hass,
|
|
505
|
-
DOMAIN,
|
|
506
|
-
"proxy_params_auth_deprecation",
|
|
507
|
-
breaks_in_ha_version="2024.10.0",
|
|
508
|
-
is_persistent=False,
|
|
509
|
-
is_fixable=False,
|
|
510
|
-
severity=ir.IssueSeverity.WARNING,
|
|
511
|
-
translation_placeholders={
|
|
512
|
-
"proxy_params": CONF_PROXY_PARAMS,
|
|
513
|
-
"proxy_url": CONF_PROXY_URL,
|
|
514
|
-
"telegram_bot": "Telegram bot",
|
|
515
|
-
},
|
|
516
|
-
translation_key="proxy_params_auth_deprecation",
|
|
517
|
-
learn_more_url="https://github.com/home-assistant/core/pull/112778",
|
|
518
|
-
)
|
|
519
|
-
else:
|
|
520
|
-
ir.create_issue(
|
|
521
|
-
hass,
|
|
522
|
-
DOMAIN,
|
|
523
|
-
"proxy_params_deprecation",
|
|
524
|
-
breaks_in_ha_version="2024.10.0",
|
|
525
|
-
is_persistent=False,
|
|
526
|
-
is_fixable=False,
|
|
527
|
-
severity=ir.IssueSeverity.WARNING,
|
|
528
|
-
translation_placeholders={
|
|
529
|
-
"proxy_params": CONF_PROXY_PARAMS,
|
|
530
|
-
"proxy_url": CONF_PROXY_URL,
|
|
531
|
-
"httpx": "httpx",
|
|
532
|
-
"telegram_bot": "Telegram bot",
|
|
533
|
-
},
|
|
534
|
-
translation_key="proxy_params_deprecation",
|
|
535
|
-
learn_more_url="https://github.com/home-assistant/core/pull/112778",
|
|
536
|
-
)
|
|
537
|
-
proxy = httpx.Proxy(proxy_url, auth=auth, **proxy_params)
|
|
538
|
-
request = HTTPXRequest(connection_pool_size=8, proxy=proxy)
|
|
539
|
-
else:
|
|
540
|
-
request = HTTPXRequest(connection_pool_size=8)
|
|
541
|
-
return Bot(token=api_key, request=request)
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
class TelegramNotificationService:
|
|
545
|
-
"""Implement the notification services for the Telegram Bot domain."""
|
|
546
|
-
|
|
547
|
-
def __init__(self, hass, bot, allowed_chat_ids, parser):
|
|
548
|
-
"""Initialize the service."""
|
|
549
|
-
self.allowed_chat_ids = allowed_chat_ids
|
|
550
|
-
self._default_user = self.allowed_chat_ids[0]
|
|
551
|
-
self._last_message_id = dict.fromkeys(self.allowed_chat_ids)
|
|
552
|
-
self._parsers = {
|
|
553
|
-
PARSER_HTML: ParseMode.HTML,
|
|
554
|
-
PARSER_MD: ParseMode.MARKDOWN,
|
|
555
|
-
PARSER_MD2: ParseMode.MARKDOWN_V2,
|
|
556
|
-
PARSER_PLAIN_TEXT: None,
|
|
557
|
-
}
|
|
558
|
-
self._parse_mode = self._parsers.get(parser)
|
|
559
|
-
self.bot = bot
|
|
560
|
-
self.hass = hass
|
|
561
|
-
|
|
562
|
-
def _get_msg_ids(self, msg_data, chat_id):
|
|
563
|
-
"""Get the message id to edit.
|
|
564
|
-
|
|
565
|
-
This can be one of (message_id, inline_message_id) from a msg dict,
|
|
566
|
-
returning a tuple.
|
|
567
|
-
**You can use 'last' as message_id** to edit
|
|
568
|
-
the message last sent in the chat_id.
|
|
569
|
-
"""
|
|
570
|
-
message_id = inline_message_id = None
|
|
571
|
-
if ATTR_MESSAGEID in msg_data:
|
|
572
|
-
message_id = msg_data[ATTR_MESSAGEID]
|
|
573
|
-
if (
|
|
574
|
-
isinstance(message_id, str)
|
|
575
|
-
and (message_id == "last")
|
|
576
|
-
and (self._last_message_id[chat_id] is not None)
|
|
577
|
-
):
|
|
578
|
-
message_id = self._last_message_id[chat_id]
|
|
579
|
-
else:
|
|
580
|
-
inline_message_id = msg_data["inline_message_id"]
|
|
581
|
-
return message_id, inline_message_id
|
|
582
|
-
|
|
583
|
-
def _get_target_chat_ids(self, target):
|
|
584
|
-
"""Validate chat_id targets or return default target (first).
|
|
585
|
-
|
|
586
|
-
:param target: optional list of integers ([12234, -12345])
|
|
587
|
-
:return list of chat_id targets (integers)
|
|
588
|
-
"""
|
|
589
|
-
if target is not None:
|
|
590
|
-
if isinstance(target, int):
|
|
591
|
-
target = [target]
|
|
592
|
-
chat_ids = [t for t in target if t in self.allowed_chat_ids]
|
|
593
|
-
if chat_ids:
|
|
594
|
-
return chat_ids
|
|
595
|
-
_LOGGER.warning(
|
|
596
|
-
"Disallowed targets: %s, using default: %s", target, self._default_user
|
|
597
|
-
)
|
|
598
|
-
return [self._default_user]
|
|
599
|
-
|
|
600
|
-
def _get_msg_kwargs(self, data):
|
|
601
|
-
"""Get parameters in message data kwargs."""
|
|
602
|
-
|
|
603
|
-
def _make_row_inline_keyboard(row_keyboard):
|
|
604
|
-
"""Make a list of InlineKeyboardButtons.
|
|
605
|
-
|
|
606
|
-
It can accept:
|
|
607
|
-
- a list of tuples like:
|
|
608
|
-
`[(text_b1, data_callback_b1),
|
|
609
|
-
(text_b2, data_callback_b2), ...]
|
|
610
|
-
- a string like: `/cmd1, /cmd2, /cmd3`
|
|
611
|
-
- or a string like: `text_b1:/cmd1, text_b2:/cmd2`
|
|
612
|
-
- also supports urls instead of callback commands
|
|
613
|
-
"""
|
|
614
|
-
buttons = []
|
|
615
|
-
if isinstance(row_keyboard, str):
|
|
616
|
-
for key in row_keyboard.split(","):
|
|
617
|
-
if ":/" in key:
|
|
618
|
-
# check if command or URL
|
|
619
|
-
if key.startswith("https://"):
|
|
620
|
-
label = key.split(",")[0]
|
|
621
|
-
url = key[len(label) + 1 :]
|
|
622
|
-
buttons.append(InlineKeyboardButton(label, url=url))
|
|
623
|
-
else:
|
|
624
|
-
# commands like: 'Label:/cmd' become ('Label', '/cmd')
|
|
625
|
-
label = key.split(":/")[0]
|
|
626
|
-
command = key[len(label) + 1 :]
|
|
627
|
-
buttons.append(
|
|
628
|
-
InlineKeyboardButton(label, callback_data=command)
|
|
629
|
-
)
|
|
630
|
-
else:
|
|
631
|
-
# commands like: '/cmd' become ('CMD', '/cmd')
|
|
632
|
-
label = key.strip()[1:].upper()
|
|
633
|
-
buttons.append(InlineKeyboardButton(label, callback_data=key))
|
|
634
|
-
elif isinstance(row_keyboard, list):
|
|
635
|
-
for entry in row_keyboard:
|
|
636
|
-
text_btn, data_btn = entry
|
|
637
|
-
if data_btn.startswith("https://"):
|
|
638
|
-
buttons.append(InlineKeyboardButton(text_btn, url=data_btn))
|
|
639
|
-
else:
|
|
640
|
-
buttons.append(
|
|
641
|
-
InlineKeyboardButton(text_btn, callback_data=data_btn)
|
|
642
|
-
)
|
|
643
|
-
else:
|
|
644
|
-
raise TypeError(str(row_keyboard))
|
|
645
|
-
return buttons
|
|
646
|
-
|
|
647
|
-
# Defaults
|
|
648
|
-
params = {
|
|
649
|
-
ATTR_PARSER: self._parse_mode,
|
|
650
|
-
ATTR_DISABLE_NOTIF: False,
|
|
651
|
-
ATTR_DISABLE_WEB_PREV: None,
|
|
652
|
-
ATTR_REPLY_TO_MSGID: None,
|
|
653
|
-
ATTR_REPLYMARKUP: None,
|
|
654
|
-
ATTR_TIMEOUT: None,
|
|
655
|
-
ATTR_MESSAGE_TAG: None,
|
|
656
|
-
ATTR_MESSAGE_THREAD_ID: None,
|
|
657
|
-
}
|
|
658
|
-
if data is not None:
|
|
659
|
-
if ATTR_PARSER in data:
|
|
660
|
-
params[ATTR_PARSER] = self._parsers.get(
|
|
661
|
-
data[ATTR_PARSER], self._parse_mode
|
|
662
|
-
)
|
|
663
|
-
if ATTR_TIMEOUT in data:
|
|
664
|
-
params[ATTR_TIMEOUT] = data[ATTR_TIMEOUT]
|
|
665
|
-
if ATTR_DISABLE_NOTIF in data:
|
|
666
|
-
params[ATTR_DISABLE_NOTIF] = data[ATTR_DISABLE_NOTIF]
|
|
667
|
-
if ATTR_DISABLE_WEB_PREV in data:
|
|
668
|
-
params[ATTR_DISABLE_WEB_PREV] = data[ATTR_DISABLE_WEB_PREV]
|
|
669
|
-
if ATTR_REPLY_TO_MSGID in data:
|
|
670
|
-
params[ATTR_REPLY_TO_MSGID] = data[ATTR_REPLY_TO_MSGID]
|
|
671
|
-
if ATTR_MESSAGE_TAG in data:
|
|
672
|
-
params[ATTR_MESSAGE_TAG] = data[ATTR_MESSAGE_TAG]
|
|
673
|
-
if ATTR_MESSAGE_THREAD_ID in data:
|
|
674
|
-
params[ATTR_MESSAGE_THREAD_ID] = data[ATTR_MESSAGE_THREAD_ID]
|
|
675
|
-
# Keyboards:
|
|
676
|
-
if ATTR_KEYBOARD in data:
|
|
677
|
-
keys = data.get(ATTR_KEYBOARD)
|
|
678
|
-
keys = keys if isinstance(keys, list) else [keys]
|
|
679
|
-
if keys:
|
|
680
|
-
params[ATTR_REPLYMARKUP] = ReplyKeyboardMarkup(
|
|
681
|
-
[[key.strip() for key in row.split(",")] for row in keys],
|
|
682
|
-
resize_keyboard=data.get(ATTR_RESIZE_KEYBOARD, False),
|
|
683
|
-
one_time_keyboard=data.get(ATTR_ONE_TIME_KEYBOARD, False),
|
|
684
|
-
)
|
|
685
|
-
else:
|
|
686
|
-
params[ATTR_REPLYMARKUP] = ReplyKeyboardRemove(True)
|
|
687
|
-
|
|
688
|
-
elif ATTR_KEYBOARD_INLINE in data:
|
|
689
|
-
keys = data.get(ATTR_KEYBOARD_INLINE)
|
|
690
|
-
keys = keys if isinstance(keys, list) else [keys]
|
|
691
|
-
params[ATTR_REPLYMARKUP] = InlineKeyboardMarkup(
|
|
692
|
-
[_make_row_inline_keyboard(row) for row in keys]
|
|
693
|
-
)
|
|
694
|
-
return params
|
|
695
|
-
|
|
696
|
-
async def _send_msg(
|
|
697
|
-
self, func_send, msg_error, message_tag, *args_msg, context=None, **kwargs_msg
|
|
698
|
-
):
|
|
699
|
-
"""Send one message."""
|
|
700
|
-
try:
|
|
701
|
-
out = await func_send(*args_msg, **kwargs_msg)
|
|
702
|
-
if not isinstance(out, bool) and hasattr(out, ATTR_MESSAGEID):
|
|
703
|
-
chat_id = out.chat_id
|
|
704
|
-
message_id = out[ATTR_MESSAGEID]
|
|
705
|
-
self._last_message_id[chat_id] = message_id
|
|
706
|
-
_LOGGER.debug(
|
|
707
|
-
"Last message ID: %s (from chat_id %s)",
|
|
708
|
-
self._last_message_id,
|
|
709
|
-
chat_id,
|
|
710
|
-
)
|
|
711
|
-
|
|
712
|
-
event_data = {
|
|
713
|
-
ATTR_CHAT_ID: chat_id,
|
|
714
|
-
ATTR_MESSAGEID: message_id,
|
|
715
|
-
}
|
|
716
|
-
if message_tag is not None:
|
|
717
|
-
event_data[ATTR_MESSAGE_TAG] = message_tag
|
|
718
|
-
if kwargs_msg.get(ATTR_MESSAGE_THREAD_ID) is not None:
|
|
719
|
-
event_data[ATTR_MESSAGE_THREAD_ID] = kwargs_msg[
|
|
720
|
-
ATTR_MESSAGE_THREAD_ID
|
|
721
|
-
]
|
|
722
|
-
self.hass.bus.async_fire(
|
|
723
|
-
EVENT_TELEGRAM_SENT, event_data, context=context
|
|
724
|
-
)
|
|
725
|
-
elif not isinstance(out, bool):
|
|
726
|
-
_LOGGER.warning(
|
|
727
|
-
"Update last message: out_type:%s, out=%s", type(out), out
|
|
728
|
-
)
|
|
729
|
-
except TelegramError as exc:
|
|
730
|
-
_LOGGER.error(
|
|
731
|
-
"%s: %s. Args: %s, kwargs: %s", msg_error, exc, args_msg, kwargs_msg
|
|
732
|
-
)
|
|
733
|
-
return None
|
|
734
|
-
return out
|
|
735
|
-
|
|
736
|
-
async def send_message(self, message="", target=None, context=None, **kwargs):
|
|
737
|
-
"""Send a message to one or multiple pre-allowed chat IDs."""
|
|
738
|
-
title = kwargs.get(ATTR_TITLE)
|
|
739
|
-
text = f"{title}\n{message}" if title else message
|
|
740
|
-
params = self._get_msg_kwargs(kwargs)
|
|
741
|
-
msg_ids = {}
|
|
742
|
-
for chat_id in self._get_target_chat_ids(target):
|
|
743
|
-
_LOGGER.debug("Send message in chat ID %s with params: %s", chat_id, params)
|
|
744
|
-
msg = await self._send_msg(
|
|
745
|
-
self.bot.send_message,
|
|
746
|
-
"Error sending message",
|
|
747
|
-
params[ATTR_MESSAGE_TAG],
|
|
748
|
-
chat_id,
|
|
749
|
-
text,
|
|
750
|
-
parse_mode=params[ATTR_PARSER],
|
|
751
|
-
disable_web_page_preview=params[ATTR_DISABLE_WEB_PREV],
|
|
752
|
-
disable_notification=params[ATTR_DISABLE_NOTIF],
|
|
753
|
-
reply_to_message_id=params[ATTR_REPLY_TO_MSGID],
|
|
754
|
-
reply_markup=params[ATTR_REPLYMARKUP],
|
|
755
|
-
read_timeout=params[ATTR_TIMEOUT],
|
|
756
|
-
message_thread_id=params[ATTR_MESSAGE_THREAD_ID],
|
|
757
|
-
context=context,
|
|
758
|
-
)
|
|
759
|
-
if msg is not None:
|
|
760
|
-
msg_ids[chat_id] = msg.id
|
|
761
|
-
return msg_ids
|
|
762
|
-
|
|
763
|
-
async def delete_message(self, chat_id=None, context=None, **kwargs):
|
|
764
|
-
"""Delete a previously sent message."""
|
|
765
|
-
chat_id = self._get_target_chat_ids(chat_id)[0]
|
|
766
|
-
message_id, _ = self._get_msg_ids(kwargs, chat_id)
|
|
767
|
-
_LOGGER.debug("Delete message %s in chat ID %s", message_id, chat_id)
|
|
768
|
-
deleted = await self._send_msg(
|
|
769
|
-
self.bot.delete_message,
|
|
770
|
-
"Error deleting message",
|
|
771
|
-
None,
|
|
772
|
-
chat_id,
|
|
773
|
-
message_id,
|
|
774
|
-
context=context,
|
|
775
|
-
)
|
|
776
|
-
# reduce message_id anyway:
|
|
777
|
-
if self._last_message_id[chat_id] is not None:
|
|
778
|
-
# change last msg_id for deque(n_msgs)?
|
|
779
|
-
self._last_message_id[chat_id] -= 1
|
|
780
|
-
return deleted
|
|
781
|
-
|
|
782
|
-
async def edit_message(self, type_edit, chat_id=None, context=None, **kwargs):
|
|
783
|
-
"""Edit a previously sent message."""
|
|
784
|
-
chat_id = self._get_target_chat_ids(chat_id)[0]
|
|
785
|
-
message_id, inline_message_id = self._get_msg_ids(kwargs, chat_id)
|
|
786
|
-
params = self._get_msg_kwargs(kwargs)
|
|
787
|
-
_LOGGER.debug(
|
|
788
|
-
"Edit message %s in chat ID %s with params: %s",
|
|
789
|
-
message_id or inline_message_id,
|
|
790
|
-
chat_id,
|
|
791
|
-
params,
|
|
792
|
-
)
|
|
793
|
-
if type_edit == SERVICE_EDIT_MESSAGE:
|
|
794
|
-
message = kwargs.get(ATTR_MESSAGE)
|
|
795
|
-
title = kwargs.get(ATTR_TITLE)
|
|
796
|
-
text = f"{title}\n{message}" if title else message
|
|
797
|
-
_LOGGER.debug("Editing message with ID %s", message_id or inline_message_id)
|
|
798
|
-
return await self._send_msg(
|
|
799
|
-
self.bot.edit_message_text,
|
|
800
|
-
"Error editing text message",
|
|
801
|
-
params[ATTR_MESSAGE_TAG],
|
|
802
|
-
text,
|
|
803
|
-
chat_id=chat_id,
|
|
804
|
-
message_id=message_id,
|
|
805
|
-
inline_message_id=inline_message_id,
|
|
806
|
-
parse_mode=params[ATTR_PARSER],
|
|
807
|
-
disable_web_page_preview=params[ATTR_DISABLE_WEB_PREV],
|
|
808
|
-
reply_markup=params[ATTR_REPLYMARKUP],
|
|
809
|
-
read_timeout=params[ATTR_TIMEOUT],
|
|
810
|
-
context=context,
|
|
811
|
-
)
|
|
812
|
-
if type_edit == SERVICE_EDIT_CAPTION:
|
|
813
|
-
return await self._send_msg(
|
|
814
|
-
self.bot.edit_message_caption,
|
|
815
|
-
"Error editing message attributes",
|
|
816
|
-
params[ATTR_MESSAGE_TAG],
|
|
817
|
-
chat_id=chat_id,
|
|
818
|
-
message_id=message_id,
|
|
819
|
-
inline_message_id=inline_message_id,
|
|
820
|
-
caption=kwargs.get(ATTR_CAPTION),
|
|
821
|
-
reply_markup=params[ATTR_REPLYMARKUP],
|
|
822
|
-
read_timeout=params[ATTR_TIMEOUT],
|
|
823
|
-
parse_mode=params[ATTR_PARSER],
|
|
824
|
-
context=context,
|
|
825
|
-
)
|
|
826
|
-
|
|
827
|
-
return await self._send_msg(
|
|
828
|
-
self.bot.edit_message_reply_markup,
|
|
829
|
-
"Error editing message attributes",
|
|
830
|
-
params[ATTR_MESSAGE_TAG],
|
|
831
|
-
chat_id=chat_id,
|
|
832
|
-
message_id=message_id,
|
|
833
|
-
inline_message_id=inline_message_id,
|
|
834
|
-
reply_markup=params[ATTR_REPLYMARKUP],
|
|
835
|
-
read_timeout=params[ATTR_TIMEOUT],
|
|
836
|
-
context=context,
|
|
837
|
-
)
|
|
838
|
-
|
|
839
|
-
async def answer_callback_query(
|
|
840
|
-
self, message, callback_query_id, show_alert=False, context=None, **kwargs
|
|
841
|
-
):
|
|
842
|
-
"""Answer a callback originated with a press in an inline keyboard."""
|
|
843
|
-
params = self._get_msg_kwargs(kwargs)
|
|
844
|
-
_LOGGER.debug(
|
|
845
|
-
"Answer callback query with callback ID %s: %s, alert: %s",
|
|
846
|
-
callback_query_id,
|
|
847
|
-
message,
|
|
848
|
-
show_alert,
|
|
849
|
-
)
|
|
850
|
-
await self._send_msg(
|
|
851
|
-
self.bot.answer_callback_query,
|
|
852
|
-
"Error sending answer callback query",
|
|
853
|
-
params[ATTR_MESSAGE_TAG],
|
|
854
|
-
callback_query_id,
|
|
855
|
-
text=message,
|
|
856
|
-
show_alert=show_alert,
|
|
857
|
-
read_timeout=params[ATTR_TIMEOUT],
|
|
858
|
-
context=context,
|
|
859
|
-
)
|
|
860
|
-
|
|
861
|
-
async def send_file(
|
|
862
|
-
self, file_type=SERVICE_SEND_PHOTO, target=None, context=None, **kwargs
|
|
863
|
-
):
|
|
864
|
-
"""Send a photo, sticker, video, or document."""
|
|
865
|
-
params = self._get_msg_kwargs(kwargs)
|
|
866
|
-
file_content = await load_data(
|
|
867
|
-
self.hass,
|
|
868
|
-
url=kwargs.get(ATTR_URL),
|
|
869
|
-
filepath=kwargs.get(ATTR_FILE),
|
|
870
|
-
username=kwargs.get(ATTR_USERNAME),
|
|
871
|
-
password=kwargs.get(ATTR_PASSWORD),
|
|
872
|
-
authentication=kwargs.get(ATTR_AUTHENTICATION),
|
|
873
|
-
verify_ssl=(
|
|
874
|
-
get_default_context()
|
|
875
|
-
if kwargs.get(ATTR_VERIFY_SSL, False)
|
|
876
|
-
else get_default_no_verify_context()
|
|
877
|
-
),
|
|
878
|
-
)
|
|
879
|
-
|
|
880
|
-
msg_ids = {}
|
|
881
|
-
if file_content:
|
|
882
|
-
for chat_id in self._get_target_chat_ids(target):
|
|
883
|
-
_LOGGER.debug("Sending file to chat ID %s", chat_id)
|
|
884
|
-
|
|
885
|
-
if file_type == SERVICE_SEND_PHOTO:
|
|
886
|
-
msg = await self._send_msg(
|
|
887
|
-
self.bot.send_photo,
|
|
888
|
-
"Error sending photo",
|
|
889
|
-
params[ATTR_MESSAGE_TAG],
|
|
890
|
-
chat_id=chat_id,
|
|
891
|
-
photo=file_content,
|
|
892
|
-
caption=kwargs.get(ATTR_CAPTION),
|
|
893
|
-
disable_notification=params[ATTR_DISABLE_NOTIF],
|
|
894
|
-
reply_to_message_id=params[ATTR_REPLY_TO_MSGID],
|
|
895
|
-
reply_markup=params[ATTR_REPLYMARKUP],
|
|
896
|
-
read_timeout=params[ATTR_TIMEOUT],
|
|
897
|
-
parse_mode=params[ATTR_PARSER],
|
|
898
|
-
message_thread_id=params[ATTR_MESSAGE_THREAD_ID],
|
|
899
|
-
context=context,
|
|
900
|
-
)
|
|
901
|
-
|
|
902
|
-
elif file_type == SERVICE_SEND_STICKER:
|
|
903
|
-
msg = await self._send_msg(
|
|
904
|
-
self.bot.send_sticker,
|
|
905
|
-
"Error sending sticker",
|
|
906
|
-
params[ATTR_MESSAGE_TAG],
|
|
907
|
-
chat_id=chat_id,
|
|
908
|
-
sticker=file_content,
|
|
909
|
-
disable_notification=params[ATTR_DISABLE_NOTIF],
|
|
910
|
-
reply_to_message_id=params[ATTR_REPLY_TO_MSGID],
|
|
911
|
-
reply_markup=params[ATTR_REPLYMARKUP],
|
|
912
|
-
read_timeout=params[ATTR_TIMEOUT],
|
|
913
|
-
message_thread_id=params[ATTR_MESSAGE_THREAD_ID],
|
|
914
|
-
context=context,
|
|
915
|
-
)
|
|
916
|
-
|
|
917
|
-
elif file_type == SERVICE_SEND_VIDEO:
|
|
918
|
-
msg = await self._send_msg(
|
|
919
|
-
self.bot.send_video,
|
|
920
|
-
"Error sending video",
|
|
921
|
-
params[ATTR_MESSAGE_TAG],
|
|
922
|
-
chat_id=chat_id,
|
|
923
|
-
video=file_content,
|
|
924
|
-
caption=kwargs.get(ATTR_CAPTION),
|
|
925
|
-
disable_notification=params[ATTR_DISABLE_NOTIF],
|
|
926
|
-
reply_to_message_id=params[ATTR_REPLY_TO_MSGID],
|
|
927
|
-
reply_markup=params[ATTR_REPLYMARKUP],
|
|
928
|
-
read_timeout=params[ATTR_TIMEOUT],
|
|
929
|
-
parse_mode=params[ATTR_PARSER],
|
|
930
|
-
message_thread_id=params[ATTR_MESSAGE_THREAD_ID],
|
|
931
|
-
context=context,
|
|
932
|
-
)
|
|
933
|
-
elif file_type == SERVICE_SEND_DOCUMENT:
|
|
934
|
-
msg = await self._send_msg(
|
|
935
|
-
self.bot.send_document,
|
|
936
|
-
"Error sending document",
|
|
937
|
-
params[ATTR_MESSAGE_TAG],
|
|
938
|
-
chat_id=chat_id,
|
|
939
|
-
document=file_content,
|
|
940
|
-
caption=kwargs.get(ATTR_CAPTION),
|
|
941
|
-
disable_notification=params[ATTR_DISABLE_NOTIF],
|
|
942
|
-
reply_to_message_id=params[ATTR_REPLY_TO_MSGID],
|
|
943
|
-
reply_markup=params[ATTR_REPLYMARKUP],
|
|
944
|
-
read_timeout=params[ATTR_TIMEOUT],
|
|
945
|
-
parse_mode=params[ATTR_PARSER],
|
|
946
|
-
message_thread_id=params[ATTR_MESSAGE_THREAD_ID],
|
|
947
|
-
context=context,
|
|
948
|
-
)
|
|
949
|
-
elif file_type == SERVICE_SEND_VOICE:
|
|
950
|
-
msg = await self._send_msg(
|
|
951
|
-
self.bot.send_voice,
|
|
952
|
-
"Error sending voice",
|
|
953
|
-
params[ATTR_MESSAGE_TAG],
|
|
954
|
-
chat_id=chat_id,
|
|
955
|
-
voice=file_content,
|
|
956
|
-
caption=kwargs.get(ATTR_CAPTION),
|
|
957
|
-
disable_notification=params[ATTR_DISABLE_NOTIF],
|
|
958
|
-
reply_to_message_id=params[ATTR_REPLY_TO_MSGID],
|
|
959
|
-
reply_markup=params[ATTR_REPLYMARKUP],
|
|
960
|
-
read_timeout=params[ATTR_TIMEOUT],
|
|
961
|
-
message_thread_id=params[ATTR_MESSAGE_THREAD_ID],
|
|
962
|
-
context=context,
|
|
963
|
-
)
|
|
964
|
-
elif file_type == SERVICE_SEND_ANIMATION:
|
|
965
|
-
msg = await self._send_msg(
|
|
966
|
-
self.bot.send_animation,
|
|
967
|
-
"Error sending animation",
|
|
968
|
-
params[ATTR_MESSAGE_TAG],
|
|
969
|
-
chat_id=chat_id,
|
|
970
|
-
animation=file_content,
|
|
971
|
-
caption=kwargs.get(ATTR_CAPTION),
|
|
972
|
-
disable_notification=params[ATTR_DISABLE_NOTIF],
|
|
973
|
-
reply_to_message_id=params[ATTR_REPLY_TO_MSGID],
|
|
974
|
-
reply_markup=params[ATTR_REPLYMARKUP],
|
|
975
|
-
read_timeout=params[ATTR_TIMEOUT],
|
|
976
|
-
parse_mode=params[ATTR_PARSER],
|
|
977
|
-
message_thread_id=params[ATTR_MESSAGE_THREAD_ID],
|
|
978
|
-
context=context,
|
|
979
|
-
)
|
|
980
|
-
|
|
981
|
-
msg_ids[chat_id] = msg.id
|
|
982
|
-
file_content.seek(0)
|
|
983
|
-
else:
|
|
984
|
-
_LOGGER.error("Can't send file with kwargs: %s", kwargs)
|
|
985
|
-
|
|
986
|
-
return msg_ids
|
|
987
|
-
|
|
988
|
-
async def send_sticker(self, target=None, context=None, **kwargs) -> dict:
|
|
989
|
-
"""Send a sticker from a telegram sticker pack."""
|
|
990
|
-
params = self._get_msg_kwargs(kwargs)
|
|
991
|
-
stickerid = kwargs.get(ATTR_STICKER_ID)
|
|
992
|
-
|
|
993
|
-
msg_ids = {}
|
|
994
|
-
if stickerid:
|
|
995
|
-
for chat_id in self._get_target_chat_ids(target):
|
|
996
|
-
msg = await self._send_msg(
|
|
997
|
-
self.bot.send_sticker,
|
|
998
|
-
"Error sending sticker",
|
|
999
|
-
params[ATTR_MESSAGE_TAG],
|
|
1000
|
-
chat_id=chat_id,
|
|
1001
|
-
sticker=stickerid,
|
|
1002
|
-
disable_notification=params[ATTR_DISABLE_NOTIF],
|
|
1003
|
-
reply_to_message_id=params[ATTR_REPLY_TO_MSGID],
|
|
1004
|
-
reply_markup=params[ATTR_REPLYMARKUP],
|
|
1005
|
-
read_timeout=params[ATTR_TIMEOUT],
|
|
1006
|
-
message_thread_id=params[ATTR_MESSAGE_THREAD_ID],
|
|
1007
|
-
context=context,
|
|
1008
|
-
)
|
|
1009
|
-
msg_ids[chat_id] = msg.id
|
|
1010
|
-
return msg_ids
|
|
1011
|
-
return await self.send_file(SERVICE_SEND_STICKER, target, **kwargs)
|
|
1012
|
-
|
|
1013
|
-
async def send_location(
|
|
1014
|
-
self, latitude, longitude, target=None, context=None, **kwargs
|
|
1015
|
-
):
|
|
1016
|
-
"""Send a location."""
|
|
1017
|
-
latitude = float(latitude)
|
|
1018
|
-
longitude = float(longitude)
|
|
1019
|
-
params = self._get_msg_kwargs(kwargs)
|
|
1020
|
-
msg_ids = {}
|
|
1021
|
-
for chat_id in self._get_target_chat_ids(target):
|
|
1022
|
-
_LOGGER.debug(
|
|
1023
|
-
"Send location %s/%s to chat ID %s", latitude, longitude, chat_id
|
|
1024
|
-
)
|
|
1025
|
-
msg = await self._send_msg(
|
|
1026
|
-
self.bot.send_location,
|
|
1027
|
-
"Error sending location",
|
|
1028
|
-
params[ATTR_MESSAGE_TAG],
|
|
1029
|
-
chat_id=chat_id,
|
|
1030
|
-
latitude=latitude,
|
|
1031
|
-
longitude=longitude,
|
|
1032
|
-
disable_notification=params[ATTR_DISABLE_NOTIF],
|
|
1033
|
-
reply_to_message_id=params[ATTR_REPLY_TO_MSGID],
|
|
1034
|
-
read_timeout=params[ATTR_TIMEOUT],
|
|
1035
|
-
message_thread_id=params[ATTR_MESSAGE_THREAD_ID],
|
|
1036
|
-
context=context,
|
|
1037
|
-
)
|
|
1038
|
-
msg_ids[chat_id] = msg.id
|
|
1039
|
-
return msg_ids
|
|
1040
|
-
|
|
1041
|
-
async def send_poll(
|
|
1042
|
-
self,
|
|
1043
|
-
question,
|
|
1044
|
-
options,
|
|
1045
|
-
is_anonymous,
|
|
1046
|
-
allows_multiple_answers,
|
|
1047
|
-
target=None,
|
|
1048
|
-
context=None,
|
|
1049
|
-
**kwargs,
|
|
1050
|
-
):
|
|
1051
|
-
"""Send a poll."""
|
|
1052
|
-
params = self._get_msg_kwargs(kwargs)
|
|
1053
|
-
openperiod = kwargs.get(ATTR_OPEN_PERIOD)
|
|
1054
|
-
msg_ids = {}
|
|
1055
|
-
for chat_id in self._get_target_chat_ids(target):
|
|
1056
|
-
_LOGGER.debug("Send poll '%s' to chat ID %s", question, chat_id)
|
|
1057
|
-
msg = await self._send_msg(
|
|
1058
|
-
self.bot.send_poll,
|
|
1059
|
-
"Error sending poll",
|
|
1060
|
-
params[ATTR_MESSAGE_TAG],
|
|
1061
|
-
chat_id=chat_id,
|
|
1062
|
-
question=question,
|
|
1063
|
-
options=options,
|
|
1064
|
-
is_anonymous=is_anonymous,
|
|
1065
|
-
allows_multiple_answers=allows_multiple_answers,
|
|
1066
|
-
open_period=openperiod,
|
|
1067
|
-
disable_notification=params[ATTR_DISABLE_NOTIF],
|
|
1068
|
-
reply_to_message_id=params[ATTR_REPLY_TO_MSGID],
|
|
1069
|
-
read_timeout=params[ATTR_TIMEOUT],
|
|
1070
|
-
message_thread_id=params[ATTR_MESSAGE_THREAD_ID],
|
|
1071
|
-
context=context,
|
|
1072
|
-
)
|
|
1073
|
-
msg_ids[chat_id] = msg.id
|
|
1074
|
-
return msg_ids
|
|
1075
|
-
|
|
1076
|
-
async def leave_chat(self, chat_id=None, context=None):
|
|
1077
|
-
"""Remove bot from chat."""
|
|
1078
|
-
chat_id = self._get_target_chat_ids(chat_id)[0]
|
|
1079
|
-
_LOGGER.debug("Leave from chat ID %s", chat_id)
|
|
1080
|
-
return await self._send_msg(
|
|
1081
|
-
self.bot.leave_chat, "Error leaving chat", None, chat_id, context=context
|
|
1082
|
-
)
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
class BaseTelegramBotEntity:
|
|
1086
|
-
"""The base class for the telegram bot."""
|
|
1087
|
-
|
|
1088
|
-
def __init__(self, hass, config):
|
|
1089
|
-
"""Initialize the bot base class."""
|
|
1090
|
-
self.allowed_chat_ids = config[CONF_ALLOWED_CHAT_IDS]
|
|
1091
|
-
self.hass = hass
|
|
1092
|
-
|
|
1093
|
-
async def handle_update(self, update: Update, context: CallbackContext) -> bool:
|
|
1094
|
-
"""Handle updates from bot application set up by the respective platform."""
|
|
1095
|
-
_LOGGER.debug("Handling update %s", update)
|
|
1096
|
-
if not self.authorize_update(update):
|
|
1097
|
-
return False
|
|
1098
|
-
|
|
1099
|
-
# establish event type: text, command or callback_query
|
|
1100
|
-
if update.callback_query:
|
|
1101
|
-
# NOTE: Check for callback query first since effective message will be populated with the message
|
|
1102
|
-
# in .callback_query (python-telegram-bot docs are wrong)
|
|
1103
|
-
event_type, event_data = self._get_callback_query_event_data(
|
|
1104
|
-
update.callback_query
|
|
1105
|
-
)
|
|
1106
|
-
elif update.effective_message:
|
|
1107
|
-
event_type, event_data = self._get_message_event_data(
|
|
1108
|
-
update.effective_message
|
|
1109
|
-
)
|
|
1110
|
-
else:
|
|
1111
|
-
_LOGGER.warning("Unhandled update: %s", update)
|
|
1112
|
-
return True
|
|
1113
|
-
|
|
1114
|
-
event_context = Context()
|
|
1115
|
-
|
|
1116
|
-
_LOGGER.debug("Firing event %s: %s", event_type, event_data)
|
|
1117
|
-
self.hass.bus.async_fire(event_type, event_data, context=event_context)
|
|
1118
|
-
return True
|
|
1119
|
-
|
|
1120
|
-
@staticmethod
|
|
1121
|
-
def _get_command_event_data(command_text: str | None) -> dict[str, str | list]:
|
|
1122
|
-
if not command_text or not command_text.startswith("/"):
|
|
1123
|
-
return {}
|
|
1124
|
-
command_parts = command_text.split()
|
|
1125
|
-
command = command_parts[0]
|
|
1126
|
-
args = command_parts[1:]
|
|
1127
|
-
return {ATTR_COMMAND: command, ATTR_ARGS: args}
|
|
455
|
+
async def async_setup_entry(hass: HomeAssistant, entry: TelegramBotConfigEntry) -> bool:
|
|
456
|
+
"""Create the Telegram bot from config entry."""
|
|
457
|
+
bot: Bot = await hass.async_add_executor_job(initialize_bot, hass, entry.data)
|
|
458
|
+
try:
|
|
459
|
+
await bot.get_me()
|
|
460
|
+
except InvalidToken as err:
|
|
461
|
+
raise ConfigEntryAuthFailed("Invalid API token for Telegram Bot.") from err
|
|
462
|
+
except TelegramError as err:
|
|
463
|
+
raise ConfigEntryNotReady from err
|
|
1128
464
|
|
|
1129
|
-
|
|
1130
|
-
event_data: dict[str, Any] = {
|
|
1131
|
-
ATTR_MSGID: message.message_id,
|
|
1132
|
-
ATTR_CHAT_ID: message.chat.id,
|
|
1133
|
-
ATTR_DATE: message.date,
|
|
1134
|
-
ATTR_MESSAGE_THREAD_ID: message.message_thread_id,
|
|
1135
|
-
}
|
|
1136
|
-
if filters.COMMAND.filter(message):
|
|
1137
|
-
# This is a command message - set event type to command and split data into command and args
|
|
1138
|
-
event_type = EVENT_TELEGRAM_COMMAND
|
|
1139
|
-
event_data.update(self._get_command_event_data(message.text))
|
|
1140
|
-
else:
|
|
1141
|
-
event_type = EVENT_TELEGRAM_TEXT
|
|
1142
|
-
event_data[ATTR_TEXT] = message.text
|
|
465
|
+
p_type: str = entry.data[CONF_PLATFORM]
|
|
1143
466
|
|
|
1144
|
-
|
|
1145
|
-
|
|
467
|
+
_LOGGER.debug("Setting up %s.%s", DOMAIN, p_type)
|
|
468
|
+
try:
|
|
469
|
+
receiver_service = await MODULES[p_type].async_setup_platform(hass, bot, entry)
|
|
470
|
+
except Exception:
|
|
471
|
+
_LOGGER.exception("Error setting up Telegram bot %s", p_type)
|
|
472
|
+
await bot.shutdown()
|
|
473
|
+
return False
|
|
1146
474
|
|
|
1147
|
-
|
|
475
|
+
notify_service = TelegramNotificationService(
|
|
476
|
+
hass, receiver_service, bot, entry, entry.options[ATTR_PARSER]
|
|
477
|
+
)
|
|
478
|
+
entry.runtime_data = notify_service
|
|
1148
479
|
|
|
1149
|
-
|
|
1150
|
-
return {
|
|
1151
|
-
ATTR_USER_ID: user.id,
|
|
1152
|
-
ATTR_FROM_FIRST: user.first_name,
|
|
1153
|
-
ATTR_FROM_LAST: user.last_name,
|
|
1154
|
-
}
|
|
480
|
+
entry.async_on_unload(entry.add_update_listener(update_listener))
|
|
1155
481
|
|
|
1156
|
-
|
|
1157
|
-
self, callback_query: CallbackQuery
|
|
1158
|
-
) -> tuple[str, dict[str, Any]]:
|
|
1159
|
-
event_type = EVENT_TELEGRAM_CALLBACK
|
|
1160
|
-
event_data: dict[str, Any] = {
|
|
1161
|
-
ATTR_MSGID: callback_query.id,
|
|
1162
|
-
ATTR_CHAT_INSTANCE: callback_query.chat_instance,
|
|
1163
|
-
ATTR_DATA: callback_query.data,
|
|
1164
|
-
ATTR_MSG: None,
|
|
1165
|
-
ATTR_CHAT_ID: None,
|
|
1166
|
-
}
|
|
1167
|
-
if callback_query.message:
|
|
1168
|
-
event_data[ATTR_MSG] = callback_query.message.to_dict()
|
|
1169
|
-
event_data[ATTR_CHAT_ID] = callback_query.message.chat.id
|
|
482
|
+
return True
|
|
1170
483
|
|
|
1171
|
-
if callback_query.from_user:
|
|
1172
|
-
event_data.update(self._get_user_event_data(callback_query.from_user))
|
|
1173
484
|
|
|
1174
|
-
|
|
1175
|
-
|
|
485
|
+
async def update_listener(hass: HomeAssistant, entry: TelegramBotConfigEntry) -> None:
|
|
486
|
+
"""Handle options update."""
|
|
487
|
+
entry.runtime_data.parse_mode = entry.options[ATTR_PARSER]
|
|
1176
488
|
|
|
1177
|
-
return event_type, event_data
|
|
1178
489
|
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
"Unauthorized update - neither user id %s nor chat id %s is in allowed"
|
|
1188
|
-
" chats: %s"
|
|
1189
|
-
),
|
|
1190
|
-
from_user,
|
|
1191
|
-
from_chat,
|
|
1192
|
-
self.allowed_chat_ids,
|
|
1193
|
-
)
|
|
1194
|
-
return False
|
|
490
|
+
async def async_unload_entry(
|
|
491
|
+
hass: HomeAssistant, entry: TelegramBotConfigEntry
|
|
492
|
+
) -> bool:
|
|
493
|
+
"""Unload Telegram app."""
|
|
494
|
+
# broadcast platform has no app
|
|
495
|
+
if entry.runtime_data.app:
|
|
496
|
+
await entry.runtime_data.app.shutdown()
|
|
497
|
+
return True
|