homeassistant 2025.6.3__py3-none-any.whl → 2025.7.0b1__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.
Files changed (2867) hide show
  1. homeassistant/__main__.py +4 -8
  2. homeassistant/auth/mfa_modules/notify.py +4 -4
  3. homeassistant/auth/mfa_modules/totp.py +5 -5
  4. homeassistant/bootstrap.py +16 -9
  5. homeassistant/brands/sony.json +7 -1
  6. homeassistant/brands/tilt.json +5 -0
  7. homeassistant/components/abode/__init__.py +3 -73
  8. homeassistant/components/abode/services.py +90 -0
  9. homeassistant/components/adax/__init__.py +1 -1
  10. homeassistant/components/adax/coordinator.py +24 -1
  11. homeassistant/components/adax/sensor.py +77 -0
  12. homeassistant/components/aemet/sensor.py +4 -1
  13. homeassistant/components/agent_dvr/camera.py +2 -2
  14. homeassistant/components/ai_task/__init__.py +134 -0
  15. homeassistant/components/ai_task/const.py +34 -0
  16. homeassistant/components/ai_task/entity.py +103 -0
  17. homeassistant/components/ai_task/http.py +54 -0
  18. homeassistant/components/ai_task/icons.json +7 -0
  19. homeassistant/components/ai_task/manifest.json +9 -0
  20. homeassistant/components/ai_task/services.yaml +19 -0
  21. homeassistant/components/ai_task/strings.json +22 -0
  22. homeassistant/components/ai_task/task.py +75 -0
  23. homeassistant/components/ai_task/translations/bg.json +1 -0
  24. homeassistant/components/ai_task/translations/cs.json +22 -0
  25. homeassistant/components/ai_task/translations/de.json +22 -0
  26. homeassistant/components/ai_task/translations/el.json +22 -0
  27. homeassistant/components/ai_task/translations/en.json +22 -0
  28. homeassistant/components/ai_task/translations/es.json +22 -0
  29. homeassistant/components/ai_task/translations/et.json +22 -0
  30. homeassistant/components/ai_task/translations/fr.json +1 -0
  31. homeassistant/components/ai_task/translations/ga.json +1 -0
  32. homeassistant/components/ai_task/translations/lt.json +22 -0
  33. homeassistant/components/ai_task/translations/nl.json +1 -0
  34. homeassistant/components/ai_task/translations/pt.json +22 -0
  35. homeassistant/components/ai_task/translations/ru.json +22 -0
  36. homeassistant/components/ai_task/translations/sk.json +22 -0
  37. homeassistant/components/ai_task/translations/sv.json +19 -0
  38. homeassistant/components/ai_task/translations/tr.json +1 -0
  39. homeassistant/components/ai_task/translations/zh-Hans.json +22 -0
  40. homeassistant/components/ai_task/translations/zh-Hant.json +22 -0
  41. homeassistant/components/airly/config_flow.py +3 -3
  42. homeassistant/components/airnow/coordinator.py +1 -1
  43. homeassistant/components/airnow/manifest.json +1 -1
  44. homeassistant/components/airq/coordinator.py +2 -2
  45. homeassistant/components/airq/manifest.json +1 -1
  46. homeassistant/components/airthings/__init__.py +6 -20
  47. homeassistant/components/airthings/coordinator.py +36 -0
  48. homeassistant/components/airthings/sensor.py +26 -3
  49. homeassistant/components/airthings/translations/mk.json +11 -0
  50. homeassistant/components/airtouch5/manifest.json +1 -1
  51. homeassistant/components/alexa_devices/__init__.py +6 -2
  52. homeassistant/components/alexa_devices/binary_sensor.py +45 -4
  53. homeassistant/components/alexa_devices/icons.json +32 -2
  54. homeassistant/components/alexa_devices/manifest.json +1 -1
  55. homeassistant/components/alexa_devices/notify.py +2 -0
  56. homeassistant/components/alexa_devices/quality_scale.yaml +1 -1
  57. homeassistant/components/alexa_devices/sensor.py +88 -0
  58. homeassistant/components/alexa_devices/strings.json +26 -4
  59. homeassistant/components/alexa_devices/switch.py +2 -0
  60. homeassistant/components/alexa_devices/translations/bg.json +6 -4
  61. homeassistant/components/alexa_devices/translations/cs.json +15 -4
  62. homeassistant/components/alexa_devices/translations/de.json +21 -7
  63. homeassistant/components/alexa_devices/translations/el.json +19 -5
  64. homeassistant/components/alexa_devices/translations/en.json +27 -5
  65. homeassistant/components/alexa_devices/translations/es.json +15 -4
  66. homeassistant/components/alexa_devices/translations/et.json +19 -5
  67. homeassistant/components/alexa_devices/translations/ga.json +0 -6
  68. homeassistant/components/alexa_devices/translations/he.json +0 -4
  69. homeassistant/components/alexa_devices/translations/hu.json +0 -4
  70. homeassistant/components/alexa_devices/translations/id.json +1 -0
  71. homeassistant/components/alexa_devices/translations/lt.json +0 -4
  72. homeassistant/components/alexa_devices/translations/mk.json +12 -0
  73. homeassistant/components/alexa_devices/translations/nl.json +0 -4
  74. homeassistant/components/alexa_devices/translations/pl.json +0 -4
  75. homeassistant/components/alexa_devices/translations/pt.json +15 -4
  76. homeassistant/components/alexa_devices/translations/ru.json +4 -5
  77. homeassistant/components/alexa_devices/translations/sk.json +19 -5
  78. homeassistant/components/alexa_devices/translations/sv.json +17 -5
  79. homeassistant/components/alexa_devices/translations/tr.json +0 -4
  80. homeassistant/components/alexa_devices/translations/zh-Hans.json +15 -4
  81. homeassistant/components/alexa_devices/translations/zh-Hant.json +19 -5
  82. homeassistant/components/alexa_devices/utils.py +40 -0
  83. homeassistant/components/altruist/__init__.py +27 -0
  84. homeassistant/components/altruist/config_flow.py +107 -0
  85. homeassistant/components/altruist/const.py +5 -0
  86. homeassistant/components/altruist/coordinator.py +64 -0
  87. homeassistant/components/altruist/icons.json +15 -0
  88. homeassistant/components/altruist/manifest.json +12 -0
  89. homeassistant/components/altruist/quality_scale.yaml +83 -0
  90. homeassistant/components/altruist/sensor.py +249 -0
  91. homeassistant/components/altruist/strings.json +51 -0
  92. homeassistant/components/altruist/translations/bg.json +41 -0
  93. homeassistant/components/altruist/translations/cs.json +51 -0
  94. homeassistant/components/altruist/translations/de.json +51 -0
  95. homeassistant/components/altruist/translations/el.json +51 -0
  96. homeassistant/components/altruist/translations/en.json +51 -0
  97. homeassistant/components/altruist/translations/es.json +51 -0
  98. homeassistant/components/altruist/translations/et.json +51 -0
  99. homeassistant/components/altruist/translations/id.json +11 -0
  100. homeassistant/components/altruist/translations/lt.json +51 -0
  101. homeassistant/components/altruist/translations/nl.json +19 -0
  102. homeassistant/components/altruist/translations/pt.json +51 -0
  103. homeassistant/components/altruist/translations/sk.json +51 -0
  104. homeassistant/components/altruist/translations/sv.json +47 -0
  105. homeassistant/components/altruist/translations/zh-Hans.json +51 -0
  106. homeassistant/components/altruist/translations/zh-Hant.json +51 -0
  107. homeassistant/components/amcrest/__init__.py +4 -50
  108. homeassistant/components/amcrest/services.py +62 -0
  109. homeassistant/components/analytics/analytics.py +13 -2
  110. homeassistant/components/android_ip_webcam/camera.py +16 -0
  111. homeassistant/components/anthropic/__init__.py +92 -4
  112. homeassistant/components/anthropic/config_flow.py +107 -53
  113. homeassistant/components/anthropic/const.py +2 -0
  114. homeassistant/components/anthropic/conversation.py +41 -25
  115. homeassistant/components/anthropic/strings.json +34 -18
  116. homeassistant/components/anthropic/translations/bg.json +17 -8
  117. homeassistant/components/anthropic/translations/ca.json +0 -14
  118. homeassistant/components/anthropic/translations/cs.json +33 -18
  119. homeassistant/components/anthropic/translations/de.json +33 -18
  120. homeassistant/components/anthropic/translations/el.json +33 -13
  121. homeassistant/components/anthropic/translations/en-GB.json +0 -22
  122. homeassistant/components/anthropic/translations/en.json +33 -18
  123. homeassistant/components/anthropic/translations/es.json +33 -18
  124. homeassistant/components/anthropic/translations/et.json +33 -18
  125. homeassistant/components/anthropic/translations/fi.json +1 -11
  126. homeassistant/components/anthropic/translations/fr.json +0 -22
  127. homeassistant/components/anthropic/translations/ga.json +26 -11
  128. homeassistant/components/anthropic/translations/gl.json +0 -17
  129. homeassistant/components/anthropic/translations/he.json +0 -13
  130. homeassistant/components/anthropic/translations/hu.json +0 -22
  131. homeassistant/components/anthropic/translations/id.json +15 -6
  132. homeassistant/components/anthropic/translations/it.json +0 -12
  133. homeassistant/components/anthropic/translations/ja.json +0 -17
  134. homeassistant/components/anthropic/translations/ko.json +0 -13
  135. homeassistant/components/anthropic/translations/lt.json +33 -18
  136. homeassistant/components/anthropic/translations/nl.json +15 -11
  137. homeassistant/components/anthropic/translations/pl.json +0 -10
  138. homeassistant/components/anthropic/translations/pt-BR.json +1 -11
  139. homeassistant/components/anthropic/translations/pt.json +33 -18
  140. homeassistant/components/anthropic/translations/ru.json +26 -18
  141. homeassistant/components/anthropic/translations/sk.json +33 -18
  142. homeassistant/components/anthropic/translations/sl.json +0 -12
  143. homeassistant/components/anthropic/translations/sv.json +20 -18
  144. homeassistant/components/anthropic/translations/tr.json +0 -22
  145. homeassistant/components/anthropic/translations/vi.json +1 -14
  146. homeassistant/components/anthropic/translations/zh-Hans.json +33 -18
  147. homeassistant/components/anthropic/translations/zh-Hant.json +33 -18
  148. homeassistant/components/apcupsd/sensor.py +45 -0
  149. homeassistant/components/api/__init__.py +20 -3
  150. homeassistant/components/assist_pipeline/pipeline.py +10 -0
  151. homeassistant/components/assist_satellite/__init__.py +95 -1
  152. homeassistant/components/assist_satellite/entity.py +159 -1
  153. homeassistant/components/assist_satellite/icons.json +3 -0
  154. homeassistant/components/assist_satellite/manifest.json +2 -1
  155. homeassistant/components/assist_satellite/services.yaml +46 -0
  156. homeassistant/components/assist_satellite/strings.json +38 -0
  157. homeassistant/components/assist_satellite/translations/bg.json +15 -0
  158. homeassistant/components/assist_satellite/translations/cs.json +38 -0
  159. homeassistant/components/assist_satellite/translations/de.json +38 -0
  160. homeassistant/components/assist_satellite/translations/el.json +38 -0
  161. homeassistant/components/assist_satellite/translations/en.json +38 -0
  162. homeassistant/components/assist_satellite/translations/es.json +38 -0
  163. homeassistant/components/assist_satellite/translations/et.json +38 -0
  164. homeassistant/components/assist_satellite/translations/fr.json +30 -0
  165. homeassistant/components/assist_satellite/translations/ga.json +30 -0
  166. homeassistant/components/assist_satellite/translations/lt.json +38 -0
  167. homeassistant/components/assist_satellite/translations/mk.json +22 -1
  168. homeassistant/components/assist_satellite/translations/pt.json +38 -0
  169. homeassistant/components/assist_satellite/translations/ru.json +38 -0
  170. homeassistant/components/assist_satellite/translations/sk.json +38 -0
  171. homeassistant/components/assist_satellite/translations/sv.json +27 -0
  172. homeassistant/components/assist_satellite/translations/zh-Hans.json +38 -0
  173. homeassistant/components/assist_satellite/translations/zh-Hant.json +38 -0
  174. homeassistant/components/atag/water_heater.py +2 -0
  175. homeassistant/components/august/translations/mk.json +12 -0
  176. homeassistant/components/aurora/translations/sv.json +2 -2
  177. homeassistant/components/automation/helpers.py +2 -3
  178. homeassistant/components/axis/hub/hub.py +2 -2
  179. homeassistant/components/backup/__init__.py +4 -2
  180. homeassistant/components/blink/__init__.py +2 -2
  181. homeassistant/components/blink/services.py +27 -25
  182. homeassistant/components/bosch_alarm/manifest.json +1 -1
  183. homeassistant/components/bosch_alarm/quality_scale.yaml +20 -17
  184. homeassistant/components/bryant_evolution/translations/el.json +1 -1
  185. homeassistant/components/bsblan/manifest.json +1 -1
  186. homeassistant/components/buienradar/sensor.py +0 -1
  187. homeassistant/components/cambridge_audio/translations/sv.json +1 -1
  188. homeassistant/components/camera/__init__.py +8 -20
  189. homeassistant/components/camera/manifest.json +1 -1
  190. homeassistant/components/camera/webrtc.py +9 -0
  191. homeassistant/components/climate/__init__.py +0 -26
  192. homeassistant/components/climate/strings.json +3 -0
  193. homeassistant/components/climate/translations/bg.json +3 -0
  194. homeassistant/components/climate/translations/cs.json +3 -0
  195. homeassistant/components/climate/translations/de.json +3 -0
  196. homeassistant/components/climate/translations/el.json +3 -0
  197. homeassistant/components/climate/translations/en.json +3 -0
  198. homeassistant/components/climate/translations/es.json +3 -0
  199. homeassistant/components/climate/translations/et.json +3 -0
  200. homeassistant/components/climate/translations/fr.json +3 -0
  201. homeassistant/components/climate/translations/ga.json +7 -1
  202. homeassistant/components/climate/translations/he.json +3 -0
  203. homeassistant/components/climate/translations/id.json +3 -0
  204. homeassistant/components/climate/translations/lt.json +3 -0
  205. homeassistant/components/climate/translations/pt.json +3 -0
  206. homeassistant/components/climate/translations/ru.json +3 -0
  207. homeassistant/components/climate/translations/sk.json +3 -0
  208. homeassistant/components/climate/translations/sv.json +3 -0
  209. homeassistant/components/climate/translations/tr.json +3 -0
  210. homeassistant/components/climate/translations/zh-Hans.json +3 -0
  211. homeassistant/components/climate/translations/zh-Hant.json +3 -0
  212. homeassistant/components/cloud/manifest.json +1 -1
  213. homeassistant/components/cloudflare/__init__.py +24 -13
  214. homeassistant/components/command_line/notify.py +4 -23
  215. homeassistant/components/command_line/sensor.py +3 -30
  216. homeassistant/components/command_line/utils.py +39 -8
  217. homeassistant/components/compensation/manifest.json +1 -1
  218. homeassistant/components/control4/__init__.py +2 -2
  219. homeassistant/components/conversation/__init__.py +1 -1
  220. homeassistant/components/conversation/chat_log.py +30 -19
  221. homeassistant/components/conversation/manifest.json +1 -1
  222. homeassistant/components/conversation/models.py +13 -1
  223. homeassistant/components/cover/__init__.py +0 -4
  224. homeassistant/components/deconz/climate.py +0 -2
  225. homeassistant/components/deconz/logbook.py +3 -3
  226. homeassistant/components/demo/translations/select.sv.json +2 -2
  227. homeassistant/components/derivative/config_flow.py +4 -0
  228. homeassistant/components/derivative/const.py +1 -0
  229. homeassistant/components/derivative/manifest.json +1 -1
  230. homeassistant/components/derivative/sensor.py +105 -22
  231. homeassistant/components/derivative/strings.json +4 -0
  232. homeassistant/components/derivative/translations/cs.json +4 -0
  233. homeassistant/components/derivative/translations/de.json +4 -0
  234. homeassistant/components/derivative/translations/el.json +4 -0
  235. homeassistant/components/derivative/translations/en.json +4 -0
  236. homeassistant/components/derivative/translations/es.json +4 -0
  237. homeassistant/components/derivative/translations/et.json +4 -0
  238. homeassistant/components/derivative/translations/ga.json +20 -0
  239. homeassistant/components/derivative/translations/lt.json +4 -0
  240. homeassistant/components/derivative/translations/pt.json +4 -0
  241. homeassistant/components/derivative/translations/ru.json +4 -0
  242. homeassistant/components/derivative/translations/sk.json +4 -0
  243. homeassistant/components/derivative/translations/sv.json +4 -0
  244. homeassistant/components/derivative/translations/zh-Hans.json +4 -0
  245. homeassistant/components/derivative/translations/zh-Hant.json +4 -0
  246. homeassistant/components/device_automation/condition.py +52 -19
  247. homeassistant/components/devolo_home_control/__init__.py +28 -16
  248. homeassistant/components/devolo_home_control/climate.py +1 -1
  249. homeassistant/components/devolo_home_control/const.py +0 -3
  250. homeassistant/components/devolo_home_control/cover.py +1 -1
  251. homeassistant/components/devolo_home_control/entity.py +21 -0
  252. homeassistant/components/devolo_home_control/light.py +1 -1
  253. homeassistant/components/devolo_home_control/siren.py +1 -1
  254. homeassistant/components/devolo_home_control/strings.json +21 -0
  255. homeassistant/components/devolo_home_control/translations/bg.json +6 -0
  256. homeassistant/components/devolo_home_control/translations/cs.json +21 -0
  257. homeassistant/components/devolo_home_control/translations/de.json +21 -0
  258. homeassistant/components/devolo_home_control/translations/el.json +17 -0
  259. homeassistant/components/devolo_home_control/translations/en.json +21 -0
  260. homeassistant/components/devolo_home_control/translations/es.json +21 -0
  261. homeassistant/components/devolo_home_control/translations/et.json +21 -0
  262. homeassistant/components/devolo_home_control/translations/ga.json +13 -1
  263. homeassistant/components/devolo_home_control/translations/id.json +5 -0
  264. homeassistant/components/devolo_home_control/translations/lt.json +11 -0
  265. homeassistant/components/devolo_home_control/translations/pt.json +21 -0
  266. homeassistant/components/devolo_home_control/translations/sk.json +21 -0
  267. homeassistant/components/devolo_home_control/translations/sv.json +10 -0
  268. homeassistant/components/devolo_home_control/translations/tr.json +11 -0
  269. homeassistant/components/devolo_home_control/translations/zh-Hans.json +21 -0
  270. homeassistant/components/devolo_home_control/translations/zh-Hant.json +21 -0
  271. homeassistant/components/devolo_home_network/device_tracker.py +2 -0
  272. homeassistant/components/discord/manifest.json +1 -1
  273. homeassistant/components/dlink/manifest.json +1 -1
  274. homeassistant/components/dnsip/sensor.py +4 -3
  275. homeassistant/components/dormakaba_dkey/manifest.json +1 -1
  276. homeassistant/components/downloader/__init__.py +2 -2
  277. homeassistant/components/downloader/services.py +4 -4
  278. homeassistant/components/ecovacs/binary_sensor.py +4 -5
  279. homeassistant/components/ecovacs/entity.py +8 -12
  280. homeassistant/components/ecovacs/number.py +3 -5
  281. homeassistant/components/ecovacs/select.py +5 -5
  282. homeassistant/components/ecovacs/sensor.py +2 -4
  283. homeassistant/components/ecovacs/translations/sv.json +1 -1
  284. homeassistant/components/edl21/manifest.json +1 -1
  285. homeassistant/components/eheimdigital/number.py +13 -13
  286. homeassistant/components/eheimdigital/select.py +12 -12
  287. homeassistant/components/eheimdigital/sensor.py +11 -11
  288. homeassistant/components/eheimdigital/time.py +10 -12
  289. homeassistant/components/electric_kiwi/strings.json +7 -1
  290. homeassistant/components/electric_kiwi/translations/cs.json +6 -0
  291. homeassistant/components/electric_kiwi/translations/de.json +6 -0
  292. homeassistant/components/electric_kiwi/translations/el.json +6 -0
  293. homeassistant/components/electric_kiwi/translations/en-GB.json +6 -0
  294. homeassistant/components/electric_kiwi/translations/en.json +6 -0
  295. homeassistant/components/electric_kiwi/translations/es.json +6 -0
  296. homeassistant/components/electric_kiwi/translations/et.json +6 -0
  297. homeassistant/components/electric_kiwi/translations/fr.json +6 -0
  298. homeassistant/components/electric_kiwi/translations/ga.json +14 -1
  299. homeassistant/components/electric_kiwi/translations/he.json +6 -0
  300. homeassistant/components/electric_kiwi/translations/id.json +6 -0
  301. homeassistant/components/electric_kiwi/translations/lt.json +6 -0
  302. homeassistant/components/electric_kiwi/translations/mk.json +14 -1
  303. homeassistant/components/electric_kiwi/translations/pt.json +6 -0
  304. homeassistant/components/electric_kiwi/translations/ru.json +6 -0
  305. homeassistant/components/electric_kiwi/translations/sk.json +6 -0
  306. homeassistant/components/electric_kiwi/translations/sv.json +6 -0
  307. homeassistant/components/electric_kiwi/translations/tr.json +6 -0
  308. homeassistant/components/electric_kiwi/translations/zh-Hans.json +6 -0
  309. homeassistant/components/electric_kiwi/translations/zh-Hant.json +6 -0
  310. homeassistant/components/elkm1/__init__.py +5 -65
  311. homeassistant/components/elkm1/services.py +78 -0
  312. homeassistant/components/enphase_envoy/__init__.py +5 -22
  313. homeassistant/components/enphase_envoy/config_flow.py +2 -2
  314. homeassistant/components/enphase_envoy/diagnostics.py +6 -4
  315. homeassistant/components/enphase_envoy/entity.py +2 -2
  316. homeassistant/components/enphase_envoy/manifest.json +1 -1
  317. homeassistant/components/enphase_envoy/sensor.py +109 -0
  318. homeassistant/components/enphase_envoy/strings.json +28 -1
  319. homeassistant/components/enphase_envoy/translations/bg.json +6 -0
  320. homeassistant/components/enphase_envoy/translations/cs.json +27 -0
  321. homeassistant/components/enphase_envoy/translations/de.json +27 -0
  322. homeassistant/components/enphase_envoy/translations/el.json +27 -0
  323. homeassistant/components/enphase_envoy/translations/en.json +27 -0
  324. homeassistant/components/enphase_envoy/translations/es.json +27 -0
  325. homeassistant/components/enphase_envoy/translations/et.json +27 -0
  326. homeassistant/components/enphase_envoy/translations/lt.json +30 -0
  327. homeassistant/components/enphase_envoy/translations/pt.json +27 -0
  328. homeassistant/components/enphase_envoy/translations/sk.json +30 -0
  329. homeassistant/components/enphase_envoy/translations/sv.json +20 -2
  330. homeassistant/components/enphase_envoy/translations/zh-Hans.json +27 -0
  331. homeassistant/components/enphase_envoy/translations/zh-Hant.json +27 -0
  332. homeassistant/components/eq3btsmart/__init__.py +1 -7
  333. homeassistant/components/eq3btsmart/binary_sensor.py +0 -4
  334. homeassistant/components/eq3btsmart/climate.py +27 -46
  335. homeassistant/components/eq3btsmart/const.py +10 -9
  336. homeassistant/components/eq3btsmart/entity.py +38 -5
  337. homeassistant/components/eq3btsmart/manifest.json +1 -1
  338. homeassistant/components/eq3btsmart/number.py +18 -24
  339. homeassistant/components/eq3btsmart/schemas.py +2 -2
  340. homeassistant/components/eq3btsmart/sensor.py +1 -7
  341. homeassistant/components/eq3btsmart/switch.py +24 -8
  342. homeassistant/components/eq3btsmart/translations/nl.json +12 -0
  343. homeassistant/components/esphome/assist_satellite.py +12 -1
  344. homeassistant/components/esphome/dashboard.py +1 -3
  345. homeassistant/components/esphome/entity.py +89 -14
  346. homeassistant/components/esphome/entry_data.py +22 -2
  347. homeassistant/components/esphome/manager.py +63 -3
  348. homeassistant/components/esphome/manifest.json +1 -1
  349. homeassistant/components/esphome/translations/sv.json +2 -2
  350. homeassistant/components/evohome/water_heater.py +5 -3
  351. homeassistant/components/ezviz/select.py +104 -24
  352. homeassistant/components/ezviz/strings.json +10 -0
  353. homeassistant/components/ezviz/translations/bg.json +6 -0
  354. homeassistant/components/ezviz/translations/cs.json +10 -0
  355. homeassistant/components/ezviz/translations/de.json +10 -0
  356. homeassistant/components/ezviz/translations/el.json +10 -0
  357. homeassistant/components/ezviz/translations/en.json +10 -0
  358. homeassistant/components/ezviz/translations/es.json +10 -0
  359. homeassistant/components/ezviz/translations/et.json +10 -0
  360. homeassistant/components/ezviz/translations/mk.json +13 -0
  361. homeassistant/components/ezviz/translations/pt.json +10 -0
  362. homeassistant/components/ezviz/translations/sk.json +10 -0
  363. homeassistant/components/ezviz/translations/sv.json +10 -0
  364. homeassistant/components/ezviz/translations/zh-Hans.json +10 -0
  365. homeassistant/components/ezviz/translations/zh-Hant.json +10 -0
  366. homeassistant/components/ffmpeg/__init__.py +10 -41
  367. homeassistant/components/ffmpeg/const.py +9 -0
  368. homeassistant/components/ffmpeg/services.py +52 -0
  369. homeassistant/components/fibaro/cover.py +77 -32
  370. homeassistant/components/fibaro/light.py +2 -2
  371. homeassistant/components/fitbit/strings.json +7 -1
  372. homeassistant/components/fitbit/translations/cs.json +6 -0
  373. homeassistant/components/fitbit/translations/de.json +6 -0
  374. homeassistant/components/fitbit/translations/el.json +9 -0
  375. homeassistant/components/fitbit/translations/en-GB.json +6 -0
  376. homeassistant/components/fitbit/translations/en.json +6 -0
  377. homeassistant/components/fitbit/translations/es.json +6 -0
  378. homeassistant/components/fitbit/translations/et.json +6 -0
  379. homeassistant/components/fitbit/translations/fr.json +6 -0
  380. homeassistant/components/fitbit/translations/ga.json +14 -1
  381. homeassistant/components/fitbit/translations/he.json +6 -0
  382. homeassistant/components/fitbit/translations/id.json +6 -0
  383. homeassistant/components/fitbit/translations/lt.json +6 -0
  384. homeassistant/components/fitbit/translations/mk.json +14 -1
  385. homeassistant/components/fitbit/translations/pt.json +6 -0
  386. homeassistant/components/fitbit/translations/ru.json +6 -0
  387. homeassistant/components/fitbit/translations/sk.json +6 -0
  388. homeassistant/components/fitbit/translations/sv.json +6 -0
  389. homeassistant/components/fitbit/translations/tr.json +6 -0
  390. homeassistant/components/fitbit/translations/zh-Hans.json +6 -0
  391. homeassistant/components/fitbit/translations/zh-Hant.json +6 -0
  392. homeassistant/components/flick_electric/translations/mk.json +9 -0
  393. homeassistant/components/flume/translations/nl.json +13 -0
  394. homeassistant/components/foscam/__init__.py +1 -1
  395. homeassistant/components/foscam/config_flow.py +2 -2
  396. homeassistant/components/foscam/coordinator.py +1 -1
  397. homeassistant/components/foscam/manifest.json +2 -2
  398. homeassistant/components/freedompro/climate.py +0 -2
  399. homeassistant/components/fritz/__init__.py +1 -1
  400. homeassistant/components/fritz/binary_sensor.py +2 -1
  401. homeassistant/components/fritz/button.py +3 -8
  402. homeassistant/components/fritz/coordinator.py +16 -207
  403. homeassistant/components/fritz/device_tracker.py +3 -8
  404. homeassistant/components/fritz/entity.py +2 -1
  405. homeassistant/components/fritz/helpers.py +39 -0
  406. homeassistant/components/fritz/models.py +182 -0
  407. homeassistant/components/fritz/sensor.py +2 -1
  408. homeassistant/components/fritz/services.py +3 -2
  409. homeassistant/components/fritz/switch.py +3 -9
  410. homeassistant/components/fritzbox/translations/mk.json +9 -0
  411. homeassistant/components/fronius/translations/sv.json +1 -1
  412. homeassistant/components/frontend/__init__.py +1 -2
  413. homeassistant/components/frontend/manifest.json +1 -1
  414. homeassistant/components/fully_kiosk/__init__.py +1 -1
  415. homeassistant/components/fully_kiosk/services.py +65 -63
  416. homeassistant/components/geocaching/strings.json +7 -1
  417. homeassistant/components/geocaching/translations/cs.json +6 -0
  418. homeassistant/components/geocaching/translations/de.json +6 -0
  419. homeassistant/components/geocaching/translations/el.json +6 -0
  420. homeassistant/components/geocaching/translations/en-GB.json +6 -0
  421. homeassistant/components/geocaching/translations/en.json +6 -0
  422. homeassistant/components/geocaching/translations/es.json +6 -0
  423. homeassistant/components/geocaching/translations/et.json +6 -0
  424. homeassistant/components/geocaching/translations/fr.json +6 -0
  425. homeassistant/components/geocaching/translations/ga.json +14 -1
  426. homeassistant/components/geocaching/translations/he.json +6 -0
  427. homeassistant/components/geocaching/translations/id.json +6 -0
  428. homeassistant/components/geocaching/translations/lt.json +6 -0
  429. homeassistant/components/geocaching/translations/mk.json +14 -1
  430. homeassistant/components/geocaching/translations/pt.json +6 -0
  431. homeassistant/components/geocaching/translations/ru.json +6 -0
  432. homeassistant/components/geocaching/translations/sk.json +6 -0
  433. homeassistant/components/geocaching/translations/sv.json +6 -0
  434. homeassistant/components/geocaching/translations/tr.json +6 -0
  435. homeassistant/components/geocaching/translations/zh-Hans.json +6 -0
  436. homeassistant/components/geocaching/translations/zh-Hant.json +6 -0
  437. homeassistant/components/go2rtc/__init__.py +73 -32
  438. homeassistant/components/goalzero/sensor.py +1 -0
  439. homeassistant/components/goodwe/translations/sv.json +5 -5
  440. homeassistant/components/google/__init__.py +3 -138
  441. homeassistant/components/google/strings.json +7 -1
  442. homeassistant/components/google/translations/cs.json +6 -0
  443. homeassistant/components/google/translations/de.json +6 -0
  444. homeassistant/components/google/translations/el.json +6 -0
  445. homeassistant/components/google/translations/en-GB.json +6 -0
  446. homeassistant/components/google/translations/en.json +6 -0
  447. homeassistant/components/google/translations/es.json +6 -0
  448. homeassistant/components/google/translations/et.json +6 -0
  449. homeassistant/components/google/translations/fr.json +6 -0
  450. homeassistant/components/google/translations/ga.json +10 -0
  451. homeassistant/components/google/translations/he.json +6 -0
  452. homeassistant/components/google/translations/id.json +6 -0
  453. homeassistant/components/google/translations/lt.json +6 -0
  454. homeassistant/components/google/translations/mk.json +14 -1
  455. homeassistant/components/google/translations/pt.json +6 -0
  456. homeassistant/components/google/translations/ru.json +6 -0
  457. homeassistant/components/google/translations/sk.json +6 -0
  458. homeassistant/components/google/translations/sv.json +6 -0
  459. homeassistant/components/google/translations/tr.json +6 -0
  460. homeassistant/components/google/translations/zh-Hans.json +6 -0
  461. homeassistant/components/google/translations/zh-Hant.json +6 -0
  462. homeassistant/components/google_assistant/helpers.py +5 -6
  463. homeassistant/components/google_assistant_sdk/__init__.py +4 -54
  464. homeassistant/components/google_assistant_sdk/services.py +63 -0
  465. homeassistant/components/google_assistant_sdk/strings.json +7 -1
  466. homeassistant/components/google_assistant_sdk/translations/cs.json +6 -0
  467. homeassistant/components/google_assistant_sdk/translations/de.json +6 -0
  468. homeassistant/components/google_assistant_sdk/translations/el.json +6 -0
  469. homeassistant/components/google_assistant_sdk/translations/en-GB.json +6 -0
  470. homeassistant/components/google_assistant_sdk/translations/en.json +6 -0
  471. homeassistant/components/google_assistant_sdk/translations/es.json +6 -0
  472. homeassistant/components/google_assistant_sdk/translations/et.json +6 -0
  473. homeassistant/components/google_assistant_sdk/translations/fr.json +6 -0
  474. homeassistant/components/google_assistant_sdk/translations/ga.json +12 -0
  475. homeassistant/components/google_assistant_sdk/translations/he.json +6 -0
  476. homeassistant/components/google_assistant_sdk/translations/id.json +6 -0
  477. homeassistant/components/google_assistant_sdk/translations/lt.json +6 -0
  478. homeassistant/components/google_assistant_sdk/translations/mk.json +14 -1
  479. homeassistant/components/google_assistant_sdk/translations/pt.json +6 -0
  480. homeassistant/components/google_assistant_sdk/translations/ru.json +6 -0
  481. homeassistant/components/google_assistant_sdk/translations/sk.json +6 -0
  482. homeassistant/components/google_assistant_sdk/translations/sv.json +6 -0
  483. homeassistant/components/google_assistant_sdk/translations/tr.json +6 -0
  484. homeassistant/components/google_assistant_sdk/translations/zh-Hans.json +6 -0
  485. homeassistant/components/google_assistant_sdk/translations/zh-Hant.json +6 -0
  486. homeassistant/components/google_drive/strings.json +7 -1
  487. homeassistant/components/google_drive/translations/cs.json +6 -0
  488. homeassistant/components/google_drive/translations/de.json +6 -0
  489. homeassistant/components/google_drive/translations/el.json +6 -0
  490. homeassistant/components/google_drive/translations/en-GB.json +6 -0
  491. homeassistant/components/google_drive/translations/en.json +6 -0
  492. homeassistant/components/google_drive/translations/es.json +6 -0
  493. homeassistant/components/google_drive/translations/et.json +6 -0
  494. homeassistant/components/google_drive/translations/fr.json +6 -0
  495. homeassistant/components/google_drive/translations/ga.json +8 -0
  496. homeassistant/components/google_drive/translations/he.json +6 -0
  497. homeassistant/components/google_drive/translations/id.json +6 -0
  498. homeassistant/components/google_drive/translations/lt.json +6 -0
  499. homeassistant/components/google_drive/translations/mk.json +14 -1
  500. homeassistant/components/google_drive/translations/pt.json +6 -0
  501. homeassistant/components/google_drive/translations/ru.json +6 -0
  502. homeassistant/components/google_drive/translations/sk.json +6 -0
  503. homeassistant/components/google_drive/translations/sv.json +6 -0
  504. homeassistant/components/google_drive/translations/tr.json +6 -0
  505. homeassistant/components/google_drive/translations/zh-Hans.json +6 -0
  506. homeassistant/components/google_drive/translations/zh-Hant.json +6 -0
  507. homeassistant/components/google_generative_ai_conversation/__init__.py +93 -5
  508. homeassistant/components/google_generative_ai_conversation/config_flow.py +152 -62
  509. homeassistant/components/google_generative_ai_conversation/const.py +18 -1
  510. homeassistant/components/google_generative_ai_conversation/conversation.py +22 -461
  511. homeassistant/components/google_generative_ai_conversation/diagnostics.py +1 -0
  512. homeassistant/components/google_generative_ai_conversation/entity.py +482 -0
  513. homeassistant/components/google_generative_ai_conversation/helpers.py +73 -0
  514. homeassistant/components/google_generative_ai_conversation/strings.json +65 -24
  515. homeassistant/components/google_generative_ai_conversation/translations/bg.json +34 -9
  516. homeassistant/components/google_generative_ai_conversation/translations/ca.json +0 -14
  517. homeassistant/components/google_generative_ai_conversation/translations/cs.json +41 -28
  518. homeassistant/components/google_generative_ai_conversation/translations/de.json +69 -28
  519. homeassistant/components/google_generative_ai_conversation/translations/el.json +69 -28
  520. homeassistant/components/google_generative_ai_conversation/translations/en-GB.json +0 -28
  521. homeassistant/components/google_generative_ai_conversation/translations/en.json +69 -28
  522. homeassistant/components/google_generative_ai_conversation/translations/es.json +69 -28
  523. homeassistant/components/google_generative_ai_conversation/translations/et.json +69 -28
  524. homeassistant/components/google_generative_ai_conversation/translations/fi.json +0 -13
  525. homeassistant/components/google_generative_ai_conversation/translations/fr.json +0 -25
  526. homeassistant/components/google_generative_ai_conversation/translations/fy.json +0 -11
  527. homeassistant/components/google_generative_ai_conversation/translations/ga.json +9 -9
  528. homeassistant/components/google_generative_ai_conversation/translations/he.json +0 -24
  529. homeassistant/components/google_generative_ai_conversation/translations/hu.json +0 -28
  530. homeassistant/components/google_generative_ai_conversation/translations/id.json +26 -19
  531. homeassistant/components/google_generative_ai_conversation/translations/it.json +0 -18
  532. homeassistant/components/google_generative_ai_conversation/translations/ja.json +0 -23
  533. homeassistant/components/google_generative_ai_conversation/translations/ko.json +0 -15
  534. homeassistant/components/google_generative_ai_conversation/translations/lt.json +41 -28
  535. homeassistant/components/google_generative_ai_conversation/translations/lv.json +0 -9
  536. homeassistant/components/google_generative_ai_conversation/translations/mk.json +11 -0
  537. homeassistant/components/google_generative_ai_conversation/translations/nb.json +0 -9
  538. homeassistant/components/google_generative_ai_conversation/translations/nl.json +17 -17
  539. homeassistant/components/google_generative_ai_conversation/translations/pl.json +0 -23
  540. homeassistant/components/google_generative_ai_conversation/translations/pt-BR.json +0 -11
  541. homeassistant/components/google_generative_ai_conversation/translations/pt.json +41 -28
  542. homeassistant/components/google_generative_ai_conversation/translations/ro.json +0 -11
  543. homeassistant/components/google_generative_ai_conversation/translations/ru.json +67 -28
  544. homeassistant/components/google_generative_ai_conversation/translations/sk.json +69 -28
  545. homeassistant/components/google_generative_ai_conversation/translations/sl.json +0 -23
  546. homeassistant/components/google_generative_ai_conversation/translations/sv.json +42 -28
  547. homeassistant/components/google_generative_ai_conversation/translations/tr.json +0 -23
  548. homeassistant/components/google_generative_ai_conversation/translations/uk.json +0 -11
  549. homeassistant/components/google_generative_ai_conversation/translations/vi.json +0 -12
  550. homeassistant/components/google_generative_ai_conversation/translations/zh-Hans.json +69 -28
  551. homeassistant/components/google_generative_ai_conversation/translations/zh-Hant.json +69 -28
  552. homeassistant/components/google_generative_ai_conversation/tts.py +157 -0
  553. homeassistant/components/google_mail/__init__.py +3 -3
  554. homeassistant/components/google_mail/services.py +48 -47
  555. homeassistant/components/google_mail/strings.json +7 -1
  556. homeassistant/components/google_mail/translations/cs.json +6 -0
  557. homeassistant/components/google_mail/translations/de.json +6 -0
  558. homeassistant/components/google_mail/translations/el.json +6 -0
  559. homeassistant/components/google_mail/translations/en-GB.json +6 -0
  560. homeassistant/components/google_mail/translations/en.json +6 -0
  561. homeassistant/components/google_mail/translations/es.json +6 -0
  562. homeassistant/components/google_mail/translations/et.json +6 -0
  563. homeassistant/components/google_mail/translations/fr.json +6 -0
  564. homeassistant/components/google_mail/translations/ga.json +14 -1
  565. homeassistant/components/google_mail/translations/he.json +6 -0
  566. homeassistant/components/google_mail/translations/id.json +6 -0
  567. homeassistant/components/google_mail/translations/lt.json +6 -0
  568. homeassistant/components/google_mail/translations/mk.json +12 -0
  569. homeassistant/components/google_mail/translations/pt.json +6 -0
  570. homeassistant/components/google_mail/translations/ru.json +6 -0
  571. homeassistant/components/google_mail/translations/sk.json +6 -0
  572. homeassistant/components/google_mail/translations/sv.json +6 -0
  573. homeassistant/components/google_mail/translations/tr.json +6 -0
  574. homeassistant/components/google_mail/translations/zh-Hans.json +6 -0
  575. homeassistant/components/google_mail/translations/zh-Hant.json +6 -0
  576. homeassistant/components/google_photos/__init__.py +14 -7
  577. homeassistant/components/google_photos/services.py +79 -79
  578. homeassistant/components/google_photos/strings.json +7 -1
  579. homeassistant/components/google_photos/translations/cs.json +6 -0
  580. homeassistant/components/google_photos/translations/de.json +6 -0
  581. homeassistant/components/google_photos/translations/el.json +6 -0
  582. homeassistant/components/google_photos/translations/en-GB.json +6 -0
  583. homeassistant/components/google_photos/translations/en.json +6 -0
  584. homeassistant/components/google_photos/translations/es.json +6 -0
  585. homeassistant/components/google_photos/translations/et.json +6 -0
  586. homeassistant/components/google_photos/translations/fr.json +6 -0
  587. homeassistant/components/google_photos/translations/ga.json +8 -0
  588. homeassistant/components/google_photos/translations/he.json +6 -0
  589. homeassistant/components/google_photos/translations/id.json +6 -0
  590. homeassistant/components/google_photos/translations/lt.json +6 -0
  591. homeassistant/components/google_photos/translations/mk.json +14 -1
  592. homeassistant/components/google_photos/translations/pt.json +6 -0
  593. homeassistant/components/google_photos/translations/ru.json +6 -0
  594. homeassistant/components/google_photos/translations/sk.json +6 -0
  595. homeassistant/components/google_photos/translations/sv.json +6 -0
  596. homeassistant/components/google_photos/translations/tr.json +6 -0
  597. homeassistant/components/google_photos/translations/zh-Hans.json +6 -0
  598. homeassistant/components/google_photos/translations/zh-Hant.json +6 -0
  599. homeassistant/components/google_sheets/__init__.py +12 -80
  600. homeassistant/components/google_sheets/services.py +88 -0
  601. homeassistant/components/google_sheets/strings.json +7 -1
  602. homeassistant/components/google_sheets/translations/cs.json +6 -0
  603. homeassistant/components/google_sheets/translations/de.json +6 -0
  604. homeassistant/components/google_sheets/translations/el.json +6 -0
  605. homeassistant/components/google_sheets/translations/en-GB.json +6 -0
  606. homeassistant/components/google_sheets/translations/en.json +6 -0
  607. homeassistant/components/google_sheets/translations/es.json +6 -0
  608. homeassistant/components/google_sheets/translations/et.json +6 -0
  609. homeassistant/components/google_sheets/translations/fr.json +6 -0
  610. homeassistant/components/google_sheets/translations/ga.json +14 -1
  611. homeassistant/components/google_sheets/translations/he.json +6 -0
  612. homeassistant/components/google_sheets/translations/id.json +6 -0
  613. homeassistant/components/google_sheets/translations/lt.json +6 -0
  614. homeassistant/components/google_sheets/translations/mk.json +10 -0
  615. homeassistant/components/google_sheets/translations/pt.json +6 -0
  616. homeassistant/components/google_sheets/translations/ru.json +6 -0
  617. homeassistant/components/google_sheets/translations/sk.json +6 -0
  618. homeassistant/components/google_sheets/translations/sv.json +6 -0
  619. homeassistant/components/google_sheets/translations/tr.json +6 -0
  620. homeassistant/components/google_sheets/translations/zh-Hans.json +6 -0
  621. homeassistant/components/google_sheets/translations/zh-Hant.json +6 -0
  622. homeassistant/components/google_tasks/strings.json +7 -1
  623. homeassistant/components/google_tasks/translations/cs.json +6 -0
  624. homeassistant/components/google_tasks/translations/de.json +6 -0
  625. homeassistant/components/google_tasks/translations/el.json +6 -0
  626. homeassistant/components/google_tasks/translations/en-GB.json +6 -0
  627. homeassistant/components/google_tasks/translations/en.json +6 -0
  628. homeassistant/components/google_tasks/translations/es.json +6 -0
  629. homeassistant/components/google_tasks/translations/et.json +6 -0
  630. homeassistant/components/google_tasks/translations/fr.json +10 -0
  631. homeassistant/components/google_tasks/translations/ga.json +8 -0
  632. homeassistant/components/google_tasks/translations/he.json +6 -0
  633. homeassistant/components/google_tasks/translations/id.json +6 -0
  634. homeassistant/components/google_tasks/translations/lt.json +6 -0
  635. homeassistant/components/google_tasks/translations/mk.json +14 -1
  636. homeassistant/components/google_tasks/translations/pt.json +6 -0
  637. homeassistant/components/google_tasks/translations/ru.json +6 -0
  638. homeassistant/components/google_tasks/translations/sk.json +6 -0
  639. homeassistant/components/google_tasks/translations/sv.json +6 -0
  640. homeassistant/components/google_tasks/translations/tr.json +6 -0
  641. homeassistant/components/google_tasks/translations/zh-Hans.json +6 -0
  642. homeassistant/components/google_tasks/translations/zh-Hant.json +6 -0
  643. homeassistant/components/group/sensor.py +5 -5
  644. homeassistant/components/group/translations/el.json +18 -18
  645. homeassistant/components/habitica/const.py +1 -1
  646. homeassistant/components/habitica/services.py +521 -514
  647. homeassistant/components/habitica/translations/mk.json +39 -0
  648. homeassistant/components/harmony/translations/select.sv.json +1 -1
  649. homeassistant/components/harmony/translations/sv.json +1 -1
  650. homeassistant/components/hassio/__init__.py +1 -9
  651. homeassistant/components/hassio/const.py +1 -1
  652. homeassistant/components/hassio/coordinator.py +1 -1
  653. homeassistant/components/hassio/translations/lt.json +6 -6
  654. homeassistant/components/hassio/update_helper.py +3 -6
  655. homeassistant/components/here_travel_time/coordinator.py +11 -9
  656. homeassistant/components/here_travel_time/manifest.json +1 -1
  657. homeassistant/components/here_travel_time/model.py +3 -1
  658. homeassistant/components/here_travel_time/sensor.py +6 -2
  659. homeassistant/components/hive/translations/mk.json +8 -0
  660. homeassistant/components/hive/water_heater.py +3 -1
  661. homeassistant/components/home_connect/diagnostics.py +20 -2
  662. homeassistant/components/home_connect/manifest.json +3 -2
  663. homeassistant/components/home_connect/quality_scale.yaml +71 -0
  664. homeassistant/components/home_connect/strings.json +7 -1
  665. homeassistant/components/home_connect/translations/cs.json +6 -0
  666. homeassistant/components/home_connect/translations/de.json +6 -0
  667. homeassistant/components/home_connect/translations/el.json +6 -0
  668. homeassistant/components/home_connect/translations/en-GB.json +6 -0
  669. homeassistant/components/home_connect/translations/en.json +6 -0
  670. homeassistant/components/home_connect/translations/es.json +6 -0
  671. homeassistant/components/home_connect/translations/et.json +6 -0
  672. homeassistant/components/home_connect/translations/fr.json +6 -0
  673. homeassistant/components/home_connect/translations/ga.json +8 -0
  674. homeassistant/components/home_connect/translations/he.json +6 -0
  675. homeassistant/components/home_connect/translations/id.json +6 -0
  676. homeassistant/components/home_connect/translations/lt.json +6 -0
  677. homeassistant/components/home_connect/translations/mk.json +12 -0
  678. homeassistant/components/home_connect/translations/pt.json +6 -0
  679. homeassistant/components/home_connect/translations/ru.json +6 -0
  680. homeassistant/components/home_connect/translations/sk.json +6 -0
  681. homeassistant/components/home_connect/translations/sv.json +6 -0
  682. homeassistant/components/home_connect/translations/tr.json +6 -0
  683. homeassistant/components/home_connect/translations/zh-Hans.json +6 -0
  684. homeassistant/components/home_connect/translations/zh-Hant.json +6 -0
  685. homeassistant/components/homeassistant/__init__.py +45 -45
  686. homeassistant/components/homeassistant/strings.json +1 -0
  687. homeassistant/components/homeassistant/system_health.py +1 -0
  688. homeassistant/components/homeassistant/translations/cs.json +1 -0
  689. homeassistant/components/homeassistant/translations/de.json +1 -0
  690. homeassistant/components/homeassistant/translations/el.json +2 -1
  691. homeassistant/components/homeassistant/translations/en.json +1 -0
  692. homeassistant/components/homeassistant/translations/es.json +1 -0
  693. homeassistant/components/homeassistant/translations/et.json +1 -0
  694. homeassistant/components/homeassistant/translations/lt.json +10 -9
  695. homeassistant/components/homeassistant/translations/pt.json +1 -0
  696. homeassistant/components/homeassistant/translations/ru.json +1 -0
  697. homeassistant/components/homeassistant/translations/sk.json +1 -0
  698. homeassistant/components/homeassistant/translations/sv.json +1 -0
  699. homeassistant/components/homeassistant/translations/zh-Hans.json +1 -0
  700. homeassistant/components/homeassistant/translations/zh-Hant.json +1 -0
  701. homeassistant/components/homeassistant_hardware/firmware_config_flow.py +182 -246
  702. homeassistant/components/homeassistant_hardware/manifest.json +1 -1
  703. homeassistant/components/homeassistant_hardware/silabs_multiprotocol_addon.py +6 -15
  704. homeassistant/components/homeassistant_hardware/strings.json +1 -29
  705. homeassistant/components/homeassistant_hardware/translations/bg.json +0 -18
  706. homeassistant/components/homeassistant_hardware/translations/ca.json +0 -28
  707. homeassistant/components/homeassistant_hardware/translations/cs.json +1 -29
  708. homeassistant/components/homeassistant_hardware/translations/da.json +0 -10
  709. homeassistant/components/homeassistant_hardware/translations/de.json +1 -29
  710. homeassistant/components/homeassistant_hardware/translations/el.json +1 -29
  711. homeassistant/components/homeassistant_hardware/translations/en-GB.json +0 -31
  712. homeassistant/components/homeassistant_hardware/translations/en.json +1 -29
  713. homeassistant/components/homeassistant_hardware/translations/es.json +1 -29
  714. homeassistant/components/homeassistant_hardware/translations/et.json +1 -29
  715. homeassistant/components/homeassistant_hardware/translations/fi.json +0 -10
  716. homeassistant/components/homeassistant_hardware/translations/fr.json +0 -31
  717. homeassistant/components/homeassistant_hardware/translations/fy.json +0 -3
  718. homeassistant/components/homeassistant_hardware/translations/ga.json +9 -0
  719. homeassistant/components/homeassistant_hardware/translations/he.json +0 -31
  720. homeassistant/components/homeassistant_hardware/translations/hu.json +0 -31
  721. homeassistant/components/homeassistant_hardware/translations/id.json +0 -31
  722. homeassistant/components/homeassistant_hardware/translations/it.json +0 -13
  723. homeassistant/components/homeassistant_hardware/translations/ja.json +0 -29
  724. homeassistant/components/homeassistant_hardware/translations/ko.json +0 -29
  725. homeassistant/components/homeassistant_hardware/translations/lt.json +17 -45
  726. homeassistant/components/homeassistant_hardware/translations/lv.json +0 -4
  727. homeassistant/components/homeassistant_hardware/translations/mk.json +9 -0
  728. homeassistant/components/homeassistant_hardware/translations/nl.json +0 -22
  729. homeassistant/components/homeassistant_hardware/translations/pt-BR.json +0 -4
  730. homeassistant/components/homeassistant_hardware/translations/pt.json +1 -29
  731. homeassistant/components/homeassistant_hardware/translations/ru.json +1 -29
  732. homeassistant/components/homeassistant_hardware/translations/sk.json +1 -29
  733. homeassistant/components/homeassistant_hardware/translations/sv.json +1 -29
  734. homeassistant/components/homeassistant_hardware/translations/tr.json +0 -31
  735. homeassistant/components/homeassistant_hardware/translations/uk.json +0 -3
  736. homeassistant/components/homeassistant_hardware/translations/vi.json +0 -3
  737. homeassistant/components/homeassistant_hardware/translations/zh-Hans.json +1 -29
  738. homeassistant/components/homeassistant_hardware/translations/zh-Hant.json +1 -29
  739. homeassistant/components/homeassistant_hardware/update.py +20 -68
  740. homeassistant/components/homeassistant_hardware/util.py +53 -2
  741. homeassistant/components/homeassistant_sky_connect/config_flow.py +44 -7
  742. homeassistant/components/homeassistant_sky_connect/strings.json +2 -44
  743. homeassistant/components/homeassistant_sky_connect/translations/bg.json +0 -10
  744. homeassistant/components/homeassistant_sky_connect/translations/ca.json +2 -44
  745. homeassistant/components/homeassistant_sky_connect/translations/cs.json +4 -46
  746. homeassistant/components/homeassistant_sky_connect/translations/da.json +0 -10
  747. homeassistant/components/homeassistant_sky_connect/translations/de.json +4 -46
  748. homeassistant/components/homeassistant_sky_connect/translations/el.json +4 -46
  749. homeassistant/components/homeassistant_sky_connect/translations/en-GB.json +2 -46
  750. homeassistant/components/homeassistant_sky_connect/translations/en.json +4 -46
  751. homeassistant/components/homeassistant_sky_connect/translations/es.json +4 -46
  752. homeassistant/components/homeassistant_sky_connect/translations/et.json +4 -46
  753. homeassistant/components/homeassistant_sky_connect/translations/fi.json +0 -10
  754. homeassistant/components/homeassistant_sky_connect/translations/fr.json +2 -46
  755. homeassistant/components/homeassistant_sky_connect/translations/fy.json +0 -3
  756. homeassistant/components/homeassistant_sky_connect/translations/ga.json +10 -0
  757. homeassistant/components/homeassistant_sky_connect/translations/he.json +2 -46
  758. homeassistant/components/homeassistant_sky_connect/translations/hu.json +2 -46
  759. homeassistant/components/homeassistant_sky_connect/translations/id.json +2 -46
  760. homeassistant/components/homeassistant_sky_connect/translations/it.json +0 -16
  761. homeassistant/components/homeassistant_sky_connect/translations/ja.json +2 -46
  762. homeassistant/components/homeassistant_sky_connect/translations/ko.json +0 -21
  763. homeassistant/components/homeassistant_sky_connect/translations/lt.json +31 -73
  764. homeassistant/components/homeassistant_sky_connect/translations/lv.json +0 -3
  765. homeassistant/components/homeassistant_sky_connect/translations/mk.json +7 -0
  766. homeassistant/components/homeassistant_sky_connect/translations/nl.json +1 -23
  767. homeassistant/components/homeassistant_sky_connect/translations/pt-BR.json +0 -4
  768. homeassistant/components/homeassistant_sky_connect/translations/pt.json +4 -46
  769. homeassistant/components/homeassistant_sky_connect/translations/ru.json +4 -46
  770. homeassistant/components/homeassistant_sky_connect/translations/sk.json +4 -46
  771. homeassistant/components/homeassistant_sky_connect/translations/sv.json +4 -46
  772. homeassistant/components/homeassistant_sky_connect/translations/tr.json +2 -46
  773. homeassistant/components/homeassistant_sky_connect/translations/uk.json +0 -3
  774. homeassistant/components/homeassistant_sky_connect/translations/zh-Hans.json +4 -46
  775. homeassistant/components/homeassistant_sky_connect/translations/zh-Hant.json +4 -46
  776. homeassistant/components/homeassistant_yellow/config_flow.py +58 -3
  777. homeassistant/components/homeassistant_yellow/strings.json +1 -25
  778. homeassistant/components/homeassistant_yellow/translations/bg.json +0 -18
  779. homeassistant/components/homeassistant_yellow/translations/ca.json +1 -25
  780. homeassistant/components/homeassistant_yellow/translations/cs.json +2 -26
  781. homeassistant/components/homeassistant_yellow/translations/da.json +0 -10
  782. homeassistant/components/homeassistant_yellow/translations/de.json +2 -26
  783. homeassistant/components/homeassistant_yellow/translations/el.json +2 -26
  784. homeassistant/components/homeassistant_yellow/translations/en-GB.json +1 -26
  785. homeassistant/components/homeassistant_yellow/translations/en.json +2 -26
  786. homeassistant/components/homeassistant_yellow/translations/es.json +2 -26
  787. homeassistant/components/homeassistant_yellow/translations/et.json +2 -26
  788. homeassistant/components/homeassistant_yellow/translations/fi.json +0 -10
  789. homeassistant/components/homeassistant_yellow/translations/fr.json +1 -26
  790. homeassistant/components/homeassistant_yellow/translations/ga.json +5 -0
  791. homeassistant/components/homeassistant_yellow/translations/he.json +1 -26
  792. homeassistant/components/homeassistant_yellow/translations/hu.json +1 -26
  793. homeassistant/components/homeassistant_yellow/translations/id.json +1 -26
  794. homeassistant/components/homeassistant_yellow/translations/it.json +0 -13
  795. homeassistant/components/homeassistant_yellow/translations/ja.json +1 -26
  796. homeassistant/components/homeassistant_yellow/translations/ko.json +0 -22
  797. homeassistant/components/homeassistant_yellow/translations/lt.json +19 -43
  798. homeassistant/components/homeassistant_yellow/translations/nl.json +1 -19
  799. homeassistant/components/homeassistant_yellow/translations/pt-BR.json +0 -4
  800. homeassistant/components/homeassistant_yellow/translations/pt.json +2 -26
  801. homeassistant/components/homeassistant_yellow/translations/ru.json +2 -26
  802. homeassistant/components/homeassistant_yellow/translations/sk.json +2 -26
  803. homeassistant/components/homeassistant_yellow/translations/sv.json +2 -26
  804. homeassistant/components/homeassistant_yellow/translations/tr.json +1 -26
  805. homeassistant/components/homeassistant_yellow/translations/uk.json +0 -3
  806. homeassistant/components/homeassistant_yellow/translations/zh-Hans.json +2 -26
  807. homeassistant/components/homeassistant_yellow/translations/zh-Hant.json +2 -26
  808. homeassistant/components/homee/__init__.py +2 -1
  809. homeassistant/components/homee/climate.py +23 -9
  810. homeassistant/components/homee/config_flow.py +49 -0
  811. homeassistant/components/homee/diagnostics.py +43 -0
  812. homeassistant/components/homee/entity.py +5 -2
  813. homeassistant/components/homee/event.py +57 -21
  814. homeassistant/components/homee/lock.py +6 -2
  815. homeassistant/components/homee/manifest.json +1 -1
  816. homeassistant/components/homee/number.py +29 -0
  817. homeassistant/components/homee/select.py +5 -0
  818. homeassistant/components/homee/sensor.py +10 -0
  819. homeassistant/components/homee/siren.py +49 -0
  820. homeassistant/components/homee/strings.json +72 -2
  821. homeassistant/components/homee/switch.py +1 -0
  822. homeassistant/components/homee/translations/bg.json +19 -1
  823. homeassistant/components/homee/translations/cs.json +71 -1
  824. homeassistant/components/homee/translations/de.json +71 -1
  825. homeassistant/components/homee/translations/el.json +71 -1
  826. homeassistant/components/homee/translations/en-GB.json +71 -1
  827. homeassistant/components/homee/translations/en.json +71 -1
  828. homeassistant/components/homee/translations/es.json +71 -1
  829. homeassistant/components/homee/translations/et.json +71 -1
  830. homeassistant/components/homee/translations/fi.json +7 -0
  831. homeassistant/components/homee/translations/ga.json +68 -0
  832. homeassistant/components/homee/translations/he.json +7 -1
  833. homeassistant/components/homee/translations/hr.json +20 -1
  834. homeassistant/components/homee/translations/hu.json +47 -1
  835. homeassistant/components/homee/translations/id.json +7 -1
  836. homeassistant/components/homee/translations/it.json +13 -1
  837. homeassistant/components/homee/translations/lt.json +71 -1
  838. homeassistant/components/homee/translations/nl.json +7 -1
  839. homeassistant/components/homee/translations/pt.json +71 -1
  840. homeassistant/components/homee/translations/sk.json +71 -1
  841. homeassistant/components/homee/translations/sv.json +63 -2
  842. homeassistant/components/homee/translations/tr.json +62 -1
  843. homeassistant/components/homee/translations/zh-Hans.json +71 -1
  844. homeassistant/components/homee/translations/zh-Hant.json +71 -1
  845. homeassistant/components/homekit_controller/config_flow.py +4 -5
  846. homeassistant/components/homekit_controller/manifest.json +1 -1
  847. homeassistant/components/homematicip_cloud/__init__.py +3 -4
  848. homeassistant/components/homematicip_cloud/climate.py +0 -2
  849. homeassistant/components/homematicip_cloud/services.py +37 -54
  850. homeassistant/components/homematicip_cloud/switch.py +29 -30
  851. homeassistant/components/homewizard/__init__.py +2 -5
  852. homeassistant/components/homewizard/const.py +7 -1
  853. homeassistant/components/homewizard/helpers.py +6 -1
  854. homeassistant/components/homewizard/manifest.json +1 -1
  855. homeassistant/components/homewizard/select.py +89 -0
  856. homeassistant/components/homewizard/strings.json +15 -2
  857. homeassistant/components/homewizard/translations/cs.json +16 -2
  858. homeassistant/components/homewizard/translations/de.json +16 -3
  859. homeassistant/components/homewizard/translations/el.json +22 -0
  860. homeassistant/components/homewizard/translations/en-GB.json +3 -2
  861. homeassistant/components/homewizard/translations/en.json +13 -0
  862. homeassistant/components/homewizard/translations/es.json +16 -2
  863. homeassistant/components/homewizard/translations/et.json +14 -0
  864. homeassistant/components/homewizard/translations/ga.json +15 -0
  865. homeassistant/components/homewizard/translations/lt.json +19 -2
  866. homeassistant/components/homewizard/translations/nl.json +10 -0
  867. homeassistant/components/homewizard/translations/pt.json +13 -0
  868. homeassistant/components/homewizard/translations/sk.json +16 -2
  869. homeassistant/components/homewizard/translations/sv.json +10 -0
  870. homeassistant/components/homewizard/translations/tr.json +10 -0
  871. homeassistant/components/homewizard/translations/zh-Hans.json +16 -2
  872. homeassistant/components/homewizard/translations/zh-Hant.json +16 -2
  873. homeassistant/components/http/__init__.py +6 -5
  874. homeassistant/components/http/auth.py +1 -1
  875. homeassistant/components/http/ban.py +1 -2
  876. homeassistant/components/http/cors.py +4 -4
  877. homeassistant/components/huawei_lte/translations/mk.json +5 -0
  878. homeassistant/components/hue/__init__.py +15 -10
  879. homeassistant/components/hue/services.py +17 -17
  880. homeassistant/components/hue/translations/el.json +14 -2
  881. homeassistant/components/husqvarna_automower/manifest.json +1 -1
  882. homeassistant/components/husqvarna_automower/strings.json +7 -1
  883. homeassistant/components/husqvarna_automower/translations/cs.json +6 -0
  884. homeassistant/components/husqvarna_automower/translations/de.json +6 -0
  885. homeassistant/components/husqvarna_automower/translations/el.json +6 -0
  886. homeassistant/components/husqvarna_automower/translations/en-GB.json +6 -0
  887. homeassistant/components/husqvarna_automower/translations/en.json +6 -0
  888. homeassistant/components/husqvarna_automower/translations/es.json +6 -0
  889. homeassistant/components/husqvarna_automower/translations/et.json +6 -0
  890. homeassistant/components/husqvarna_automower/translations/fr.json +6 -0
  891. homeassistant/components/husqvarna_automower/translations/ga.json +12 -0
  892. homeassistant/components/husqvarna_automower/translations/he.json +6 -0
  893. homeassistant/components/husqvarna_automower/translations/id.json +6 -0
  894. homeassistant/components/husqvarna_automower/translations/lt.json +6 -0
  895. homeassistant/components/husqvarna_automower/translations/mk.json +12 -0
  896. homeassistant/components/husqvarna_automower/translations/pt.json +6 -0
  897. homeassistant/components/husqvarna_automower/translations/ru.json +6 -0
  898. homeassistant/components/husqvarna_automower/translations/sk.json +6 -0
  899. homeassistant/components/husqvarna_automower/translations/sv.json +6 -0
  900. homeassistant/components/husqvarna_automower/translations/tr.json +6 -0
  901. homeassistant/components/husqvarna_automower/translations/zh-Hans.json +6 -0
  902. homeassistant/components/husqvarna_automower/translations/zh-Hant.json +6 -0
  903. homeassistant/components/husqvarna_automower_ble/__init__.py +4 -2
  904. homeassistant/components/husqvarna_automower_ble/coordinator.py +5 -4
  905. homeassistant/components/husqvarna_automower_ble/lawn_mower.py +3 -3
  906. homeassistant/components/hyperion/manifest.json +1 -1
  907. homeassistant/components/hyperion/strings.json +3 -0
  908. homeassistant/components/hyperion/switch.py +3 -0
  909. homeassistant/components/hyperion/translations/cs.json +3 -0
  910. homeassistant/components/hyperion/translations/de.json +3 -0
  911. homeassistant/components/hyperion/translations/el.json +3 -0
  912. homeassistant/components/hyperion/translations/en.json +3 -0
  913. homeassistant/components/hyperion/translations/es.json +3 -0
  914. homeassistant/components/hyperion/translations/et.json +3 -0
  915. homeassistant/components/hyperion/translations/ga.json +9 -1
  916. homeassistant/components/hyperion/translations/hu.json +3 -0
  917. homeassistant/components/hyperion/translations/lt.json +3 -0
  918. homeassistant/components/hyperion/translations/pt.json +3 -0
  919. homeassistant/components/hyperion/translations/sk.json +3 -0
  920. homeassistant/components/hyperion/translations/sv.json +3 -0
  921. homeassistant/components/hyperion/translations/tr.json +3 -0
  922. homeassistant/components/hyperion/translations/zh-Hans.json +3 -0
  923. homeassistant/components/hyperion/translations/zh-Hant.json +3 -0
  924. homeassistant/components/icloud/__init__.py +14 -3
  925. homeassistant/components/icloud/services.py +4 -3
  926. homeassistant/components/image/__init__.py +34 -3
  927. homeassistant/components/imeon_inverter/entity.py +40 -0
  928. homeassistant/components/imeon_inverter/sensor.py +6 -32
  929. homeassistant/components/imgw_pib/config_flow.py +3 -1
  930. homeassistant/components/imgw_pib/manifest.json +1 -1
  931. homeassistant/components/imgw_pib/translations/el.json +3 -0
  932. homeassistant/components/immich/__init__.py +2 -1
  933. homeassistant/components/immich/coordinator.py +11 -1
  934. homeassistant/components/immich/manifest.json +1 -1
  935. homeassistant/components/immich/strings.json +5 -0
  936. homeassistant/components/immich/translations/bg.json +5 -0
  937. homeassistant/components/immich/translations/cs.json +5 -0
  938. homeassistant/components/immich/translations/de.json +5 -0
  939. homeassistant/components/immich/translations/el.json +7 -0
  940. homeassistant/components/immich/translations/en.json +5 -0
  941. homeassistant/components/immich/translations/es.json +5 -0
  942. homeassistant/components/immich/translations/et.json +5 -0
  943. homeassistant/components/immich/translations/ga.json +5 -0
  944. homeassistant/components/immich/translations/lt.json +5 -0
  945. homeassistant/components/immich/translations/pt.json +5 -0
  946. homeassistant/components/immich/translations/ru.json +5 -0
  947. homeassistant/components/immich/translations/sk.json +5 -0
  948. homeassistant/components/immich/translations/sv.json +5 -0
  949. homeassistant/components/immich/translations/tr.json +5 -0
  950. homeassistant/components/immich/translations/zh-Hans.json +5 -0
  951. homeassistant/components/immich/translations/zh-Hant.json +5 -0
  952. homeassistant/components/immich/update.py +57 -0
  953. homeassistant/components/input_select/translations/sv.json +6 -6
  954. homeassistant/components/insteon/__init__.py +2 -2
  955. homeassistant/components/insteon/services.py +291 -0
  956. homeassistant/components/insteon/utils.py +4 -276
  957. homeassistant/components/intellifire/translations/mk.json +7 -0
  958. homeassistant/components/intent/timers.py +3 -2
  959. homeassistant/components/iotty/strings.json +7 -1
  960. homeassistant/components/iotty/translations/cs.json +6 -0
  961. homeassistant/components/iotty/translations/de.json +6 -0
  962. homeassistant/components/iotty/translations/el.json +6 -0
  963. homeassistant/components/iotty/translations/en-GB.json +6 -0
  964. homeassistant/components/iotty/translations/en.json +6 -0
  965. homeassistant/components/iotty/translations/es.json +6 -0
  966. homeassistant/components/iotty/translations/et.json +6 -0
  967. homeassistant/components/iotty/translations/fr.json +14 -1
  968. homeassistant/components/iotty/translations/ga.json +14 -1
  969. homeassistant/components/iotty/translations/he.json +6 -0
  970. homeassistant/components/iotty/translations/id.json +6 -0
  971. homeassistant/components/iotty/translations/lt.json +6 -0
  972. homeassistant/components/iotty/translations/mk.json +14 -1
  973. homeassistant/components/iotty/translations/pt.json +6 -0
  974. homeassistant/components/iotty/translations/ru.json +6 -0
  975. homeassistant/components/iotty/translations/sk.json +6 -0
  976. homeassistant/components/iotty/translations/sv.json +6 -0
  977. homeassistant/components/iotty/translations/tr.json +6 -0
  978. homeassistant/components/iotty/translations/zh-Hans.json +6 -0
  979. homeassistant/components/iotty/translations/zh-Hant.json +6 -0
  980. homeassistant/components/iqvia/manifest.json +1 -1
  981. homeassistant/components/iron_os/translations/sv.json +1 -1
  982. homeassistant/components/israel_rail/translations/el.json +1 -1
  983. homeassistant/components/ista_ecotrend/manifest.json +1 -0
  984. homeassistant/components/ista_ecotrend/quality_scale.yaml +14 -6
  985. homeassistant/components/isy994/__init__.py +10 -7
  986. homeassistant/components/isy994/services.py +0 -19
  987. homeassistant/components/jellyfin/media_source.py +3 -3
  988. homeassistant/components/jewish_calendar/__init__.py +1 -1
  989. homeassistant/components/jewish_calendar/{service.py → services.py} +2 -0
  990. homeassistant/components/juicenet/__init__.py +20 -93
  991. homeassistant/components/juicenet/config_flow.py +1 -72
  992. homeassistant/components/juicenet/const.py +0 -3
  993. homeassistant/components/juicenet/manifest.json +3 -4
  994. homeassistant/components/juicenet/strings.json +4 -37
  995. homeassistant/components/juicenet/translations/bg.json +1 -17
  996. homeassistant/components/juicenet/translations/ca.json +1 -41
  997. homeassistant/components/juicenet/translations/cs.json +4 -37
  998. homeassistant/components/juicenet/translations/da.json +1 -19
  999. homeassistant/components/juicenet/translations/de.json +4 -37
  1000. homeassistant/components/juicenet/translations/el.json +4 -17
  1001. homeassistant/components/juicenet/translations/en-GB.json +1 -41
  1002. homeassistant/components/juicenet/translations/en.json +4 -37
  1003. homeassistant/components/juicenet/translations/es.json +4 -37
  1004. homeassistant/components/juicenet/translations/et.json +4 -37
  1005. homeassistant/components/juicenet/translations/fi.json +1 -41
  1006. homeassistant/components/juicenet/translations/fr.json +1 -21
  1007. homeassistant/components/juicenet/translations/he.json +1 -20
  1008. homeassistant/components/juicenet/translations/hu.json +1 -41
  1009. homeassistant/components/juicenet/translations/id.json +1 -21
  1010. homeassistant/components/juicenet/translations/it.json +1 -41
  1011. homeassistant/components/juicenet/translations/ja.json +1 -41
  1012. homeassistant/components/juicenet/translations/ko.json +1 -41
  1013. homeassistant/components/juicenet/translations/lb.json +1 -21
  1014. homeassistant/components/juicenet/translations/lt.json +4 -37
  1015. homeassistant/components/juicenet/translations/mk.json +1 -9
  1016. homeassistant/components/juicenet/translations/nb.json +1 -21
  1017. homeassistant/components/juicenet/translations/nl.json +1 -21
  1018. homeassistant/components/juicenet/translations/pl.json +1 -21
  1019. homeassistant/components/juicenet/translations/pt-BR.json +1 -33
  1020. homeassistant/components/juicenet/translations/pt.json +4 -37
  1021. homeassistant/components/juicenet/translations/ro.json +1 -41
  1022. homeassistant/components/juicenet/translations/ru.json +1 -41
  1023. homeassistant/components/juicenet/translations/sk.json +4 -37
  1024. homeassistant/components/juicenet/translations/sl.json +1 -21
  1025. homeassistant/components/juicenet/translations/sv.json +1 -41
  1026. homeassistant/components/juicenet/translations/tr.json +1 -41
  1027. homeassistant/components/juicenet/translations/uk.json +1 -21
  1028. homeassistant/components/juicenet/translations/vi.json +1 -21
  1029. homeassistant/components/juicenet/translations/zh-Hans.json +4 -37
  1030. homeassistant/components/juicenet/translations/zh-Hant.json +4 -37
  1031. homeassistant/components/justnimbus/__init__.py +6 -9
  1032. homeassistant/components/justnimbus/coordinator.py +6 -2
  1033. homeassistant/components/justnimbus/sensor.py +3 -6
  1034. homeassistant/components/kaleidescape/__init__.py +13 -17
  1035. homeassistant/components/kaleidescape/media_player.py +6 -12
  1036. homeassistant/components/kaleidescape/remote.py +7 -12
  1037. homeassistant/components/kaleidescape/sensor.py +9 -14
  1038. homeassistant/components/keenetic_ndms2/__init__.py +10 -19
  1039. homeassistant/components/keenetic_ndms2/binary_sensor.py +3 -7
  1040. homeassistant/components/keenetic_ndms2/config_flow.py +26 -18
  1041. homeassistant/components/keenetic_ndms2/const.py +0 -2
  1042. homeassistant/components/keenetic_ndms2/device_tracker.py +3 -5
  1043. homeassistant/components/keenetic_ndms2/router.py +3 -1
  1044. homeassistant/components/keenetic_ndms2/strings.json +4 -0
  1045. homeassistant/components/keenetic_ndms2/translations/bg.json +3 -0
  1046. homeassistant/components/keenetic_ndms2/translations/cs.json +4 -0
  1047. homeassistant/components/keenetic_ndms2/translations/de.json +4 -0
  1048. homeassistant/components/keenetic_ndms2/translations/el.json +4 -0
  1049. homeassistant/components/keenetic_ndms2/translations/en.json +4 -0
  1050. homeassistant/components/keenetic_ndms2/translations/es.json +4 -0
  1051. homeassistant/components/keenetic_ndms2/translations/et.json +4 -0
  1052. homeassistant/components/keenetic_ndms2/translations/id.json +3 -0
  1053. homeassistant/components/keenetic_ndms2/translations/lt.json +4 -0
  1054. homeassistant/components/keenetic_ndms2/translations/nl.json +3 -0
  1055. homeassistant/components/keenetic_ndms2/translations/pt.json +4 -0
  1056. homeassistant/components/keenetic_ndms2/translations/sk.json +4 -0
  1057. homeassistant/components/keenetic_ndms2/translations/sv.json +3 -0
  1058. homeassistant/components/keenetic_ndms2/translations/zh-Hans.json +4 -0
  1059. homeassistant/components/keenetic_ndms2/translations/zh-Hant.json +4 -0
  1060. homeassistant/components/kegtron/__init__.py +12 -16
  1061. homeassistant/components/kegtron/sensor.py +3 -7
  1062. homeassistant/components/keymitt_ble/__init__.py +5 -14
  1063. homeassistant/components/keymitt_ble/coordinator.py +4 -3
  1064. homeassistant/components/keymitt_ble/entity.py +1 -1
  1065. homeassistant/components/keymitt_ble/switch.py +3 -6
  1066. homeassistant/components/kmtronic/__init__.py +10 -45
  1067. homeassistant/components/kmtronic/const.py +0 -5
  1068. homeassistant/components/kmtronic/coordinator.py +50 -0
  1069. homeassistant/components/kmtronic/switch.py +5 -5
  1070. homeassistant/components/knx/manifest.json +1 -0
  1071. homeassistant/components/knx/quality_scale.yaml +11 -8
  1072. homeassistant/components/knx/services.py +14 -4
  1073. homeassistant/components/knx/strings.json +15 -1
  1074. homeassistant/components/knx/translations/bg.json +5 -0
  1075. homeassistant/components/knx/translations/cs.json +14 -0
  1076. homeassistant/components/knx/translations/de.json +14 -0
  1077. homeassistant/components/knx/translations/el.json +17 -2
  1078. homeassistant/components/knx/translations/en-GB.json +14 -0
  1079. homeassistant/components/knx/translations/en.json +14 -0
  1080. homeassistant/components/knx/translations/es.json +14 -0
  1081. homeassistant/components/knx/translations/et.json +14 -0
  1082. homeassistant/components/knx/translations/fr.json +5 -0
  1083. homeassistant/components/knx/translations/ga.json +14 -0
  1084. homeassistant/components/knx/translations/hu.json +14 -0
  1085. homeassistant/components/knx/translations/it.json +14 -0
  1086. homeassistant/components/knx/translations/lt.json +14 -0
  1087. homeassistant/components/knx/translations/pt.json +14 -0
  1088. homeassistant/components/knx/translations/sk.json +14 -0
  1089. homeassistant/components/knx/translations/sv.json +14 -0
  1090. homeassistant/components/knx/translations/tr.json +11 -0
  1091. homeassistant/components/knx/translations/zh-Hans.json +14 -0
  1092. homeassistant/components/knx/translations/zh-Hant.json +14 -0
  1093. homeassistant/components/kodi/__init__.py +19 -21
  1094. homeassistant/components/kodi/const.py +0 -4
  1095. homeassistant/components/kodi/media_player.py +5 -8
  1096. homeassistant/components/konnected/__init__.py +1 -8
  1097. homeassistant/components/konnected/const.py +0 -2
  1098. homeassistant/components/kostal_plenticore/__init__.py +6 -13
  1099. homeassistant/components/kostal_plenticore/coordinator.py +6 -4
  1100. homeassistant/components/kostal_plenticore/diagnostics.py +3 -5
  1101. homeassistant/components/kostal_plenticore/number.py +3 -5
  1102. homeassistant/components/kostal_plenticore/select.py +3 -5
  1103. homeassistant/components/kostal_plenticore/sensor.py +3 -5
  1104. homeassistant/components/kostal_plenticore/switch.py +3 -5
  1105. homeassistant/components/lacrosse_view/__init__.py +5 -12
  1106. homeassistant/components/lacrosse_view/coordinator.py +4 -2
  1107. homeassistant/components/lacrosse_view/diagnostics.py +3 -8
  1108. homeassistant/components/lacrosse_view/sensor.py +4 -7
  1109. homeassistant/components/lamarzocco/translations/sv.json +3 -3
  1110. homeassistant/components/lametric/__init__.py +6 -8
  1111. homeassistant/components/lametric/button.py +3 -5
  1112. homeassistant/components/lametric/const.py +1 -0
  1113. homeassistant/components/lametric/coordinator.py +4 -2
  1114. homeassistant/components/lametric/diagnostics.py +3 -5
  1115. homeassistant/components/lametric/entity.py +8 -3
  1116. homeassistant/components/lametric/helpers.py +5 -11
  1117. homeassistant/components/lametric/manifest.json +1 -1
  1118. homeassistant/components/lametric/notify.py +8 -6
  1119. homeassistant/components/lametric/number.py +3 -5
  1120. homeassistant/components/lametric/quality_scale.yaml +2 -1
  1121. homeassistant/components/lametric/select.py +3 -5
  1122. homeassistant/components/lametric/sensor.py +3 -5
  1123. homeassistant/components/lametric/strings.json +7 -1
  1124. homeassistant/components/lametric/switch.py +3 -5
  1125. homeassistant/components/lametric/translations/cs.json +6 -0
  1126. homeassistant/components/lametric/translations/de.json +6 -0
  1127. homeassistant/components/lametric/translations/el.json +6 -0
  1128. homeassistant/components/lametric/translations/en-GB.json +6 -0
  1129. homeassistant/components/lametric/translations/en.json +6 -0
  1130. homeassistant/components/lametric/translations/es.json +6 -0
  1131. homeassistant/components/lametric/translations/et.json +6 -0
  1132. homeassistant/components/lametric/translations/fr.json +6 -0
  1133. homeassistant/components/lametric/translations/ga.json +12 -0
  1134. homeassistant/components/lametric/translations/he.json +6 -0
  1135. homeassistant/components/lametric/translations/id.json +6 -0
  1136. homeassistant/components/lametric/translations/lt.json +6 -0
  1137. homeassistant/components/lametric/translations/mk.json +12 -0
  1138. homeassistant/components/lametric/translations/pt.json +6 -0
  1139. homeassistant/components/lametric/translations/ru.json +6 -0
  1140. homeassistant/components/lametric/translations/sk.json +6 -0
  1141. homeassistant/components/lametric/translations/sv.json +8 -2
  1142. homeassistant/components/lametric/translations/tr.json +6 -0
  1143. homeassistant/components/lametric/translations/zh-Hans.json +6 -0
  1144. homeassistant/components/lametric/translations/zh-Hant.json +6 -0
  1145. homeassistant/components/lametric/update.py +46 -0
  1146. homeassistant/components/landisgyr_heat_meter/__init__.py +8 -10
  1147. homeassistant/components/landisgyr_heat_meter/coordinator.py +7 -2
  1148. homeassistant/components/landisgyr_heat_meter/sensor.py +8 -13
  1149. homeassistant/components/lastfm/__init__.py +6 -8
  1150. homeassistant/components/lastfm/config_flow.py +5 -7
  1151. homeassistant/components/lastfm/coordinator.py +2 -0
  1152. homeassistant/components/lastfm/sensor.py +3 -4
  1153. homeassistant/components/laundrify/__init__.py +6 -14
  1154. homeassistant/components/laundrify/binary_sensor.py +3 -6
  1155. homeassistant/components/laundrify/coordinator.py +2 -0
  1156. homeassistant/components/laundrify/sensor.py +3 -6
  1157. homeassistant/components/lcn/__init__.py +22 -27
  1158. homeassistant/components/lcn/binary_sensor.py +10 -15
  1159. homeassistant/components/lcn/climate.py +5 -8
  1160. homeassistant/components/lcn/const.py +0 -4
  1161. homeassistant/components/lcn/cover.py +6 -9
  1162. homeassistant/components/lcn/entity.py +2 -2
  1163. homeassistant/components/lcn/helpers.py +28 -10
  1164. homeassistant/components/lcn/light.py +6 -9
  1165. homeassistant/components/lcn/manifest.json +2 -1
  1166. homeassistant/components/lcn/quality_scale.yaml +77 -0
  1167. homeassistant/components/lcn/scene.py +5 -7
  1168. homeassistant/components/lcn/sensor.py +8 -9
  1169. homeassistant/components/lcn/services.py +18 -7
  1170. homeassistant/components/lcn/switch.py +9 -18
  1171. homeassistant/components/lcn/translations/sv.json +1 -1
  1172. homeassistant/components/lcn/websocket.py +18 -22
  1173. homeassistant/components/ld2410_ble/__init__.py +9 -13
  1174. homeassistant/components/ld2410_ble/binary_sensor.py +3 -5
  1175. homeassistant/components/ld2410_ble/coordinator.py +11 -3
  1176. homeassistant/components/ld2410_ble/models.py +4 -0
  1177. homeassistant/components/ld2410_ble/sensor.py +6 -6
  1178. homeassistant/components/leaone/__init__.py +12 -16
  1179. homeassistant/components/leaone/sensor.py +3 -7
  1180. homeassistant/components/led_ble/__init__.py +8 -13
  1181. homeassistant/components/led_ble/light.py +4 -5
  1182. homeassistant/components/led_ble/models.py +3 -0
  1183. homeassistant/components/letpot/coordinator.py +2 -0
  1184. homeassistant/components/letpot/quality_scale.yaml +3 -3
  1185. homeassistant/components/lg_netcast/__init__.py +16 -10
  1186. homeassistant/components/lg_netcast/device_trigger.py +7 -8
  1187. homeassistant/components/lg_netcast/media_player.py +5 -10
  1188. homeassistant/components/lg_thinq/manifest.json +2 -1
  1189. homeassistant/components/lg_thinq/translations/sv.json +5 -5
  1190. homeassistant/components/lg_thinq/vacuum.py +2 -1
  1191. homeassistant/components/lifx/__init__.py +10 -15
  1192. homeassistant/components/lifx/binary_sensor.py +4 -5
  1193. homeassistant/components/lifx/button.py +4 -6
  1194. homeassistant/components/lifx/const.py +9 -1
  1195. homeassistant/components/lifx/coordinator.py +4 -2
  1196. homeassistant/components/lifx/diagnostics.py +4 -5
  1197. homeassistant/components/lifx/light.py +5 -7
  1198. homeassistant/components/lifx/manager.py +7 -9
  1199. homeassistant/components/lifx/migration.py +3 -3
  1200. homeassistant/components/lifx/select.py +4 -10
  1201. homeassistant/components/lifx/sensor.py +4 -5
  1202. homeassistant/components/lifx/util.py +6 -4
  1203. homeassistant/components/linear_garage_door/__init__.py +6 -10
  1204. homeassistant/components/linear_garage_door/coordinator.py +4 -2
  1205. homeassistant/components/linear_garage_door/cover.py +3 -5
  1206. homeassistant/components/linear_garage_door/diagnostics.py +3 -5
  1207. homeassistant/components/linear_garage_door/light.py +3 -5
  1208. homeassistant/components/litterrobot/icons.json +3 -0
  1209. homeassistant/components/litterrobot/manifest.json +1 -1
  1210. homeassistant/components/litterrobot/sensor.py +8 -0
  1211. homeassistant/components/litterrobot/strings.json +4 -0
  1212. homeassistant/components/litterrobot/translations/bg.json +4 -0
  1213. homeassistant/components/litterrobot/translations/cs.json +4 -0
  1214. homeassistant/components/litterrobot/translations/de.json +4 -0
  1215. homeassistant/components/litterrobot/translations/el.json +4 -0
  1216. homeassistant/components/litterrobot/translations/en.json +4 -0
  1217. homeassistant/components/litterrobot/translations/es.json +4 -0
  1218. homeassistant/components/litterrobot/translations/et.json +4 -0
  1219. homeassistant/components/litterrobot/translations/ga.json +3 -0
  1220. homeassistant/components/litterrobot/translations/lt.json +4 -0
  1221. homeassistant/components/litterrobot/translations/pt.json +4 -0
  1222. homeassistant/components/litterrobot/translations/sensor.sv.json +16 -16
  1223. homeassistant/components/litterrobot/translations/sk.json +4 -0
  1224. homeassistant/components/litterrobot/translations/sv.json +13 -9
  1225. homeassistant/components/litterrobot/translations/zh-Hans.json +4 -0
  1226. homeassistant/components/litterrobot/translations/zh-Hant.json +5 -0
  1227. homeassistant/components/livisi/__init__.py +6 -13
  1228. homeassistant/components/livisi/binary_sensor.py +6 -7
  1229. homeassistant/components/livisi/climate.py +4 -6
  1230. homeassistant/components/livisi/coordinator.py +4 -2
  1231. homeassistant/components/livisi/entity.py +2 -3
  1232. homeassistant/components/livisi/switch.py +5 -6
  1233. homeassistant/components/local_calendar/__init__.py +14 -15
  1234. homeassistant/components/local_calendar/calendar.py +4 -4
  1235. homeassistant/components/local_calendar/diagnostics.py +3 -4
  1236. homeassistant/components/lookin/__init__.py +6 -8
  1237. homeassistant/components/lookin/climate.py +4 -5
  1238. homeassistant/components/lookin/coordinator.py +6 -3
  1239. homeassistant/components/lookin/light.py +4 -5
  1240. homeassistant/components/lookin/media_player.py +4 -5
  1241. homeassistant/components/lookin/models.py +4 -0
  1242. homeassistant/components/lookin/sensor.py +3 -5
  1243. homeassistant/components/loqed/__init__.py +7 -17
  1244. homeassistant/components/loqed/coordinator.py +7 -3
  1245. homeassistant/components/loqed/lock.py +3 -7
  1246. homeassistant/components/loqed/sensor.py +3 -5
  1247. homeassistant/components/luftdaten/__init__.py +7 -37
  1248. homeassistant/components/luftdaten/coordinator.py +58 -0
  1249. homeassistant/components/luftdaten/diagnostics.py +4 -7
  1250. homeassistant/components/luftdaten/sensor.py +5 -8
  1251. homeassistant/components/lupusec/__init__.py +4 -4
  1252. homeassistant/components/lupusec/alarm_control_panel.py +4 -4
  1253. homeassistant/components/lupusec/binary_sensor.py +3 -4
  1254. homeassistant/components/lupusec/switch.py +3 -4
  1255. homeassistant/components/lutron/__init__.py +8 -3
  1256. homeassistant/components/lutron/binary_sensor.py +3 -7
  1257. homeassistant/components/lutron/config_flow.py +3 -7
  1258. homeassistant/components/lutron/cover.py +3 -4
  1259. homeassistant/components/lutron/event.py +3 -4
  1260. homeassistant/components/lutron/fan.py +3 -7
  1261. homeassistant/components/lutron/light.py +3 -3
  1262. homeassistant/components/lutron/scene.py +3 -4
  1263. homeassistant/components/lutron/switch.py +3 -4
  1264. homeassistant/components/lyric/__init__.py +8 -65
  1265. homeassistant/components/lyric/climate.py +5 -8
  1266. homeassistant/components/lyric/coordinator.py +89 -0
  1267. homeassistant/components/lyric/entity.py +6 -8
  1268. homeassistant/components/lyric/sensor.py +5 -8
  1269. homeassistant/components/lyric/strings.json +7 -1
  1270. homeassistant/components/lyric/translations/cs.json +6 -0
  1271. homeassistant/components/lyric/translations/de.json +6 -0
  1272. homeassistant/components/lyric/translations/el.json +6 -0
  1273. homeassistant/components/lyric/translations/en-GB.json +6 -0
  1274. homeassistant/components/lyric/translations/en.json +6 -0
  1275. homeassistant/components/lyric/translations/es.json +6 -0
  1276. homeassistant/components/lyric/translations/et.json +6 -0
  1277. homeassistant/components/lyric/translations/fr.json +6 -0
  1278. homeassistant/components/lyric/translations/ga.json +12 -0
  1279. homeassistant/components/lyric/translations/he.json +6 -0
  1280. homeassistant/components/lyric/translations/id.json +6 -0
  1281. homeassistant/components/lyric/translations/lt.json +6 -0
  1282. homeassistant/components/lyric/translations/mk.json +14 -1
  1283. homeassistant/components/lyric/translations/pt.json +6 -0
  1284. homeassistant/components/lyric/translations/ru.json +6 -0
  1285. homeassistant/components/lyric/translations/sk.json +6 -0
  1286. homeassistant/components/lyric/translations/sv.json +6 -0
  1287. homeassistant/components/lyric/translations/tr.json +6 -0
  1288. homeassistant/components/lyric/translations/zh-Hans.json +6 -0
  1289. homeassistant/components/lyric/translations/zh-Hant.json +6 -0
  1290. homeassistant/components/matrix/__init__.py +4 -30
  1291. homeassistant/components/matrix/const.py +5 -0
  1292. homeassistant/components/matrix/services.py +61 -0
  1293. homeassistant/components/matter/binary_sensor.py +30 -0
  1294. homeassistant/components/matter/icons.json +15 -0
  1295. homeassistant/components/matter/light.py +2 -2
  1296. homeassistant/components/matter/sensor.py +89 -6
  1297. homeassistant/components/matter/strings.json +32 -0
  1298. homeassistant/components/matter/translations/bg.json +9 -0
  1299. homeassistant/components/matter/translations/cs.json +32 -0
  1300. homeassistant/components/matter/translations/de.json +32 -0
  1301. homeassistant/components/matter/translations/el.json +32 -0
  1302. homeassistant/components/matter/translations/en.json +32 -0
  1303. homeassistant/components/matter/translations/es.json +32 -0
  1304. homeassistant/components/matter/translations/et.json +32 -0
  1305. homeassistant/components/matter/translations/fi.json +9 -0
  1306. homeassistant/components/matter/translations/fr.json +3 -0
  1307. homeassistant/components/matter/translations/ga.json +3 -0
  1308. homeassistant/components/matter/translations/id.json +5 -0
  1309. homeassistant/components/matter/translations/lt.json +32 -0
  1310. homeassistant/components/matter/translations/nl.json +10 -0
  1311. homeassistant/components/matter/translations/pt.json +32 -0
  1312. homeassistant/components/matter/translations/sk.json +32 -0
  1313. homeassistant/components/matter/translations/sv.json +31 -0
  1314. homeassistant/components/matter/translations/tr.json +3 -0
  1315. homeassistant/components/matter/translations/zh-Hans.json +32 -0
  1316. homeassistant/components/matter/translations/zh-Hant.json +32 -0
  1317. homeassistant/components/matter/vacuum.py +47 -36
  1318. homeassistant/components/maxcube/climate.py +0 -2
  1319. homeassistant/components/mcp/strings.json +2 -2
  1320. homeassistant/components/mcp_server/http.py +0 -1
  1321. homeassistant/components/mealie/__init__.py +2 -2
  1322. homeassistant/components/mealie/manifest.json +1 -1
  1323. homeassistant/components/mealie/services.py +113 -105
  1324. homeassistant/components/meater/__init__.py +11 -72
  1325. homeassistant/components/meater/const.py +4 -0
  1326. homeassistant/components/meater/coordinator.py +79 -0
  1327. homeassistant/components/meater/diagnostics.py +55 -0
  1328. homeassistant/components/meater/sensor.py +59 -42
  1329. homeassistant/components/meater/strings.json +12 -1
  1330. homeassistant/components/meater/translations/cs.json +12 -1
  1331. homeassistant/components/meater/translations/de.json +12 -1
  1332. homeassistant/components/meater/translations/el.json +10 -1
  1333. homeassistant/components/meater/translations/en.json +12 -1
  1334. homeassistant/components/meater/translations/es.json +12 -1
  1335. homeassistant/components/meater/translations/et.json +12 -1
  1336. homeassistant/components/meater/translations/ga.json +19 -1
  1337. homeassistant/components/meater/translations/lt.json +12 -1
  1338. homeassistant/components/meater/translations/mk.json +12 -1
  1339. homeassistant/components/meater/translations/pt.json +12 -1
  1340. homeassistant/components/meater/translations/sk.json +12 -1
  1341. homeassistant/components/meater/translations/sv.json +7 -1
  1342. homeassistant/components/meater/translations/tr.json +12 -1
  1343. homeassistant/components/meater/translations/zh-Hans.json +12 -1
  1344. homeassistant/components/meater/translations/zh-Hant.json +12 -1
  1345. homeassistant/components/media_player/__init__.py +19 -34
  1346. homeassistant/components/media_player/intent.py +19 -4
  1347. homeassistant/components/media_source/local_source.py +21 -4
  1348. homeassistant/components/melcloud/strings.json +0 -10
  1349. homeassistant/components/melcloud/translations/ca.json +0 -9
  1350. homeassistant/components/melcloud/translations/cs.json +0 -10
  1351. homeassistant/components/melcloud/translations/de.json +0 -10
  1352. homeassistant/components/melcloud/translations/el.json +0 -10
  1353. homeassistant/components/melcloud/translations/en-GB.json +0 -10
  1354. homeassistant/components/melcloud/translations/en.json +0 -10
  1355. homeassistant/components/melcloud/translations/es.json +0 -10
  1356. homeassistant/components/melcloud/translations/et.json +0 -10
  1357. homeassistant/components/melcloud/translations/fi.json +0 -9
  1358. homeassistant/components/melcloud/translations/fr.json +0 -8
  1359. homeassistant/components/melcloud/translations/fy.json +1 -7
  1360. homeassistant/components/melcloud/translations/hu.json +0 -10
  1361. homeassistant/components/melcloud/translations/id.json +0 -9
  1362. homeassistant/components/melcloud/translations/it.json +0 -9
  1363. homeassistant/components/melcloud/translations/ja.json +0 -9
  1364. homeassistant/components/melcloud/translations/ko.json +0 -9
  1365. homeassistant/components/melcloud/translations/lt.json +0 -10
  1366. homeassistant/components/melcloud/translations/nl.json +0 -5
  1367. homeassistant/components/melcloud/translations/pl.json +0 -9
  1368. homeassistant/components/melcloud/translations/pt-BR.json +0 -9
  1369. homeassistant/components/melcloud/translations/pt.json +0 -10
  1370. homeassistant/components/melcloud/translations/ru.json +0 -10
  1371. homeassistant/components/melcloud/translations/sk.json +0 -10
  1372. homeassistant/components/melcloud/translations/sv.json +0 -10
  1373. homeassistant/components/melcloud/translations/tr.json +0 -10
  1374. homeassistant/components/melcloud/translations/zh-Hans.json +0 -10
  1375. homeassistant/components/melcloud/translations/zh-Hant.json +0 -10
  1376. homeassistant/components/microbees/strings.json +7 -1
  1377. homeassistant/components/microbees/translations/cs.json +6 -0
  1378. homeassistant/components/microbees/translations/de.json +6 -0
  1379. homeassistant/components/microbees/translations/el.json +6 -0
  1380. homeassistant/components/microbees/translations/en-GB.json +6 -0
  1381. homeassistant/components/microbees/translations/en.json +6 -0
  1382. homeassistant/components/microbees/translations/es.json +6 -0
  1383. homeassistant/components/microbees/translations/et.json +6 -0
  1384. homeassistant/components/microbees/translations/fr.json +6 -0
  1385. homeassistant/components/microbees/translations/ga.json +14 -1
  1386. homeassistant/components/microbees/translations/he.json +6 -0
  1387. homeassistant/components/microbees/translations/id.json +6 -0
  1388. homeassistant/components/microbees/translations/lt.json +6 -0
  1389. homeassistant/components/microbees/translations/mk.json +14 -1
  1390. homeassistant/components/microbees/translations/pt.json +6 -0
  1391. homeassistant/components/microbees/translations/ru.json +6 -0
  1392. homeassistant/components/microbees/translations/sk.json +6 -0
  1393. homeassistant/components/microbees/translations/sv.json +6 -0
  1394. homeassistant/components/microbees/translations/tr.json +6 -0
  1395. homeassistant/components/microbees/translations/zh-Hans.json +6 -0
  1396. homeassistant/components/microbees/translations/zh-Hant.json +6 -0
  1397. homeassistant/components/miele/const.py +27 -0
  1398. homeassistant/components/miele/icons.json +21 -24
  1399. homeassistant/components/miele/sensor.py +14 -34
  1400. homeassistant/components/miele/strings.json +28 -25
  1401. homeassistant/components/miele/translations/bg.json +19 -18
  1402. homeassistant/components/miele/translations/ca.json +0 -7
  1403. homeassistant/components/miele/translations/cs.json +27 -24
  1404. homeassistant/components/miele/translations/de.json +27 -24
  1405. homeassistant/components/miele/translations/el.json +28 -3
  1406. homeassistant/components/miele/translations/en-GB.json +7 -27
  1407. homeassistant/components/miele/translations/en.json +26 -23
  1408. homeassistant/components/miele/translations/es.json +27 -24
  1409. homeassistant/components/miele/translations/et.json +27 -24
  1410. homeassistant/components/miele/translations/fr.json +9 -4
  1411. homeassistant/components/miele/translations/ga.json +9 -27
  1412. homeassistant/components/miele/translations/he.json +6 -26
  1413. homeassistant/components/miele/translations/hu.json +1 -27
  1414. homeassistant/components/miele/translations/id.json +6 -0
  1415. homeassistant/components/miele/translations/it.json +1 -27
  1416. homeassistant/components/miele/translations/lt.json +27 -24
  1417. homeassistant/components/miele/translations/mk.json +12 -0
  1418. homeassistant/components/miele/translations/nl.json +24 -0
  1419. homeassistant/components/miele/translations/pt.json +27 -24
  1420. homeassistant/components/miele/translations/ru.json +6 -0
  1421. homeassistant/components/miele/translations/sk.json +27 -24
  1422. homeassistant/components/miele/translations/sv.json +27 -24
  1423. homeassistant/components/miele/translations/tr.json +9 -7
  1424. homeassistant/components/miele/translations/zh-Hans.json +27 -24
  1425. homeassistant/components/miele/translations/zh-Hant.json +27 -24
  1426. homeassistant/components/min_max/translations/pt.json +1 -1
  1427. homeassistant/components/modbus/manifest.json +1 -1
  1428. homeassistant/components/monzo/strings.json +7 -1
  1429. homeassistant/components/monzo/translations/cs.json +6 -0
  1430. homeassistant/components/monzo/translations/de.json +6 -0
  1431. homeassistant/components/monzo/translations/el.json +6 -0
  1432. homeassistant/components/monzo/translations/en-GB.json +6 -0
  1433. homeassistant/components/monzo/translations/en.json +6 -0
  1434. homeassistant/components/monzo/translations/es.json +6 -0
  1435. homeassistant/components/monzo/translations/et.json +6 -0
  1436. homeassistant/components/monzo/translations/fr.json +14 -1
  1437. homeassistant/components/monzo/translations/ga.json +14 -1
  1438. homeassistant/components/monzo/translations/he.json +6 -0
  1439. homeassistant/components/monzo/translations/id.json +6 -0
  1440. homeassistant/components/monzo/translations/lt.json +6 -0
  1441. homeassistant/components/monzo/translations/mk.json +14 -1
  1442. homeassistant/components/monzo/translations/pt.json +6 -0
  1443. homeassistant/components/monzo/translations/ru.json +6 -0
  1444. homeassistant/components/monzo/translations/sk.json +6 -0
  1445. homeassistant/components/monzo/translations/sv.json +6 -0
  1446. homeassistant/components/monzo/translations/tr.json +6 -0
  1447. homeassistant/components/monzo/translations/zh-Hans.json +6 -0
  1448. homeassistant/components/monzo/translations/zh-Hant.json +6 -0
  1449. homeassistant/components/motion_blinds/translations/el.json +7 -3
  1450. homeassistant/components/motionmount/translations/el.json +1 -1
  1451. homeassistant/components/mqtt/__init__.py +2 -4
  1452. homeassistant/components/mqtt/client.py +8 -14
  1453. homeassistant/components/mqtt/config_flow.py +42 -6
  1454. homeassistant/components/mqtt/entity.py +6 -2
  1455. homeassistant/components/mqtt/icons.json +5 -0
  1456. homeassistant/components/mqtt/sensor.py +3 -40
  1457. homeassistant/components/mqtt/strings.json +26 -5
  1458. homeassistant/components/mqtt/translations/bg.json +10 -0
  1459. homeassistant/components/mqtt/translations/cs.json +7 -5
  1460. homeassistant/components/mqtt/translations/de.json +25 -4
  1461. homeassistant/components/mqtt/translations/el.json +32 -4
  1462. homeassistant/components/mqtt/translations/en-GB.json +1 -5
  1463. homeassistant/components/mqtt/translations/en.json +26 -5
  1464. homeassistant/components/mqtt/translations/es.json +25 -4
  1465. homeassistant/components/mqtt/translations/et.json +25 -4
  1466. homeassistant/components/mqtt/translations/fi.json +3 -0
  1467. homeassistant/components/mqtt/translations/fr.json +0 -5
  1468. homeassistant/components/mqtt/translations/fy.json +0 -1
  1469. homeassistant/components/mqtt/translations/ga.json +25 -7
  1470. homeassistant/components/mqtt/translations/he.json +0 -5
  1471. homeassistant/components/mqtt/translations/hu.json +0 -5
  1472. homeassistant/components/mqtt/translations/id.json +0 -4
  1473. homeassistant/components/mqtt/translations/it.json +0 -4
  1474. homeassistant/components/mqtt/translations/ja.json +0 -4
  1475. homeassistant/components/mqtt/translations/lt.json +0 -5
  1476. homeassistant/components/mqtt/translations/mk.json +23 -0
  1477. homeassistant/components/mqtt/translations/nl.json +0 -5
  1478. homeassistant/components/mqtt/translations/pt.json +24 -5
  1479. homeassistant/components/mqtt/translations/ru.json +18 -4
  1480. homeassistant/components/mqtt/translations/sk.json +25 -4
  1481. homeassistant/components/mqtt/translations/sl.json +0 -3
  1482. homeassistant/components/mqtt/translations/sv.json +27 -6
  1483. homeassistant/components/mqtt/translations/tr.json +0 -4
  1484. homeassistant/components/mqtt/translations/zh-Hans.json +26 -5
  1485. homeassistant/components/mqtt/translations/zh-Hant.json +25 -4
  1486. homeassistant/components/mqtt/triggers.yaml +14 -0
  1487. homeassistant/components/mqtt/util.py +2 -4
  1488. homeassistant/components/music_assistant/__init__.py +33 -2
  1489. homeassistant/components/music_assistant/button.py +47 -0
  1490. homeassistant/components/music_assistant/helpers.py +28 -0
  1491. homeassistant/components/music_assistant/icons.json +7 -0
  1492. homeassistant/components/music_assistant/media_player.py +11 -50
  1493. homeassistant/components/music_assistant/strings.json +7 -0
  1494. homeassistant/components/music_assistant/translations/cs.json +7 -0
  1495. homeassistant/components/music_assistant/translations/de.json +7 -0
  1496. homeassistant/components/music_assistant/translations/el.json +7 -0
  1497. homeassistant/components/music_assistant/translations/en.json +7 -0
  1498. homeassistant/components/music_assistant/translations/es.json +7 -0
  1499. homeassistant/components/music_assistant/translations/et.json +7 -0
  1500. homeassistant/components/music_assistant/translations/lt.json +7 -0
  1501. homeassistant/components/music_assistant/translations/pt.json +7 -0
  1502. homeassistant/components/music_assistant/translations/sk.json +7 -0
  1503. homeassistant/components/music_assistant/translations/zh-Hans.json +7 -0
  1504. homeassistant/components/music_assistant/translations/zh-Hant.json +7 -0
  1505. homeassistant/components/mysensors/manifest.json +1 -1
  1506. homeassistant/components/mysensors/translations/el.json +4 -2
  1507. homeassistant/components/myuplink/strings.json +7 -1
  1508. homeassistant/components/myuplink/translations/cs.json +6 -0
  1509. homeassistant/components/myuplink/translations/de.json +6 -0
  1510. homeassistant/components/myuplink/translations/el.json +6 -0
  1511. homeassistant/components/myuplink/translations/en-GB.json +6 -0
  1512. homeassistant/components/myuplink/translations/en.json +6 -0
  1513. homeassistant/components/myuplink/translations/es.json +6 -0
  1514. homeassistant/components/myuplink/translations/et.json +6 -0
  1515. homeassistant/components/myuplink/translations/fr.json +6 -0
  1516. homeassistant/components/myuplink/translations/ga.json +14 -1
  1517. homeassistant/components/myuplink/translations/he.json +6 -0
  1518. homeassistant/components/myuplink/translations/id.json +6 -0
  1519. homeassistant/components/myuplink/translations/lt.json +6 -0
  1520. homeassistant/components/myuplink/translations/mk.json +14 -1
  1521. homeassistant/components/myuplink/translations/pt.json +6 -0
  1522. homeassistant/components/myuplink/translations/ru.json +6 -0
  1523. homeassistant/components/myuplink/translations/sk.json +6 -0
  1524. homeassistant/components/myuplink/translations/sv.json +6 -0
  1525. homeassistant/components/myuplink/translations/tr.json +6 -0
  1526. homeassistant/components/myuplink/translations/zh-Hans.json +6 -0
  1527. homeassistant/components/myuplink/translations/zh-Hant.json +6 -0
  1528. homeassistant/components/neato/manifest.json +1 -1
  1529. homeassistant/components/neato/strings.json +7 -1
  1530. homeassistant/components/neato/translations/cs.json +6 -0
  1531. homeassistant/components/neato/translations/de.json +6 -0
  1532. homeassistant/components/neato/translations/el.json +6 -0
  1533. homeassistant/components/neato/translations/en-GB.json +6 -0
  1534. homeassistant/components/neato/translations/en.json +6 -0
  1535. homeassistant/components/neato/translations/es.json +6 -0
  1536. homeassistant/components/neato/translations/et.json +6 -0
  1537. homeassistant/components/neato/translations/fr.json +6 -0
  1538. homeassistant/components/neato/translations/ga.json +14 -1
  1539. homeassistant/components/neato/translations/he.json +6 -0
  1540. homeassistant/components/neato/translations/id.json +6 -0
  1541. homeassistant/components/neato/translations/lt.json +6 -0
  1542. homeassistant/components/neato/translations/mk.json +14 -1
  1543. homeassistant/components/neato/translations/pt.json +6 -0
  1544. homeassistant/components/neato/translations/ru.json +6 -0
  1545. homeassistant/components/neato/translations/sk.json +6 -0
  1546. homeassistant/components/neato/translations/sv.json +6 -0
  1547. homeassistant/components/neato/translations/tr.json +6 -0
  1548. homeassistant/components/neato/translations/zh-Hans.json +6 -0
  1549. homeassistant/components/neato/translations/zh-Hant.json +6 -0
  1550. homeassistant/components/ness_alarm/manifest.json +1 -1
  1551. homeassistant/components/nest/climate.py +0 -2
  1552. homeassistant/components/nest/strings.json +7 -1
  1553. homeassistant/components/nest/translations/cs.json +6 -0
  1554. homeassistant/components/nest/translations/de.json +6 -0
  1555. homeassistant/components/nest/translations/el.json +6 -0
  1556. homeassistant/components/nest/translations/en-GB.json +6 -0
  1557. homeassistant/components/nest/translations/en.json +6 -0
  1558. homeassistant/components/nest/translations/es.json +6 -0
  1559. homeassistant/components/nest/translations/et.json +6 -0
  1560. homeassistant/components/nest/translations/fr.json +6 -0
  1561. homeassistant/components/nest/translations/ga.json +8 -0
  1562. homeassistant/components/nest/translations/he.json +6 -0
  1563. homeassistant/components/nest/translations/id.json +6 -0
  1564. homeassistant/components/nest/translations/lt.json +6 -0
  1565. homeassistant/components/nest/translations/mk.json +14 -1
  1566. homeassistant/components/nest/translations/pt.json +6 -0
  1567. homeassistant/components/nest/translations/ru.json +6 -0
  1568. homeassistant/components/nest/translations/sk.json +6 -0
  1569. homeassistant/components/nest/translations/sv.json +7 -1
  1570. homeassistant/components/nest/translations/tr.json +6 -0
  1571. homeassistant/components/nest/translations/zh-Hans.json +6 -0
  1572. homeassistant/components/nest/translations/zh-Hant.json +6 -0
  1573. homeassistant/components/netatmo/manifest.json +1 -1
  1574. homeassistant/components/netatmo/strings.json +7 -1
  1575. homeassistant/components/netatmo/translations/cs.json +6 -0
  1576. homeassistant/components/netatmo/translations/de.json +6 -0
  1577. homeassistant/components/netatmo/translations/el.json +6 -0
  1578. homeassistant/components/netatmo/translations/en-GB.json +6 -0
  1579. homeassistant/components/netatmo/translations/en.json +6 -0
  1580. homeassistant/components/netatmo/translations/es.json +6 -0
  1581. homeassistant/components/netatmo/translations/et.json +6 -0
  1582. homeassistant/components/netatmo/translations/fr.json +6 -0
  1583. homeassistant/components/netatmo/translations/ga.json +12 -0
  1584. homeassistant/components/netatmo/translations/he.json +6 -0
  1585. homeassistant/components/netatmo/translations/id.json +6 -0
  1586. homeassistant/components/netatmo/translations/lt.json +6 -0
  1587. homeassistant/components/netatmo/translations/mk.json +12 -0
  1588. homeassistant/components/netatmo/translations/pt.json +6 -0
  1589. homeassistant/components/netatmo/translations/ru.json +6 -0
  1590. homeassistant/components/netatmo/translations/sk.json +6 -0
  1591. homeassistant/components/netatmo/translations/sv.json +6 -0
  1592. homeassistant/components/netatmo/translations/tr.json +6 -0
  1593. homeassistant/components/netatmo/translations/zh-Hans.json +6 -0
  1594. homeassistant/components/netatmo/translations/zh-Hant.json +6 -0
  1595. homeassistant/components/netgear/translations/mk.json +7 -0
  1596. homeassistant/components/netgear_lte/__init__.py +1 -1
  1597. homeassistant/components/netgear_lte/services.py +33 -25
  1598. homeassistant/components/network/__init__.py +1 -3
  1599. homeassistant/components/nextbus/manifest.json +1 -1
  1600. homeassistant/components/nextcloud/translations/mk.json +9 -0
  1601. homeassistant/components/nextdns/binary_sensor.py +8 -25
  1602. homeassistant/components/nextdns/button.py +4 -19
  1603. homeassistant/components/nextdns/coordinator.py +4 -13
  1604. homeassistant/components/nextdns/entity.py +35 -0
  1605. homeassistant/components/nextdns/sensor.py +13 -27
  1606. homeassistant/components/nextdns/strings.json +10 -1
  1607. homeassistant/components/nextdns/switch.py +3 -9
  1608. homeassistant/components/nextdns/translations/ar.json +0 -7
  1609. homeassistant/components/nextdns/translations/bg.json +1 -1
  1610. homeassistant/components/nextdns/translations/ca.json +0 -5
  1611. homeassistant/components/nextdns/translations/cs.json +10 -1
  1612. homeassistant/components/nextdns/translations/de.json +10 -1
  1613. homeassistant/components/nextdns/translations/el.json +10 -1
  1614. homeassistant/components/nextdns/translations/en-GB.json +5 -2
  1615. homeassistant/components/nextdns/translations/en.json +10 -1
  1616. homeassistant/components/nextdns/translations/es.json +10 -1
  1617. homeassistant/components/nextdns/translations/et.json +10 -1
  1618. homeassistant/components/nextdns/translations/fi.json +0 -5
  1619. homeassistant/components/nextdns/translations/fr.json +10 -1
  1620. homeassistant/components/nextdns/translations/ga.json +22 -0
  1621. homeassistant/components/nextdns/translations/he.json +0 -5
  1622. homeassistant/components/nextdns/translations/hu.json +0 -5
  1623. homeassistant/components/nextdns/translations/id.json +0 -5
  1624. homeassistant/components/nextdns/translations/it.json +0 -5
  1625. homeassistant/components/nextdns/translations/ja.json +0 -5
  1626. homeassistant/components/nextdns/translations/ko.json +0 -5
  1627. homeassistant/components/nextdns/translations/lt.json +10 -1
  1628. homeassistant/components/nextdns/translations/lv.json +0 -5
  1629. homeassistant/components/nextdns/translations/mk.json +11 -1
  1630. homeassistant/components/nextdns/translations/nb.json +0 -5
  1631. homeassistant/components/nextdns/translations/nl.json +0 -5
  1632. homeassistant/components/nextdns/translations/pl.json +7 -1
  1633. homeassistant/components/nextdns/translations/pt-BR.json +0 -5
  1634. homeassistant/components/nextdns/translations/pt.json +10 -1
  1635. homeassistant/components/nextdns/translations/ro.json +0 -5
  1636. homeassistant/components/nextdns/translations/ru.json +10 -1
  1637. homeassistant/components/nextdns/translations/sk.json +10 -1
  1638. homeassistant/components/nextdns/translations/sv.json +7 -1
  1639. homeassistant/components/nextdns/translations/tr.json +10 -1
  1640. homeassistant/components/nextdns/translations/uk.json +0 -5
  1641. homeassistant/components/nextdns/translations/zh-Hans.json +10 -1
  1642. homeassistant/components/nextdns/translations/zh-Hant.json +10 -1
  1643. homeassistant/components/nfandroidtv/__init__.py +1 -10
  1644. homeassistant/components/nfandroidtv/notify.py +32 -19
  1645. homeassistant/components/niko_home_control/config_flow.py +0 -12
  1646. homeassistant/components/niko_home_control/light.py +2 -63
  1647. homeassistant/components/niko_home_control/strings.json +0 -6
  1648. homeassistant/components/niko_home_control/translations/cs.json +0 -6
  1649. homeassistant/components/niko_home_control/translations/de.json +0 -6
  1650. homeassistant/components/niko_home_control/translations/el.json +0 -6
  1651. homeassistant/components/niko_home_control/translations/en-GB.json +0 -6
  1652. homeassistant/components/niko_home_control/translations/en.json +0 -6
  1653. homeassistant/components/niko_home_control/translations/es.json +0 -6
  1654. homeassistant/components/niko_home_control/translations/et.json +0 -6
  1655. homeassistant/components/niko_home_control/translations/hu.json +0 -6
  1656. homeassistant/components/niko_home_control/translations/id.json +0 -5
  1657. homeassistant/components/niko_home_control/translations/it.json +0 -6
  1658. homeassistant/components/niko_home_control/translations/ja.json +0 -6
  1659. homeassistant/components/niko_home_control/translations/lt.json +0 -6
  1660. homeassistant/components/niko_home_control/translations/nl.json +0 -6
  1661. homeassistant/components/niko_home_control/translations/pt.json +0 -6
  1662. homeassistant/components/niko_home_control/translations/ru.json +0 -6
  1663. homeassistant/components/niko_home_control/translations/sk.json +0 -6
  1664. homeassistant/components/niko_home_control/translations/sv.json +0 -6
  1665. homeassistant/components/niko_home_control/translations/tr.json +0 -6
  1666. homeassistant/components/niko_home_control/translations/zh-Hans.json +0 -6
  1667. homeassistant/components/niko_home_control/translations/zh-Hant.json +0 -6
  1668. homeassistant/components/nina/__init__.py +5 -7
  1669. homeassistant/components/nina/binary_sensor.py +4 -3
  1670. homeassistant/components/nina/coordinator.py +2 -0
  1671. homeassistant/components/nmbs/config_flow.py +0 -65
  1672. homeassistant/components/nmbs/sensor.py +11 -103
  1673. homeassistant/components/nmbs/strings.json +0 -6
  1674. homeassistant/components/nmbs/translations/bg.json +0 -5
  1675. homeassistant/components/nmbs/translations/cs.json +0 -6
  1676. homeassistant/components/nmbs/translations/de.json +0 -6
  1677. homeassistant/components/nmbs/translations/el.json +0 -6
  1678. homeassistant/components/nmbs/translations/en-GB.json +0 -6
  1679. homeassistant/components/nmbs/translations/en.json +0 -6
  1680. homeassistant/components/nmbs/translations/es.json +0 -6
  1681. homeassistant/components/nmbs/translations/et.json +0 -6
  1682. homeassistant/components/nmbs/translations/ga.json +0 -6
  1683. homeassistant/components/nmbs/translations/hu.json +0 -6
  1684. homeassistant/components/nmbs/translations/ja.json +0 -5
  1685. homeassistant/components/nmbs/translations/lt.json +0 -6
  1686. homeassistant/components/nmbs/translations/nl.json +0 -5
  1687. homeassistant/components/nmbs/translations/pt-BR.json +0 -5
  1688. homeassistant/components/nmbs/translations/pt.json +0 -6
  1689. homeassistant/components/nmbs/translations/ru.json +0 -6
  1690. homeassistant/components/nmbs/translations/sk.json +0 -6
  1691. homeassistant/components/nmbs/translations/sv.json +0 -6
  1692. homeassistant/components/nmbs/translations/tr.json +0 -6
  1693. homeassistant/components/nmbs/translations/zh-Hans.json +0 -6
  1694. homeassistant/components/nmbs/translations/zh-Hant.json +0 -6
  1695. homeassistant/components/nobo_hub/translations/el.json +4 -0
  1696. homeassistant/components/nordpool/services.py +2 -0
  1697. homeassistant/components/notify/legacy.py +1 -2
  1698. homeassistant/components/ntfy/__init__.py +5 -6
  1699. homeassistant/components/ntfy/config_flow.py +115 -0
  1700. homeassistant/components/ntfy/coordinator.py +74 -0
  1701. homeassistant/components/ntfy/icons.json +62 -0
  1702. homeassistant/components/ntfy/notify.py +3 -2
  1703. homeassistant/components/ntfy/quality_scale.yaml +1 -1
  1704. homeassistant/components/ntfy/sensor.py +272 -0
  1705. homeassistant/components/ntfy/strings.json +111 -2
  1706. homeassistant/components/ntfy/translations/bg.json +49 -1
  1707. homeassistant/components/ntfy/translations/cs.json +110 -1
  1708. homeassistant/components/ntfy/translations/de.json +110 -1
  1709. homeassistant/components/ntfy/translations/el.json +110 -1
  1710. homeassistant/components/ntfy/translations/en.json +110 -1
  1711. homeassistant/components/ntfy/translations/es.json +110 -1
  1712. homeassistant/components/ntfy/translations/et.json +110 -1
  1713. homeassistant/components/ntfy/translations/ga.json +17 -0
  1714. homeassistant/components/ntfy/translations/id.json +13 -0
  1715. homeassistant/components/ntfy/translations/lt.json +112 -2
  1716. homeassistant/components/ntfy/translations/nl.json +27 -1
  1717. homeassistant/components/ntfy/translations/pt.json +110 -1
  1718. homeassistant/components/ntfy/translations/ru.json +28 -1
  1719. homeassistant/components/ntfy/translations/sk.json +110 -1
  1720. homeassistant/components/ntfy/translations/sv.json +100 -1
  1721. homeassistant/components/ntfy/translations/tr.json +32 -1
  1722. homeassistant/components/ntfy/translations/zh-Hans.json +110 -1
  1723. homeassistant/components/ntfy/translations/zh-Hant.json +110 -1
  1724. homeassistant/components/nuki/lock.py +2 -2
  1725. homeassistant/components/nut/translations/fi.json +4 -1
  1726. homeassistant/components/nzbget/__init__.py +11 -43
  1727. homeassistant/components/nzbget/services.py +59 -0
  1728. homeassistant/components/nzbget/strings.json +5 -0
  1729. homeassistant/components/nzbget/translations/bg.json +5 -0
  1730. homeassistant/components/nzbget/translations/cs.json +5 -0
  1731. homeassistant/components/nzbget/translations/de.json +5 -0
  1732. homeassistant/components/nzbget/translations/el.json +5 -0
  1733. homeassistant/components/nzbget/translations/en-GB.json +5 -0
  1734. homeassistant/components/nzbget/translations/en.json +5 -0
  1735. homeassistant/components/nzbget/translations/es.json +5 -0
  1736. homeassistant/components/nzbget/translations/et.json +5 -0
  1737. homeassistant/components/nzbget/translations/fr.json +5 -0
  1738. homeassistant/components/nzbget/translations/ga.json +7 -1
  1739. homeassistant/components/nzbget/translations/hu.json +5 -0
  1740. homeassistant/components/nzbget/translations/it.json +5 -0
  1741. homeassistant/components/nzbget/translations/lt.json +5 -0
  1742. homeassistant/components/nzbget/translations/pt.json +5 -0
  1743. homeassistant/components/nzbget/translations/sk.json +5 -0
  1744. homeassistant/components/nzbget/translations/sv.json +5 -0
  1745. homeassistant/components/nzbget/translations/tr.json +5 -0
  1746. homeassistant/components/nzbget/translations/zh-Hans.json +5 -0
  1747. homeassistant/components/nzbget/translations/zh-Hant.json +5 -0
  1748. homeassistant/components/ohme/services.py +2 -0
  1749. homeassistant/components/ohme/translations/sv.json +1 -1
  1750. homeassistant/components/ollama/__init__.py +86 -6
  1751. homeassistant/components/ollama/config_flow.py +136 -68
  1752. homeassistant/components/ollama/const.py +4 -0
  1753. homeassistant/components/ollama/conversation.py +61 -37
  1754. homeassistant/components/ollama/manifest.json +1 -1
  1755. homeassistant/components/ollama/strings.json +30 -15
  1756. homeassistant/components/ollama/translations/bg.json +15 -5
  1757. homeassistant/components/ollama/translations/ca.json +0 -15
  1758. homeassistant/components/ollama/translations/cs.json +29 -14
  1759. homeassistant/components/ollama/translations/de.json +29 -14
  1760. homeassistant/components/ollama/translations/el.json +29 -14
  1761. homeassistant/components/ollama/translations/en-GB.json +0 -18
  1762. homeassistant/components/ollama/translations/en.json +29 -14
  1763. homeassistant/components/ollama/translations/es.json +29 -14
  1764. homeassistant/components/ollama/translations/et.json +29 -14
  1765. homeassistant/components/ollama/translations/fi.json +0 -9
  1766. homeassistant/components/ollama/translations/fr.json +0 -18
  1767. homeassistant/components/ollama/translations/ga.json +31 -1
  1768. homeassistant/components/ollama/translations/he.json +0 -9
  1769. homeassistant/components/ollama/translations/hu.json +0 -18
  1770. homeassistant/components/ollama/translations/id.json +14 -5
  1771. homeassistant/components/ollama/translations/it.json +0 -10
  1772. homeassistant/components/ollama/translations/ja.json +0 -18
  1773. homeassistant/components/ollama/translations/lt.json +29 -14
  1774. homeassistant/components/ollama/translations/mk.json +13 -1
  1775. homeassistant/components/ollama/translations/nl.json +14 -8
  1776. homeassistant/components/ollama/translations/pl.json +0 -9
  1777. homeassistant/components/ollama/translations/pt.json +29 -14
  1778. homeassistant/components/ollama/translations/ru.json +10 -15
  1779. homeassistant/components/ollama/translations/sk.json +29 -14
  1780. homeassistant/components/ollama/translations/sl.json +0 -12
  1781. homeassistant/components/ollama/translations/sv.json +15 -14
  1782. homeassistant/components/ollama/translations/tr.json +0 -18
  1783. homeassistant/components/ollama/translations/vi.json +1 -11
  1784. homeassistant/components/ollama/translations/zh-Hans.json +29 -14
  1785. homeassistant/components/ollama/translations/zh-Hant.json +29 -14
  1786. homeassistant/components/onboarding/views.py +2 -4
  1787. homeassistant/components/ondilo_ico/strings.json +7 -1
  1788. homeassistant/components/ondilo_ico/translations/cs.json +6 -0
  1789. homeassistant/components/ondilo_ico/translations/de.json +6 -0
  1790. homeassistant/components/ondilo_ico/translations/el.json +6 -0
  1791. homeassistant/components/ondilo_ico/translations/en-GB.json +6 -0
  1792. homeassistant/components/ondilo_ico/translations/en.json +6 -0
  1793. homeassistant/components/ondilo_ico/translations/es.json +6 -0
  1794. homeassistant/components/ondilo_ico/translations/et.json +6 -0
  1795. homeassistant/components/ondilo_ico/translations/fr.json +6 -0
  1796. homeassistant/components/ondilo_ico/translations/ga.json +14 -1
  1797. homeassistant/components/ondilo_ico/translations/he.json +6 -0
  1798. homeassistant/components/ondilo_ico/translations/id.json +6 -0
  1799. homeassistant/components/ondilo_ico/translations/lt.json +6 -0
  1800. homeassistant/components/ondilo_ico/translations/mk.json +14 -1
  1801. homeassistant/components/ondilo_ico/translations/pt.json +6 -0
  1802. homeassistant/components/ondilo_ico/translations/ru.json +6 -0
  1803. homeassistant/components/ondilo_ico/translations/sk.json +6 -0
  1804. homeassistant/components/ondilo_ico/translations/sv.json +6 -0
  1805. homeassistant/components/ondilo_ico/translations/tr.json +6 -0
  1806. homeassistant/components/ondilo_ico/translations/zh-Hans.json +6 -0
  1807. homeassistant/components/ondilo_ico/translations/zh-Hant.json +6 -0
  1808. homeassistant/components/onedrive/__init__.py +2 -2
  1809. homeassistant/components/onedrive/services.py +10 -9
  1810. homeassistant/components/onedrive/strings.json +7 -1
  1811. homeassistant/components/onedrive/translations/cs.json +6 -0
  1812. homeassistant/components/onedrive/translations/de.json +6 -0
  1813. homeassistant/components/onedrive/translations/el.json +6 -0
  1814. homeassistant/components/onedrive/translations/en-GB.json +6 -0
  1815. homeassistant/components/onedrive/translations/en.json +6 -0
  1816. homeassistant/components/onedrive/translations/es.json +6 -0
  1817. homeassistant/components/onedrive/translations/et.json +6 -0
  1818. homeassistant/components/onedrive/translations/fr.json +6 -0
  1819. homeassistant/components/onedrive/translations/ga.json +8 -0
  1820. homeassistant/components/onedrive/translations/he.json +6 -0
  1821. homeassistant/components/onedrive/translations/id.json +6 -0
  1822. homeassistant/components/onedrive/translations/lt.json +6 -0
  1823. homeassistant/components/onedrive/translations/mk.json +12 -0
  1824. homeassistant/components/onedrive/translations/pt.json +6 -0
  1825. homeassistant/components/onedrive/translations/ru.json +6 -0
  1826. homeassistant/components/onedrive/translations/sk.json +6 -0
  1827. homeassistant/components/onedrive/translations/sv.json +6 -0
  1828. homeassistant/components/onedrive/translations/tr.json +6 -0
  1829. homeassistant/components/onedrive/translations/zh-Hans.json +6 -0
  1830. homeassistant/components/onedrive/translations/zh-Hant.json +6 -0
  1831. homeassistant/components/onewire/binary_sensor.py +4 -6
  1832. homeassistant/components/onewire/const.py +0 -1
  1833. homeassistant/components/onewire/entity.py +2 -5
  1834. homeassistant/components/onewire/switch.py +4 -12
  1835. homeassistant/components/onewire/translations/sv.json +4 -4
  1836. homeassistant/components/onkyo/__init__.py +2 -2
  1837. homeassistant/components/onkyo/services.py +3 -2
  1838. homeassistant/components/onvif/__init__.py +3 -3
  1839. homeassistant/components/onvif/const.py +9 -2
  1840. homeassistant/components/onvif/device.py +3 -3
  1841. homeassistant/components/onvif/event.py +25 -7
  1842. homeassistant/components/onvif/manifest.json +1 -1
  1843. homeassistant/components/openai_conversation/__init__.py +94 -7
  1844. homeassistant/components/openai_conversation/config_flow.py +264 -154
  1845. homeassistant/components/openai_conversation/const.py +3 -1
  1846. homeassistant/components/openai_conversation/conversation.py +22 -16
  1847. homeassistant/components/openai_conversation/strings.json +52 -25
  1848. homeassistant/components/openai_conversation/translations/af.json +0 -10
  1849. homeassistant/components/openai_conversation/translations/bg.json +22 -10
  1850. homeassistant/components/openai_conversation/translations/ca.json +0 -14
  1851. homeassistant/components/openai_conversation/translations/cs.json +56 -30
  1852. homeassistant/components/openai_conversation/translations/da.json +0 -9
  1853. homeassistant/components/openai_conversation/translations/de.json +56 -30
  1854. homeassistant/components/openai_conversation/translations/el.json +56 -30
  1855. homeassistant/components/openai_conversation/translations/en-GB.json +0 -30
  1856. homeassistant/components/openai_conversation/translations/en.json +56 -30
  1857. homeassistant/components/openai_conversation/translations/es.json +56 -30
  1858. homeassistant/components/openai_conversation/translations/et.json +56 -30
  1859. homeassistant/components/openai_conversation/translations/fi.json +0 -12
  1860. homeassistant/components/openai_conversation/translations/fr.json +0 -30
  1861. homeassistant/components/openai_conversation/translations/fy.json +0 -9
  1862. homeassistant/components/openai_conversation/translations/ga.json +0 -22
  1863. homeassistant/components/openai_conversation/translations/he.json +0 -18
  1864. homeassistant/components/openai_conversation/translations/hu.json +0 -30
  1865. homeassistant/components/openai_conversation/translations/id.json +23 -18
  1866. homeassistant/components/openai_conversation/translations/it.json +0 -17
  1867. homeassistant/components/openai_conversation/translations/ja.json +0 -29
  1868. homeassistant/components/openai_conversation/translations/ko.json +0 -11
  1869. homeassistant/components/openai_conversation/translations/lt.json +56 -30
  1870. homeassistant/components/openai_conversation/translations/lv.json +0 -9
  1871. homeassistant/components/openai_conversation/translations/mk.json +44 -0
  1872. homeassistant/components/openai_conversation/translations/nb.json +0 -11
  1873. homeassistant/components/openai_conversation/translations/nl.json +7 -19
  1874. homeassistant/components/openai_conversation/translations/pl.json +0 -29
  1875. homeassistant/components/openai_conversation/translations/pt-BR.json +0 -18
  1876. homeassistant/components/openai_conversation/translations/pt.json +56 -30
  1877. homeassistant/components/openai_conversation/translations/ro.json +0 -11
  1878. homeassistant/components/openai_conversation/translations/ru.json +49 -30
  1879. homeassistant/components/openai_conversation/translations/sk.json +56 -30
  1880. homeassistant/components/openai_conversation/translations/sl.json +0 -21
  1881. homeassistant/components/openai_conversation/translations/sv.json +38 -30
  1882. homeassistant/components/openai_conversation/translations/tr.json +0 -23
  1883. homeassistant/components/openai_conversation/translations/uk.json +0 -12
  1884. homeassistant/components/openai_conversation/translations/vi.json +0 -12
  1885. homeassistant/components/openai_conversation/translations/zh-Hans.json +56 -30
  1886. homeassistant/components/openai_conversation/translations/zh-Hant.json +56 -30
  1887. homeassistant/components/opentherm_gw/__init__.py +12 -290
  1888. homeassistant/components/opentherm_gw/services.py +297 -0
  1889. homeassistant/components/opentherm_gw/strings.json +5 -0
  1890. homeassistant/components/opentherm_gw/translations/bg.json +5 -0
  1891. homeassistant/components/opentherm_gw/translations/cs.json +5 -0
  1892. homeassistant/components/opentherm_gw/translations/de.json +5 -0
  1893. homeassistant/components/opentherm_gw/translations/el.json +5 -0
  1894. homeassistant/components/opentherm_gw/translations/en-GB.json +5 -0
  1895. homeassistant/components/opentherm_gw/translations/en.json +5 -0
  1896. homeassistant/components/opentherm_gw/translations/es.json +5 -0
  1897. homeassistant/components/opentherm_gw/translations/et.json +5 -0
  1898. homeassistant/components/opentherm_gw/translations/fi.json +5 -0
  1899. homeassistant/components/opentherm_gw/translations/fr.json +5 -0
  1900. homeassistant/components/opentherm_gw/translations/ga.json +5 -0
  1901. homeassistant/components/opentherm_gw/translations/hu.json +5 -0
  1902. homeassistant/components/opentherm_gw/translations/it.json +5 -0
  1903. homeassistant/components/opentherm_gw/translations/lt.json +5 -0
  1904. homeassistant/components/opentherm_gw/translations/pt.json +5 -0
  1905. homeassistant/components/opentherm_gw/translations/sk.json +5 -0
  1906. homeassistant/components/opentherm_gw/translations/sv.json +5 -0
  1907. homeassistant/components/opentherm_gw/translations/tr.json +5 -0
  1908. homeassistant/components/opentherm_gw/translations/zh-Hans.json +5 -0
  1909. homeassistant/components/opentherm_gw/translations/zh-Hant.json +5 -0
  1910. homeassistant/components/opower/translations/el.json +3 -0
  1911. homeassistant/components/osoenergy/manifest.json +1 -1
  1912. homeassistant/components/osoenergy/translations/nl.json +13 -0
  1913. homeassistant/components/overkiz/manifest.json +1 -1
  1914. homeassistant/components/overkiz/translations/el.json +2 -0
  1915. homeassistant/components/overseerr/__init__.py +2 -2
  1916. homeassistant/components/overseerr/sensor.py +1 -1
  1917. homeassistant/components/overseerr/services.py +36 -33
  1918. homeassistant/components/overseerr/strings.json +1 -1
  1919. homeassistant/components/ovo_energy/manifest.json +1 -1
  1920. homeassistant/components/paperless_ngx/__init__.py +3 -3
  1921. homeassistant/components/paperless_ngx/config_flow.py +15 -8
  1922. homeassistant/components/paperless_ngx/coordinator.py +3 -6
  1923. homeassistant/components/paperless_ngx/diagnostics.py +1 -0
  1924. homeassistant/components/paperless_ngx/entity.py +4 -6
  1925. homeassistant/components/paperless_ngx/sensor.py +9 -8
  1926. homeassistant/components/paperless_ngx/strings.json +13 -4
  1927. homeassistant/components/paperless_ngx/translations/bg.json +7 -1
  1928. homeassistant/components/paperless_ngx/translations/cs.json +13 -4
  1929. homeassistant/components/paperless_ngx/translations/de.json +13 -4
  1930. homeassistant/components/paperless_ngx/translations/el.json +13 -4
  1931. homeassistant/components/paperless_ngx/translations/en-GB.json +5 -0
  1932. homeassistant/components/paperless_ngx/translations/en.json +13 -4
  1933. homeassistant/components/paperless_ngx/translations/es.json +13 -4
  1934. homeassistant/components/paperless_ngx/translations/et.json +13 -4
  1935. homeassistant/components/paperless_ngx/translations/fr.json +13 -4
  1936. homeassistant/components/paperless_ngx/translations/ga.json +9 -2
  1937. homeassistant/components/paperless_ngx/translations/hu.json +5 -0
  1938. homeassistant/components/paperless_ngx/translations/id.json +4 -2
  1939. homeassistant/components/paperless_ngx/translations/ja.json +9 -1
  1940. homeassistant/components/paperless_ngx/translations/lt.json +13 -4
  1941. homeassistant/components/paperless_ngx/translations/mk.json +5 -0
  1942. homeassistant/components/paperless_ngx/translations/nl.json +9 -2
  1943. homeassistant/components/paperless_ngx/translations/pt-BR.json +5 -0
  1944. homeassistant/components/paperless_ngx/translations/pt.json +13 -4
  1945. homeassistant/components/paperless_ngx/translations/ru.json +13 -4
  1946. homeassistant/components/paperless_ngx/translations/sk.json +13 -4
  1947. homeassistant/components/paperless_ngx/translations/sv.json +13 -4
  1948. homeassistant/components/paperless_ngx/translations/tr.json +13 -4
  1949. homeassistant/components/paperless_ngx/translations/zh-Hans.json +13 -4
  1950. homeassistant/components/paperless_ngx/translations/zh-Hant.json +13 -4
  1951. homeassistant/components/paperless_ngx/update.py +90 -0
  1952. homeassistant/components/picnic/__init__.py +12 -4
  1953. homeassistant/components/picnic/services.py +3 -5
  1954. homeassistant/components/playstation_network/__init__.py +34 -0
  1955. homeassistant/components/playstation_network/config_flow.py +125 -0
  1956. homeassistant/components/playstation_network/const.py +18 -0
  1957. homeassistant/components/playstation_network/coordinator.py +74 -0
  1958. homeassistant/components/playstation_network/helpers.py +154 -0
  1959. homeassistant/components/playstation_network/icons.json +32 -0
  1960. homeassistant/components/playstation_network/manifest.json +70 -0
  1961. homeassistant/components/playstation_network/media_player.py +131 -0
  1962. homeassistant/components/playstation_network/quality_scale.yaml +72 -0
  1963. homeassistant/components/playstation_network/sensor.py +168 -0
  1964. homeassistant/components/playstation_network/strings.json +73 -0
  1965. homeassistant/components/playstation_network/translations/bg.json +36 -0
  1966. homeassistant/components/playstation_network/translations/cs.json +73 -0
  1967. homeassistant/components/playstation_network/translations/de.json +73 -0
  1968. homeassistant/components/playstation_network/translations/el.json +73 -0
  1969. homeassistant/components/playstation_network/translations/en.json +73 -0
  1970. homeassistant/components/playstation_network/translations/es.json +73 -0
  1971. homeassistant/components/playstation_network/translations/et.json +73 -0
  1972. homeassistant/components/playstation_network/translations/ga.json +31 -0
  1973. homeassistant/components/playstation_network/translations/id.json +14 -0
  1974. homeassistant/components/playstation_network/translations/lt.json +44 -0
  1975. homeassistant/components/playstation_network/translations/mk.json +18 -0
  1976. homeassistant/components/playstation_network/translations/nl.json +14 -0
  1977. homeassistant/components/playstation_network/translations/pt.json +73 -0
  1978. homeassistant/components/playstation_network/translations/sk.json +73 -0
  1979. homeassistant/components/playstation_network/translations/sv.json +61 -0
  1980. homeassistant/components/playstation_network/translations/zh-Hans.json +73 -0
  1981. homeassistant/components/playstation_network/translations/zh-Hant.json +73 -0
  1982. homeassistant/components/plex/__init__.py +1 -1
  1983. homeassistant/components/plex/const.py +0 -1
  1984. homeassistant/components/plex/icons.json +0 -3
  1985. homeassistant/components/plex/services.py +5 -24
  1986. homeassistant/components/plex/services.yaml +0 -2
  1987. homeassistant/components/plex/strings.json +0 -4
  1988. homeassistant/components/plex/translations/bg.json +0 -3
  1989. homeassistant/components/plex/translations/cs.json +0 -4
  1990. homeassistant/components/plex/translations/de.json +0 -4
  1991. homeassistant/components/plex/translations/en-GB.json +0 -4
  1992. homeassistant/components/plex/translations/en.json +0 -4
  1993. homeassistant/components/plex/translations/es.json +0 -4
  1994. homeassistant/components/plex/translations/et.json +0 -4
  1995. homeassistant/components/plex/translations/fi.json +0 -4
  1996. homeassistant/components/plex/translations/fr.json +0 -4
  1997. homeassistant/components/plex/translations/hu.json +0 -4
  1998. homeassistant/components/plex/translations/id.json +0 -4
  1999. homeassistant/components/plex/translations/it.json +0 -4
  2000. homeassistant/components/plex/translations/ja.json +0 -4
  2001. homeassistant/components/plex/translations/ko.json +0 -4
  2002. homeassistant/components/plex/translations/lt.json +0 -4
  2003. homeassistant/components/plex/translations/pt.json +0 -4
  2004. homeassistant/components/plex/translations/ru.json +0 -4
  2005. homeassistant/components/plex/translations/sk.json +0 -4
  2006. homeassistant/components/plex/translations/sl.json +0 -4
  2007. homeassistant/components/plex/translations/sv.json +0 -4
  2008. homeassistant/components/plex/translations/tr.json +0 -4
  2009. homeassistant/components/plex/translations/zh-Hans.json +0 -4
  2010. homeassistant/components/plex/translations/zh-Hant.json +0 -4
  2011. homeassistant/components/plugwise/climate.py +0 -12
  2012. homeassistant/components/plugwise/manifest.json +1 -1
  2013. homeassistant/components/plugwise/strings.json +0 -3
  2014. homeassistant/components/plugwise/translations/cs.json +0 -3
  2015. homeassistant/components/plugwise/translations/de.json +0 -3
  2016. homeassistant/components/plugwise/translations/el.json +0 -3
  2017. homeassistant/components/plugwise/translations/en-GB.json +0 -3
  2018. homeassistant/components/plugwise/translations/en.json +0 -3
  2019. homeassistant/components/plugwise/translations/es.json +0 -3
  2020. homeassistant/components/plugwise/translations/et.json +0 -3
  2021. homeassistant/components/plugwise/translations/hu.json +0 -3
  2022. homeassistant/components/plugwise/translations/ja.json +0 -3
  2023. homeassistant/components/plugwise/translations/lt.json +0 -3
  2024. homeassistant/components/plugwise/translations/nl.json +0 -3
  2025. homeassistant/components/plugwise/translations/pt.json +0 -3
  2026. homeassistant/components/plugwise/translations/ru.json +0 -3
  2027. homeassistant/components/plugwise/translations/sk.json +0 -3
  2028. homeassistant/components/plugwise/translations/sv.json +0 -3
  2029. homeassistant/components/plugwise/translations/tr.json +0 -3
  2030. homeassistant/components/plugwise/translations/zh-Hans.json +0 -3
  2031. homeassistant/components/plugwise/translations/zh-Hant.json +0 -3
  2032. homeassistant/components/point/strings.json +7 -1
  2033. homeassistant/components/point/translations/cs.json +6 -0
  2034. homeassistant/components/point/translations/de.json +6 -0
  2035. homeassistant/components/point/translations/el.json +6 -0
  2036. homeassistant/components/point/translations/en-GB.json +6 -0
  2037. homeassistant/components/point/translations/en.json +6 -0
  2038. homeassistant/components/point/translations/es.json +6 -0
  2039. homeassistant/components/point/translations/et.json +6 -0
  2040. homeassistant/components/point/translations/fr.json +10 -0
  2041. homeassistant/components/point/translations/ga.json +14 -1
  2042. homeassistant/components/point/translations/he.json +6 -0
  2043. homeassistant/components/point/translations/id.json +6 -0
  2044. homeassistant/components/point/translations/lt.json +6 -0
  2045. homeassistant/components/point/translations/mk.json +14 -1
  2046. homeassistant/components/point/translations/pt.json +6 -0
  2047. homeassistant/components/point/translations/ru.json +6 -0
  2048. homeassistant/components/point/translations/sk.json +6 -0
  2049. homeassistant/components/point/translations/sv.json +6 -0
  2050. homeassistant/components/point/translations/tr.json +6 -0
  2051. homeassistant/components/point/translations/zh-Hans.json +6 -0
  2052. homeassistant/components/point/translations/zh-Hant.json +6 -0
  2053. homeassistant/components/profiler/__init__.py +9 -9
  2054. homeassistant/components/ps4/__init__.py +2 -2
  2055. homeassistant/components/ps4/services.py +3 -2
  2056. homeassistant/components/ps4/translations/mk.json +7 -0
  2057. homeassistant/components/qbus/climate.py +4 -11
  2058. homeassistant/components/qbus/const.py +1 -0
  2059. homeassistant/components/qbus/cover.py +193 -0
  2060. homeassistant/components/qbus/entity.py +15 -3
  2061. homeassistant/components/qbus/light.py +7 -18
  2062. homeassistant/components/qbus/scene.py +1 -2
  2063. homeassistant/components/qbus/switch.py +4 -9
  2064. homeassistant/components/qbus/translations/el.json +5 -0
  2065. homeassistant/components/qnap/translations/sv.json +1 -1
  2066. homeassistant/components/radarr/entity.py +1 -5
  2067. homeassistant/components/recorder/__init__.py +2 -2
  2068. homeassistant/components/recorder/auto_repairs/schema.py +2 -4
  2069. homeassistant/components/recorder/history/__init__.py +5 -5
  2070. homeassistant/components/recorder/manifest.json +1 -1
  2071. homeassistant/components/recorder/pool.py +2 -2
  2072. homeassistant/components/recorder/services.py +99 -117
  2073. homeassistant/components/recorder/services.yaml +1 -1
  2074. homeassistant/components/recorder/statistics.py +1 -1
  2075. homeassistant/components/recorder/util.py +3 -4
  2076. homeassistant/components/rehlko/manifest.json +1 -1
  2077. homeassistant/components/remote_calendar/manifest.json +1 -1
  2078. homeassistant/components/remote_calendar/translations/fi.json +34 -0
  2079. homeassistant/components/reolink/__init__.py +11 -0
  2080. homeassistant/components/reolink/binary_sensor.py +1 -0
  2081. homeassistant/components/reolink/camera.py +15 -4
  2082. homeassistant/components/reolink/config_flow.py +8 -1
  2083. homeassistant/components/reolink/const.py +1 -0
  2084. homeassistant/components/reolink/diagnostics.py +2 -0
  2085. homeassistant/components/reolink/entity.py +18 -6
  2086. homeassistant/components/reolink/host.py +13 -3
  2087. homeassistant/components/reolink/icons.json +18 -0
  2088. homeassistant/components/reolink/light.py +1 -1
  2089. homeassistant/components/reolink/media_source.py +4 -4
  2090. homeassistant/components/reolink/number.py +27 -0
  2091. homeassistant/components/reolink/services.py +41 -38
  2092. homeassistant/components/reolink/strings.json +21 -6
  2093. homeassistant/components/reolink/switch.py +19 -0
  2094. homeassistant/components/reolink/translations/cs.json +24 -9
  2095. homeassistant/components/reolink/translations/de.json +24 -9
  2096. homeassistant/components/reolink/translations/el.json +26 -0
  2097. homeassistant/components/reolink/translations/en-GB.json +3 -9
  2098. homeassistant/components/reolink/translations/en.json +24 -9
  2099. homeassistant/components/reolink/translations/es.json +24 -9
  2100. homeassistant/components/reolink/translations/et.json +24 -9
  2101. homeassistant/components/reolink/translations/fi.json +0 -9
  2102. homeassistant/components/reolink/translations/fr.json +3 -9
  2103. homeassistant/components/reolink/translations/ga.json +12 -0
  2104. homeassistant/components/reolink/translations/hu.json +3 -9
  2105. homeassistant/components/reolink/translations/id.json +0 -9
  2106. homeassistant/components/reolink/translations/it.json +0 -9
  2107. homeassistant/components/reolink/translations/ja.json +3 -9
  2108. homeassistant/components/reolink/translations/ko.json +3 -9
  2109. homeassistant/components/reolink/translations/lt.json +24 -9
  2110. homeassistant/components/reolink/translations/mk.json +17 -0
  2111. homeassistant/components/reolink/translations/nl.json +0 -9
  2112. homeassistant/components/reolink/translations/pl.json +0 -9
  2113. homeassistant/components/reolink/translations/pt.json +24 -9
  2114. homeassistant/components/reolink/translations/ru.json +6 -9
  2115. homeassistant/components/reolink/translations/sk.json +24 -9
  2116. homeassistant/components/reolink/translations/sv.json +27 -12
  2117. homeassistant/components/reolink/translations/tr.json +12 -9
  2118. homeassistant/components/reolink/translations/zh-Hans.json +24 -9
  2119. homeassistant/components/reolink/translations/zh-Hant.json +24 -9
  2120. homeassistant/components/rest/__init__.py +3 -3
  2121. homeassistant/components/rest/data.py +46 -34
  2122. homeassistant/components/rflink/manifest.json +1 -1
  2123. homeassistant/components/rmvtransport/sensor.py +1 -2
  2124. homeassistant/components/russound_rio/__init__.py +36 -1
  2125. homeassistant/components/russound_rio/entity.py +20 -20
  2126. homeassistant/components/russound_rio/icons.json +12 -0
  2127. homeassistant/components/russound_rio/manifest.json +1 -1
  2128. homeassistant/components/russound_rio/media_player.py +2 -8
  2129. homeassistant/components/russound_rio/number.py +112 -0
  2130. homeassistant/components/russound_rio/strings.json +21 -0
  2131. homeassistant/components/russound_rio/switch.py +85 -0
  2132. homeassistant/components/russound_rio/translations/bg.json +10 -0
  2133. homeassistant/components/russound_rio/translations/cs.json +21 -0
  2134. homeassistant/components/russound_rio/translations/de.json +21 -0
  2135. homeassistant/components/russound_rio/translations/el.json +21 -0
  2136. homeassistant/components/russound_rio/translations/en.json +21 -0
  2137. homeassistant/components/russound_rio/translations/es.json +21 -0
  2138. homeassistant/components/russound_rio/translations/et.json +21 -0
  2139. homeassistant/components/russound_rio/translations/lt.json +21 -0
  2140. homeassistant/components/russound_rio/translations/pt.json +21 -0
  2141. homeassistant/components/russound_rio/translations/sk.json +21 -0
  2142. homeassistant/components/russound_rio/translations/sv.json +21 -0
  2143. homeassistant/components/russound_rio/translations/zh-Hans.json +21 -0
  2144. homeassistant/components/russound_rio/translations/zh-Hant.json +21 -0
  2145. homeassistant/components/samsungtv/manifest.json +1 -0
  2146. homeassistant/components/samsungtv/quality_scale.yaml +96 -0
  2147. homeassistant/components/screenlogic/__init__.py +2 -2
  2148. homeassistant/components/screenlogic/services.py +89 -84
  2149. homeassistant/components/script/helpers.py +1 -1
  2150. homeassistant/components/select/translations/sv.json +10 -10
  2151. homeassistant/components/sensibo/translations/sv.json +8 -8
  2152. homeassistant/components/sensor/icons.json +12 -1
  2153. homeassistant/components/sensor/translations/de.json +2 -2
  2154. homeassistant/components/sensorpush_cloud/manifest.json +1 -1
  2155. homeassistant/components/senz/strings.json +7 -1
  2156. homeassistant/components/senz/translations/cs.json +6 -0
  2157. homeassistant/components/senz/translations/de.json +6 -0
  2158. homeassistant/components/senz/translations/el.json +6 -0
  2159. homeassistant/components/senz/translations/en-GB.json +6 -0
  2160. homeassistant/components/senz/translations/en.json +6 -0
  2161. homeassistant/components/senz/translations/es.json +6 -0
  2162. homeassistant/components/senz/translations/et.json +6 -0
  2163. homeassistant/components/senz/translations/fr.json +6 -0
  2164. homeassistant/components/senz/translations/ga.json +14 -1
  2165. homeassistant/components/senz/translations/he.json +6 -0
  2166. homeassistant/components/senz/translations/id.json +6 -0
  2167. homeassistant/components/senz/translations/lt.json +6 -0
  2168. homeassistant/components/senz/translations/mk.json +14 -1
  2169. homeassistant/components/senz/translations/pt.json +6 -0
  2170. homeassistant/components/senz/translations/ru.json +6 -0
  2171. homeassistant/components/senz/translations/sk.json +6 -0
  2172. homeassistant/components/senz/translations/sv.json +6 -0
  2173. homeassistant/components/senz/translations/tr.json +6 -0
  2174. homeassistant/components/senz/translations/zh-Hans.json +6 -0
  2175. homeassistant/components/senz/translations/zh-Hant.json +6 -0
  2176. homeassistant/components/seventeentrack/__init__.py +2 -2
  2177. homeassistant/components/seventeentrack/manifest.json +1 -1
  2178. homeassistant/components/seventeentrack/services.py +86 -79
  2179. homeassistant/components/shelly/manifest.json +1 -1
  2180. homeassistant/components/shelly/translations/el.json +13 -1
  2181. homeassistant/components/shopping_list/__init__.py +27 -6
  2182. homeassistant/components/shopping_list/intent.py +31 -2
  2183. homeassistant/components/smappee/strings.json +7 -1
  2184. homeassistant/components/smappee/translations/cs.json +6 -0
  2185. homeassistant/components/smappee/translations/de.json +6 -0
  2186. homeassistant/components/smappee/translations/el.json +7 -0
  2187. homeassistant/components/smappee/translations/en-GB.json +6 -0
  2188. homeassistant/components/smappee/translations/en.json +6 -0
  2189. homeassistant/components/smappee/translations/es.json +6 -0
  2190. homeassistant/components/smappee/translations/et.json +6 -0
  2191. homeassistant/components/smappee/translations/fr.json +6 -0
  2192. homeassistant/components/smappee/translations/ga.json +14 -1
  2193. homeassistant/components/smappee/translations/he.json +6 -0
  2194. homeassistant/components/smappee/translations/id.json +6 -0
  2195. homeassistant/components/smappee/translations/lt.json +6 -0
  2196. homeassistant/components/smappee/translations/mk.json +14 -1
  2197. homeassistant/components/smappee/translations/pt.json +6 -0
  2198. homeassistant/components/smappee/translations/ru.json +6 -0
  2199. homeassistant/components/smappee/translations/sk.json +6 -0
  2200. homeassistant/components/smappee/translations/sv.json +6 -0
  2201. homeassistant/components/smappee/translations/tr.json +6 -0
  2202. homeassistant/components/smappee/translations/zh-Hans.json +6 -0
  2203. homeassistant/components/smappee/translations/zh-Hant.json +6 -0
  2204. homeassistant/components/smarla/__init__.py +4 -3
  2205. homeassistant/components/smarla/const.py +1 -1
  2206. homeassistant/components/smarla/entity.py +16 -4
  2207. homeassistant/components/smarla/icons.json +5 -0
  2208. homeassistant/components/smarla/manifest.json +1 -1
  2209. homeassistant/components/smarla/number.py +63 -0
  2210. homeassistant/components/smarla/strings.json +5 -0
  2211. homeassistant/components/smarla/switch.py +3 -18
  2212. homeassistant/components/smarla/translations/cs.json +5 -0
  2213. homeassistant/components/smarla/translations/de.json +5 -0
  2214. homeassistant/components/smarla/translations/el.json +5 -0
  2215. homeassistant/components/smarla/translations/en-GB.json +5 -0
  2216. homeassistant/components/smarla/translations/en.json +5 -0
  2217. homeassistant/components/smarla/translations/es.json +5 -0
  2218. homeassistant/components/smarla/translations/et.json +5 -0
  2219. homeassistant/components/smarla/translations/ga.json +5 -0
  2220. homeassistant/components/smarla/translations/hu.json +5 -0
  2221. homeassistant/components/smarla/translations/it.json +9 -1
  2222. homeassistant/components/smarla/translations/lt.json +5 -0
  2223. homeassistant/components/smarla/translations/pt.json +5 -0
  2224. homeassistant/components/smarla/translations/sk.json +5 -0
  2225. homeassistant/components/smarla/translations/sv.json +5 -0
  2226. homeassistant/components/smarla/translations/tr.json +5 -0
  2227. homeassistant/components/smarla/translations/zh-Hans.json +5 -0
  2228. homeassistant/components/smarla/translations/zh-Hant.json +5 -0
  2229. homeassistant/components/smartthings/binary_sensor.py +8 -0
  2230. homeassistant/components/smartthings/sensor.py +10 -0
  2231. homeassistant/components/smartthings/strings.json +14 -2
  2232. homeassistant/components/smartthings/switch.py +1 -0
  2233. homeassistant/components/smartthings/translations/cs.json +12 -0
  2234. homeassistant/components/smartthings/translations/de.json +12 -0
  2235. homeassistant/components/smartthings/translations/el.json +15 -0
  2236. homeassistant/components/smartthings/translations/en-GB.json +9 -0
  2237. homeassistant/components/smartthings/translations/en.json +12 -0
  2238. homeassistant/components/smartthings/translations/es.json +12 -0
  2239. homeassistant/components/smartthings/translations/et.json +12 -0
  2240. homeassistant/components/smartthings/translations/fi.json +5 -0
  2241. homeassistant/components/smartthings/translations/fr.json +12 -0
  2242. homeassistant/components/smartthings/translations/ga.json +11 -0
  2243. homeassistant/components/smartthings/translations/he.json +6 -0
  2244. homeassistant/components/smartthings/translations/id.json +6 -0
  2245. homeassistant/components/smartthings/translations/lt.json +12 -0
  2246. homeassistant/components/smartthings/translations/mk.json +10 -0
  2247. homeassistant/components/smartthings/translations/pt.json +12 -0
  2248. homeassistant/components/smartthings/translations/ru.json +9 -0
  2249. homeassistant/components/smartthings/translations/sk.json +12 -0
  2250. homeassistant/components/smartthings/translations/sv.json +12 -0
  2251. homeassistant/components/smartthings/translations/tr.json +6 -0
  2252. homeassistant/components/smartthings/translations/zh-Hans.json +12 -0
  2253. homeassistant/components/smartthings/translations/zh-Hant.json +12 -0
  2254. homeassistant/components/smarttub/translations/mk.json +2 -1
  2255. homeassistant/components/smlight/manifest.json +1 -1
  2256. homeassistant/components/sonos/__init__.py +23 -45
  2257. homeassistant/components/sonos/alarms.py +2 -2
  2258. homeassistant/components/sonos/binary_sensor.py +8 -9
  2259. homeassistant/components/sonos/const.py +0 -1
  2260. homeassistant/components/sonos/diagnostics.py +29 -14
  2261. homeassistant/components/sonos/entity.py +10 -4
  2262. homeassistant/components/sonos/helpers.py +35 -0
  2263. homeassistant/components/sonos/household_coordinator.py +9 -4
  2264. homeassistant/components/sonos/media_player.py +49 -22
  2265. homeassistant/components/sonos/number.py +11 -6
  2266. homeassistant/components/sonos/sensor.py +10 -9
  2267. homeassistant/components/sonos/speaker.py +47 -21
  2268. homeassistant/components/sonos/strings.json +9 -0
  2269. homeassistant/components/sonos/switch.py +25 -18
  2270. homeassistant/components/sonos/translations/bg.json +5 -0
  2271. homeassistant/components/sonos/translations/cs.json +3 -0
  2272. homeassistant/components/sonos/translations/de.json +9 -0
  2273. homeassistant/components/sonos/translations/el.json +9 -0
  2274. homeassistant/components/sonos/translations/en.json +9 -0
  2275. homeassistant/components/sonos/translations/es.json +9 -0
  2276. homeassistant/components/sonos/translations/et.json +9 -0
  2277. homeassistant/components/sonos/translations/ga.json +8 -0
  2278. homeassistant/components/sonos/translations/mk.json +10 -0
  2279. homeassistant/components/sonos/translations/pt.json +9 -0
  2280. homeassistant/components/sonos/translations/ru.json +6 -0
  2281. homeassistant/components/sonos/translations/sk.json +9 -0
  2282. homeassistant/components/sonos/translations/sv.json +6 -0
  2283. homeassistant/components/sonos/translations/zh-Hans.json +9 -0
  2284. homeassistant/components/sonos/translations/zh-Hant.json +9 -0
  2285. homeassistant/components/spotify/strings.json +7 -1
  2286. homeassistant/components/spotify/translations/cs.json +6 -0
  2287. homeassistant/components/spotify/translations/de.json +6 -0
  2288. homeassistant/components/spotify/translations/el.json +6 -0
  2289. homeassistant/components/spotify/translations/en-GB.json +6 -0
  2290. homeassistant/components/spotify/translations/en.json +6 -0
  2291. homeassistant/components/spotify/translations/es.json +6 -0
  2292. homeassistant/components/spotify/translations/et.json +6 -0
  2293. homeassistant/components/spotify/translations/fr.json +6 -0
  2294. homeassistant/components/spotify/translations/ga.json +14 -1
  2295. homeassistant/components/spotify/translations/he.json +6 -0
  2296. homeassistant/components/spotify/translations/id.json +6 -0
  2297. homeassistant/components/spotify/translations/lt.json +6 -0
  2298. homeassistant/components/spotify/translations/mk.json +14 -1
  2299. homeassistant/components/spotify/translations/pt.json +6 -0
  2300. homeassistant/components/spotify/translations/ru.json +6 -0
  2301. homeassistant/components/spotify/translations/sk.json +6 -0
  2302. homeassistant/components/spotify/translations/sv.json +6 -0
  2303. homeassistant/components/spotify/translations/tr.json +6 -0
  2304. homeassistant/components/spotify/translations/zh-Hans.json +6 -0
  2305. homeassistant/components/spotify/translations/zh-Hant.json +6 -0
  2306. homeassistant/components/sql/manifest.json +1 -1
  2307. homeassistant/components/squeezebox/button.py +0 -5
  2308. homeassistant/components/squeezebox/entity.py +7 -0
  2309. homeassistant/components/squeezebox/media_player.py +0 -5
  2310. homeassistant/components/ssdp/server.py +1 -1
  2311. homeassistant/components/starline/sensor.py +1 -1
  2312. homeassistant/components/stream/__init__.py +5 -8
  2313. homeassistant/components/stream/core.py +4 -4
  2314. homeassistant/components/stream/fmp4utils.py +2 -2
  2315. homeassistant/components/stream/manifest.json +1 -1
  2316. homeassistant/components/sun/__init__.py +8 -5
  2317. homeassistant/components/sun/binary_sensor.py +100 -0
  2318. homeassistant/components/sun/condition.py +37 -18
  2319. homeassistant/components/sun/icons.json +9 -0
  2320. homeassistant/components/sun/sensor.py +26 -0
  2321. homeassistant/components/sun/strings.json +15 -0
  2322. homeassistant/components/sun/translations/bg.json +7 -0
  2323. homeassistant/components/sun/translations/cs.json +15 -0
  2324. homeassistant/components/sun/translations/de.json +15 -0
  2325. homeassistant/components/sun/translations/el.json +15 -0
  2326. homeassistant/components/sun/translations/en-GB.json +9 -0
  2327. homeassistant/components/sun/translations/en.json +15 -0
  2328. homeassistant/components/sun/translations/es.json +15 -0
  2329. homeassistant/components/sun/translations/et.json +15 -0
  2330. homeassistant/components/sun/translations/fr.json +9 -0
  2331. homeassistant/components/sun/translations/ga.json +19 -1
  2332. homeassistant/components/sun/translations/he.json +15 -0
  2333. homeassistant/components/sun/translations/hu.json +15 -0
  2334. homeassistant/components/sun/translations/id.json +15 -0
  2335. homeassistant/components/sun/translations/it.json +9 -0
  2336. homeassistant/components/sun/translations/lt.json +15 -0
  2337. homeassistant/components/sun/translations/nl.json +9 -0
  2338. homeassistant/components/sun/translations/pt.json +15 -0
  2339. homeassistant/components/sun/translations/ru.json +15 -0
  2340. homeassistant/components/sun/translations/sk.json +15 -0
  2341. homeassistant/components/sun/translations/sv.json +15 -0
  2342. homeassistant/components/sun/translations/tr.json +15 -0
  2343. homeassistant/components/sun/translations/zh-Hans.json +15 -0
  2344. homeassistant/components/sun/translations/zh-Hant.json +15 -0
  2345. homeassistant/components/swiss_public_transport/__init__.py +2 -2
  2346. homeassistant/components/swiss_public_transport/services.py +26 -23
  2347. homeassistant/components/switch/light.py +4 -4
  2348. homeassistant/components/switch_as_x/entity.py +3 -3
  2349. homeassistant/components/switchbot/__init__.py +6 -0
  2350. homeassistant/components/switchbot/config_flow.py +6 -2
  2351. homeassistant/components/switchbot/const.py +12 -0
  2352. homeassistant/components/switchbot/humidifier.py +84 -1
  2353. homeassistant/components/switchbot/icons.json +58 -0
  2354. homeassistant/components/switchbot/light.py +69 -25
  2355. homeassistant/components/switchbot/manifest.json +1 -1
  2356. homeassistant/components/switchbot/sensor.py +15 -1
  2357. homeassistant/components/switchbot/strings.json +54 -0
  2358. homeassistant/components/switchbot/translations/bg.json +26 -0
  2359. homeassistant/components/switchbot/translations/cs.json +54 -0
  2360. homeassistant/components/switchbot/translations/de.json +54 -0
  2361. homeassistant/components/switchbot/translations/el.json +53 -0
  2362. homeassistant/components/switchbot/translations/en.json +54 -0
  2363. homeassistant/components/switchbot/translations/es.json +54 -1
  2364. homeassistant/components/switchbot/translations/et.json +54 -0
  2365. homeassistant/components/switchbot/translations/ga.json +33 -0
  2366. homeassistant/components/switchbot/translations/id.json +19 -0
  2367. homeassistant/components/switchbot/translations/mk.json +49 -0
  2368. homeassistant/components/switchbot/translations/nl.json +22 -1
  2369. homeassistant/components/switchbot/translations/pt.json +54 -0
  2370. homeassistant/components/switchbot/translations/ru.json +23 -0
  2371. homeassistant/components/switchbot/translations/sk.json +54 -0
  2372. homeassistant/components/switchbot/translations/sv.json +52 -0
  2373. homeassistant/components/switchbot/translations/zh-Hans.json +53 -0
  2374. homeassistant/components/switchbot/translations/zh-Hant.json +54 -0
  2375. homeassistant/components/switchbot_cloud/manifest.json +1 -1
  2376. homeassistant/components/synology_dsm/__init__.py +13 -5
  2377. homeassistant/components/synology_dsm/services.py +77 -0
  2378. homeassistant/components/system_health/__init__.py +1 -1
  2379. homeassistant/components/tado/__init__.py +2 -2
  2380. homeassistant/components/tado/services.py +17 -16
  2381. homeassistant/components/tailscale/translations/nl.json +5 -0
  2382. homeassistant/components/tedee/binary_sensor.py +17 -1
  2383. homeassistant/components/tedee/manifest.json +1 -1
  2384. homeassistant/components/telegram_bot/__init__.py +220 -917
  2385. homeassistant/components/telegram_bot/bot.py +1017 -0
  2386. homeassistant/components/telegram_bot/broadcast.py +10 -2
  2387. homeassistant/components/telegram_bot/config_flow.py +662 -0
  2388. homeassistant/components/telegram_bot/const.py +110 -0
  2389. homeassistant/components/telegram_bot/icons.json +6 -0
  2390. homeassistant/components/telegram_bot/manifest.json +2 -1
  2391. homeassistant/components/telegram_bot/polling.py +24 -15
  2392. homeassistant/components/telegram_bot/quality_scale.yaml +72 -0
  2393. homeassistant/components/telegram_bot/services.yaml +95 -0
  2394. homeassistant/components/telegram_bot/strings.json +270 -4
  2395. homeassistant/components/telegram_bot/translations/bg.json +143 -0
  2396. homeassistant/components/telegram_bot/translations/ca.json +0 -3
  2397. homeassistant/components/telegram_bot/translations/cs.json +239 -3
  2398. homeassistant/components/telegram_bot/translations/de.json +247 -3
  2399. homeassistant/components/telegram_bot/translations/el.json +240 -3
  2400. homeassistant/components/telegram_bot/translations/en-GB.json +180 -4
  2401. homeassistant/components/telegram_bot/translations/en.json +269 -3
  2402. homeassistant/components/telegram_bot/translations/es.json +239 -3
  2403. homeassistant/components/telegram_bot/translations/et.json +245 -3
  2404. homeassistant/components/telegram_bot/translations/fi.json +0 -4
  2405. homeassistant/components/telegram_bot/translations/fr.json +185 -0
  2406. homeassistant/components/telegram_bot/translations/ga.json +289 -1
  2407. homeassistant/components/telegram_bot/translations/he.json +152 -3
  2408. homeassistant/components/telegram_bot/translations/hu.json +213 -3
  2409. homeassistant/components/telegram_bot/translations/id.json +22 -4
  2410. homeassistant/components/telegram_bot/translations/it.json +146 -4
  2411. homeassistant/components/telegram_bot/translations/ja.json +0 -4
  2412. homeassistant/components/telegram_bot/translations/lt.json +239 -3
  2413. homeassistant/components/telegram_bot/translations/mk.json +58 -1
  2414. homeassistant/components/telegram_bot/translations/nl.json +211 -3
  2415. homeassistant/components/telegram_bot/translations/pt.json +239 -3
  2416. homeassistant/components/telegram_bot/translations/ru.json +241 -4
  2417. homeassistant/components/telegram_bot/translations/sk.json +239 -3
  2418. homeassistant/components/telegram_bot/translations/sv.json +229 -3
  2419. homeassistant/components/telegram_bot/translations/tr.json +239 -3
  2420. homeassistant/components/telegram_bot/translations/zh-Hans.json +239 -3
  2421. homeassistant/components/telegram_bot/translations/zh-Hant.json +239 -3
  2422. homeassistant/components/telegram_bot/webhooks.py +63 -46
  2423. homeassistant/components/template/alarm_control_panel.py +71 -15
  2424. homeassistant/components/template/button.py +7 -17
  2425. homeassistant/components/template/config.py +0 -4
  2426. homeassistant/components/template/cover.py +4 -12
  2427. homeassistant/components/template/fan.py +84 -17
  2428. homeassistant/components/template/helpers.py +1 -2
  2429. homeassistant/components/template/image.py +5 -2
  2430. homeassistant/components/template/light.py +28 -39
  2431. homeassistant/components/template/lock.py +73 -13
  2432. homeassistant/components/template/number.py +12 -22
  2433. homeassistant/components/template/select.py +9 -19
  2434. homeassistant/components/template/switch.py +10 -18
  2435. homeassistant/components/template/template_entity.py +17 -9
  2436. homeassistant/components/template/translations/sv.json +5 -5
  2437. homeassistant/components/template/vacuum.py +80 -23
  2438. homeassistant/components/template/weather.py +21 -18
  2439. homeassistant/components/tensorflow/image_processing.py +4 -5
  2440. homeassistant/components/tensorflow/manifest.json +1 -1
  2441. homeassistant/components/tesla_fleet/climate.py +0 -6
  2442. homeassistant/components/tesla_fleet/config_flow.py +174 -14
  2443. homeassistant/components/tesla_fleet/const.py +1 -0
  2444. homeassistant/components/tesla_fleet/manifest.json +1 -1
  2445. homeassistant/components/tesla_fleet/strings.json +29 -5
  2446. homeassistant/components/tesla_fleet/translations/bg.json +2 -1
  2447. homeassistant/components/tesla_fleet/translations/ca.json +0 -3
  2448. homeassistant/components/tesla_fleet/translations/cs.json +28 -4
  2449. homeassistant/components/tesla_fleet/translations/de.json +28 -4
  2450. homeassistant/components/tesla_fleet/translations/el.json +28 -4
  2451. homeassistant/components/tesla_fleet/translations/en-GB.json +6 -6
  2452. homeassistant/components/tesla_fleet/translations/en.json +28 -4
  2453. homeassistant/components/tesla_fleet/translations/es.json +28 -4
  2454. homeassistant/components/tesla_fleet/translations/et.json +28 -4
  2455. homeassistant/components/tesla_fleet/translations/fr.json +12 -0
  2456. homeassistant/components/tesla_fleet/translations/ga.json +35 -0
  2457. homeassistant/components/tesla_fleet/translations/he.json +6 -3
  2458. homeassistant/components/tesla_fleet/translations/hu.json +0 -6
  2459. homeassistant/components/tesla_fleet/translations/id.json +7 -3
  2460. homeassistant/components/tesla_fleet/translations/it.json +0 -3
  2461. homeassistant/components/tesla_fleet/translations/ja.json +0 -6
  2462. homeassistant/components/tesla_fleet/translations/lt.json +28 -4
  2463. homeassistant/components/tesla_fleet/translations/mk.json +17 -0
  2464. homeassistant/components/tesla_fleet/translations/ne.json +9 -1
  2465. homeassistant/components/tesla_fleet/translations/nl.json +1 -3
  2466. homeassistant/components/tesla_fleet/translations/pl.json +0 -3
  2467. homeassistant/components/tesla_fleet/translations/pt.json +28 -4
  2468. homeassistant/components/tesla_fleet/translations/ru.json +6 -6
  2469. homeassistant/components/tesla_fleet/translations/sk.json +28 -4
  2470. homeassistant/components/tesla_fleet/translations/sl.json +0 -3
  2471. homeassistant/components/tesla_fleet/translations/sv.json +16 -4
  2472. homeassistant/components/tesla_fleet/translations/tr.json +28 -4
  2473. homeassistant/components/tesla_fleet/translations/zh-Hans.json +28 -4
  2474. homeassistant/components/tesla_fleet/translations/zh-Hant.json +28 -4
  2475. homeassistant/components/teslemetry/__init__.py +2 -2
  2476. homeassistant/components/teslemetry/manifest.json +1 -1
  2477. homeassistant/components/teslemetry/sensor.py +1 -2
  2478. homeassistant/components/teslemetry/services.py +3 -2
  2479. homeassistant/components/tessie/manifest.json +1 -1
  2480. homeassistant/components/thread/diagnostics.py +1 -3
  2481. homeassistant/components/threshold/translations/sv.json +2 -2
  2482. homeassistant/components/tilt_pi/__init__.py +28 -0
  2483. homeassistant/components/tilt_pi/config_flow.py +63 -0
  2484. homeassistant/components/tilt_pi/const.py +8 -0
  2485. homeassistant/components/tilt_pi/coordinator.py +53 -0
  2486. homeassistant/components/tilt_pi/entity.py +39 -0
  2487. homeassistant/components/tilt_pi/icons.json +9 -0
  2488. homeassistant/components/tilt_pi/manifest.json +10 -0
  2489. homeassistant/components/tilt_pi/quality_scale.yaml +80 -0
  2490. homeassistant/components/tilt_pi/sensor.py +93 -0
  2491. homeassistant/components/tilt_pi/strings.json +31 -0
  2492. homeassistant/components/tilt_pi/translations/bg.json +21 -0
  2493. homeassistant/components/tilt_pi/translations/cs.json +31 -0
  2494. homeassistant/components/tilt_pi/translations/de.json +31 -0
  2495. homeassistant/components/tilt_pi/translations/el.json +31 -0
  2496. homeassistant/components/tilt_pi/translations/en.json +31 -0
  2497. homeassistant/components/tilt_pi/translations/es.json +31 -0
  2498. homeassistant/components/tilt_pi/translations/et.json +31 -0
  2499. homeassistant/components/tilt_pi/translations/id.json +11 -0
  2500. homeassistant/components/tilt_pi/translations/lt.json +31 -0
  2501. homeassistant/components/tilt_pi/translations/nl.json +21 -0
  2502. homeassistant/components/tilt_pi/translations/pt.json +31 -0
  2503. homeassistant/components/tilt_pi/translations/sk.json +31 -0
  2504. homeassistant/components/tilt_pi/translations/sv.json +28 -0
  2505. homeassistant/components/tilt_pi/translations/zh-Hans.json +31 -0
  2506. homeassistant/components/tilt_pi/translations/zh-Hant.json +31 -0
  2507. homeassistant/components/tomorrowio/translations/nl.json +1 -0
  2508. homeassistant/components/toon/strings.json +7 -1
  2509. homeassistant/components/toon/translations/cs.json +6 -0
  2510. homeassistant/components/toon/translations/de.json +6 -0
  2511. homeassistant/components/toon/translations/el.json +6 -0
  2512. homeassistant/components/toon/translations/en-GB.json +6 -0
  2513. homeassistant/components/toon/translations/en.json +6 -0
  2514. homeassistant/components/toon/translations/es.json +6 -0
  2515. homeassistant/components/toon/translations/et.json +6 -0
  2516. homeassistant/components/toon/translations/fr.json +6 -0
  2517. homeassistant/components/toon/translations/ga.json +14 -1
  2518. homeassistant/components/toon/translations/he.json +10 -0
  2519. homeassistant/components/toon/translations/id.json +6 -0
  2520. homeassistant/components/toon/translations/lt.json +6 -0
  2521. homeassistant/components/toon/translations/mk.json +12 -0
  2522. homeassistant/components/toon/translations/pt.json +6 -0
  2523. homeassistant/components/toon/translations/ru.json +6 -0
  2524. homeassistant/components/toon/translations/sk.json +6 -0
  2525. homeassistant/components/toon/translations/sv.json +6 -0
  2526. homeassistant/components/toon/translations/tr.json +6 -0
  2527. homeassistant/components/toon/translations/zh-Hans.json +6 -0
  2528. homeassistant/components/toon/translations/zh-Hant.json +6 -0
  2529. homeassistant/components/tplink/climate.py +1 -10
  2530. homeassistant/components/tplink/sensor.py +1 -2
  2531. homeassistant/components/tplink/strings.json +0 -3
  2532. homeassistant/components/tplink/translations/bg.json +0 -3
  2533. homeassistant/components/tplink/translations/cs.json +0 -3
  2534. homeassistant/components/tplink/translations/de.json +0 -3
  2535. homeassistant/components/tplink/translations/el.json +0 -3
  2536. homeassistant/components/tplink/translations/en-GB.json +0 -3
  2537. homeassistant/components/tplink/translations/en.json +0 -3
  2538. homeassistant/components/tplink/translations/es.json +0 -3
  2539. homeassistant/components/tplink/translations/et.json +0 -3
  2540. homeassistant/components/tplink/translations/ga.json +0 -3
  2541. homeassistant/components/tplink/translations/hu.json +0 -3
  2542. homeassistant/components/tplink/translations/ja.json +0 -3
  2543. homeassistant/components/tplink/translations/lt.json +0 -3
  2544. homeassistant/components/tplink/translations/pt-BR.json +0 -3
  2545. homeassistant/components/tplink/translations/pt.json +0 -3
  2546. homeassistant/components/tplink/translations/ru.json +0 -3
  2547. homeassistant/components/tplink/translations/sk.json +0 -3
  2548. homeassistant/components/tplink/translations/sv.json +0 -3
  2549. homeassistant/components/tplink/translations/tr.json +0 -3
  2550. homeassistant/components/tplink/translations/zh-Hans.json +0 -3
  2551. homeassistant/components/tplink/translations/zh-Hant.json +0 -3
  2552. homeassistant/components/tradfri/translations/el.json +3 -1
  2553. homeassistant/components/trend/binary_sensor.py +3 -0
  2554. homeassistant/components/trend/config_flow.py +3 -0
  2555. homeassistant/components/trend/manifest.json +1 -1
  2556. homeassistant/components/trend/strings.json +2 -0
  2557. homeassistant/components/trend/translations/bg.json +2 -0
  2558. homeassistant/components/trend/translations/cs.json +2 -0
  2559. homeassistant/components/trend/translations/de.json +2 -0
  2560. homeassistant/components/trend/translations/el.json +2 -0
  2561. homeassistant/components/trend/translations/en-GB.json +2 -0
  2562. homeassistant/components/trend/translations/en.json +2 -0
  2563. homeassistant/components/trend/translations/es.json +2 -0
  2564. homeassistant/components/trend/translations/et.json +2 -0
  2565. homeassistant/components/trend/translations/fr.json +2 -0
  2566. homeassistant/components/trend/translations/he.json +2 -0
  2567. homeassistant/components/trend/translations/hu.json +2 -0
  2568. homeassistant/components/trend/translations/id.json +2 -0
  2569. homeassistant/components/trend/translations/ja.json +2 -0
  2570. homeassistant/components/trend/translations/lt.json +2 -0
  2571. homeassistant/components/trend/translations/pt-BR.json +2 -0
  2572. homeassistant/components/trend/translations/pt.json +2 -0
  2573. homeassistant/components/trend/translations/ru.json +2 -0
  2574. homeassistant/components/trend/translations/sk.json +2 -0
  2575. homeassistant/components/trend/translations/sv.json +2 -0
  2576. homeassistant/components/trend/translations/tr.json +2 -0
  2577. homeassistant/components/trend/translations/zh-Hans.json +2 -0
  2578. homeassistant/components/trend/translations/zh-Hant.json +2 -0
  2579. homeassistant/components/tts/__init__.py +15 -0
  2580. homeassistant/components/tts/entity.py +3 -3
  2581. homeassistant/components/tts/media_source.py +2 -2
  2582. homeassistant/components/tuya/__init__.py +1 -1
  2583. homeassistant/components/tuya/translations/mk.json +5 -0
  2584. homeassistant/components/tuya/translations/nl.json +13 -1
  2585. homeassistant/components/unifi/button.py +6 -5
  2586. homeassistant/components/unifi/device_tracker.py +7 -10
  2587. homeassistant/components/unifi/entity.py +7 -6
  2588. homeassistant/components/unifi/hub/hub.py +2 -2
  2589. homeassistant/components/unifi/image.py +6 -5
  2590. homeassistant/components/unifi/sensor.py +6 -5
  2591. homeassistant/components/unifi/switch.py +11 -12
  2592. homeassistant/components/unifi/update.py +5 -6
  2593. homeassistant/components/unifiprotect/services.py +1 -0
  2594. homeassistant/components/unifiprotect/translations/zh-Hans.json +3 -3
  2595. homeassistant/components/utility_meter/strings.json +1 -1
  2596. homeassistant/components/utility_meter/translations/sv.json +9 -9
  2597. homeassistant/components/vacuum/__init__.py +2 -15
  2598. homeassistant/components/vegehub/__init__.py +103 -0
  2599. homeassistant/components/vegehub/config_flow.py +168 -0
  2600. homeassistant/components/vegehub/const.py +9 -0
  2601. homeassistant/components/vegehub/coordinator.py +52 -0
  2602. homeassistant/components/vegehub/entity.py +28 -0
  2603. homeassistant/components/vegehub/manifest.json +12 -0
  2604. homeassistant/components/vegehub/quality_scale.yaml +84 -0
  2605. homeassistant/components/vegehub/sensor.py +94 -0
  2606. homeassistant/components/vegehub/strings.json +44 -0
  2607. homeassistant/components/vegehub/translations/bg.json +35 -0
  2608. homeassistant/components/vegehub/translations/cs.json +44 -0
  2609. homeassistant/components/vegehub/translations/de.json +44 -0
  2610. homeassistant/components/vegehub/translations/el.json +44 -0
  2611. homeassistant/components/vegehub/translations/en.json +44 -0
  2612. homeassistant/components/vegehub/translations/es.json +44 -0
  2613. homeassistant/components/vegehub/translations/et.json +44 -0
  2614. homeassistant/components/vegehub/translations/id.json +11 -0
  2615. homeassistant/components/vegehub/translations/lt.json +44 -0
  2616. homeassistant/components/vegehub/translations/nl.json +23 -0
  2617. homeassistant/components/vegehub/translations/pt.json +44 -0
  2618. homeassistant/components/vegehub/translations/ru.json +30 -0
  2619. homeassistant/components/vegehub/translations/sk.json +44 -0
  2620. homeassistant/components/vegehub/translations/sv.json +40 -0
  2621. homeassistant/components/vegehub/translations/zh-Hans.json +44 -0
  2622. homeassistant/components/vegehub/translations/zh-Hant.json +44 -0
  2623. homeassistant/components/velbus/translations/el.json +8 -0
  2624. homeassistant/components/vera/manifest.json +1 -1
  2625. homeassistant/components/vulcan/translations/mk.json +11 -0
  2626. homeassistant/components/wallbox/translations/el.json +5 -0
  2627. homeassistant/components/wallbox/translations/lt.json +3 -0
  2628. homeassistant/components/water_heater/__init__.py +9 -2
  2629. homeassistant/components/watergate/translations/el.json +34 -0
  2630. homeassistant/components/webdav/manifest.json +1 -1
  2631. homeassistant/components/websocket_api/commands.py +67 -13
  2632. homeassistant/components/websocket_api/messages.py +13 -0
  2633. homeassistant/components/weheat/manifest.json +1 -1
  2634. homeassistant/components/weheat/strings.json +7 -1
  2635. homeassistant/components/weheat/translations/cs.json +6 -0
  2636. homeassistant/components/weheat/translations/de.json +6 -0
  2637. homeassistant/components/weheat/translations/el.json +6 -0
  2638. homeassistant/components/weheat/translations/en-GB.json +6 -0
  2639. homeassistant/components/weheat/translations/en.json +6 -0
  2640. homeassistant/components/weheat/translations/es.json +6 -0
  2641. homeassistant/components/weheat/translations/et.json +6 -0
  2642. homeassistant/components/weheat/translations/fr.json +12 -0
  2643. homeassistant/components/weheat/translations/ga.json +12 -0
  2644. homeassistant/components/weheat/translations/he.json +6 -0
  2645. homeassistant/components/weheat/translations/id.json +6 -0
  2646. homeassistant/components/weheat/translations/lt.json +6 -0
  2647. homeassistant/components/weheat/translations/mk.json +12 -0
  2648. homeassistant/components/weheat/translations/pt.json +6 -0
  2649. homeassistant/components/weheat/translations/ru.json +6 -0
  2650. homeassistant/components/weheat/translations/sk.json +6 -0
  2651. homeassistant/components/weheat/translations/sv.json +6 -0
  2652. homeassistant/components/weheat/translations/tr.json +6 -0
  2653. homeassistant/components/weheat/translations/zh-Hans.json +6 -0
  2654. homeassistant/components/weheat/translations/zh-Hant.json +6 -0
  2655. homeassistant/components/whirlpool/climate.py +1 -3
  2656. homeassistant/components/whirlpool/translations/sv.json +12 -12
  2657. homeassistant/components/withings/strings.json +7 -1
  2658. homeassistant/components/withings/translations/cs.json +6 -0
  2659. homeassistant/components/withings/translations/de.json +6 -0
  2660. homeassistant/components/withings/translations/el.json +6 -0
  2661. homeassistant/components/withings/translations/en-GB.json +6 -0
  2662. homeassistant/components/withings/translations/en.json +6 -0
  2663. homeassistant/components/withings/translations/es.json +6 -0
  2664. homeassistant/components/withings/translations/et.json +6 -0
  2665. homeassistant/components/withings/translations/fr.json +6 -0
  2666. homeassistant/components/withings/translations/ga.json +12 -0
  2667. homeassistant/components/withings/translations/he.json +6 -0
  2668. homeassistant/components/withings/translations/id.json +6 -0
  2669. homeassistant/components/withings/translations/lt.json +6 -0
  2670. homeassistant/components/withings/translations/mk.json +14 -1
  2671. homeassistant/components/withings/translations/pt.json +6 -0
  2672. homeassistant/components/withings/translations/ru.json +6 -0
  2673. homeassistant/components/withings/translations/sk.json +6 -0
  2674. homeassistant/components/withings/translations/sv.json +6 -0
  2675. homeassistant/components/withings/translations/tr.json +6 -0
  2676. homeassistant/components/withings/translations/zh-Hans.json +6 -0
  2677. homeassistant/components/withings/translations/zh-Hant.json +6 -0
  2678. homeassistant/components/wiz/__init__.py +3 -3
  2679. homeassistant/components/wiz/manifest.json +1 -1
  2680. homeassistant/components/wyoming/assist_satellite.py +130 -22
  2681. homeassistant/components/wyoming/conversation.py +3 -3
  2682. homeassistant/components/wyoming/manifest.json +1 -1
  2683. homeassistant/components/wyoming/tts.py +106 -2
  2684. homeassistant/components/wyoming/wake_word.py +4 -2
  2685. homeassistant/components/xbox/strings.json +7 -1
  2686. homeassistant/components/xbox/translations/cs.json +6 -0
  2687. homeassistant/components/xbox/translations/de.json +6 -0
  2688. homeassistant/components/xbox/translations/el.json +6 -0
  2689. homeassistant/components/xbox/translations/en-GB.json +6 -0
  2690. homeassistant/components/xbox/translations/en.json +6 -0
  2691. homeassistant/components/xbox/translations/es.json +6 -0
  2692. homeassistant/components/xbox/translations/et.json +6 -0
  2693. homeassistant/components/xbox/translations/fr.json +6 -0
  2694. homeassistant/components/xbox/translations/ga.json +14 -1
  2695. homeassistant/components/xbox/translations/he.json +6 -0
  2696. homeassistant/components/xbox/translations/id.json +6 -0
  2697. homeassistant/components/xbox/translations/lt.json +6 -0
  2698. homeassistant/components/xbox/translations/mk.json +14 -1
  2699. homeassistant/components/xbox/translations/pt.json +6 -0
  2700. homeassistant/components/xbox/translations/ru.json +6 -0
  2701. homeassistant/components/xbox/translations/sk.json +6 -0
  2702. homeassistant/components/xbox/translations/sv.json +6 -0
  2703. homeassistant/components/xbox/translations/tr.json +6 -0
  2704. homeassistant/components/xbox/translations/zh-Hans.json +6 -0
  2705. homeassistant/components/xbox/translations/zh-Hant.json +6 -0
  2706. homeassistant/components/xiaomi_miio/fan.py +9 -3
  2707. homeassistant/components/xiaomi_miio/manifest.json +1 -1
  2708. homeassistant/components/xiaomi_miio/strings.json +13 -13
  2709. homeassistant/components/xiaomi_miio/translations/sv.json +30 -7
  2710. homeassistant/components/yale/strings.json +7 -1
  2711. homeassistant/components/yale/translations/cs.json +6 -0
  2712. homeassistant/components/yale/translations/de.json +6 -0
  2713. homeassistant/components/yale/translations/el.json +6 -0
  2714. homeassistant/components/yale/translations/en-GB.json +6 -0
  2715. homeassistant/components/yale/translations/en.json +6 -0
  2716. homeassistant/components/yale/translations/es.json +6 -0
  2717. homeassistant/components/yale/translations/et.json +6 -0
  2718. homeassistant/components/yale/translations/fr.json +14 -1
  2719. homeassistant/components/yale/translations/ga.json +14 -1
  2720. homeassistant/components/yale/translations/he.json +6 -0
  2721. homeassistant/components/yale/translations/id.json +6 -0
  2722. homeassistant/components/yale/translations/lt.json +6 -0
  2723. homeassistant/components/yale/translations/mk.json +14 -1
  2724. homeassistant/components/yale/translations/pt.json +6 -0
  2725. homeassistant/components/yale/translations/ru.json +6 -0
  2726. homeassistant/components/yale/translations/sk.json +6 -0
  2727. homeassistant/components/yale/translations/sv.json +6 -0
  2728. homeassistant/components/yale/translations/tr.json +6 -0
  2729. homeassistant/components/yale/translations/zh-Hans.json +6 -0
  2730. homeassistant/components/yale/translations/zh-Hant.json +6 -0
  2731. homeassistant/components/yolink/__init__.py +2 -2
  2732. homeassistant/components/yolink/manifest.json +1 -1
  2733. homeassistant/components/yolink/services.py +3 -2
  2734. homeassistant/components/yolink/strings.json +7 -1
  2735. homeassistant/components/yolink/translations/cs.json +6 -0
  2736. homeassistant/components/yolink/translations/de.json +6 -0
  2737. homeassistant/components/yolink/translations/el.json +6 -0
  2738. homeassistant/components/yolink/translations/en-GB.json +6 -0
  2739. homeassistant/components/yolink/translations/en.json +6 -0
  2740. homeassistant/components/yolink/translations/es.json +6 -0
  2741. homeassistant/components/yolink/translations/et.json +6 -0
  2742. homeassistant/components/yolink/translations/fr.json +6 -0
  2743. homeassistant/components/yolink/translations/ga.json +12 -0
  2744. homeassistant/components/yolink/translations/he.json +6 -0
  2745. homeassistant/components/yolink/translations/id.json +6 -0
  2746. homeassistant/components/yolink/translations/lt.json +6 -0
  2747. homeassistant/components/yolink/translations/mk.json +12 -0
  2748. homeassistant/components/yolink/translations/pt.json +6 -0
  2749. homeassistant/components/yolink/translations/ru.json +6 -0
  2750. homeassistant/components/yolink/translations/sk.json +6 -0
  2751. homeassistant/components/yolink/translations/sv.json +6 -0
  2752. homeassistant/components/yolink/translations/tr.json +6 -0
  2753. homeassistant/components/yolink/translations/zh-Hans.json +6 -0
  2754. homeassistant/components/yolink/translations/zh-Hant.json +6 -0
  2755. homeassistant/components/yolink/valve.py +4 -1
  2756. homeassistant/components/zha/manifest.json +7 -1
  2757. homeassistant/components/zha/strings.json +53 -3
  2758. homeassistant/components/zha/translations/bg.json +23 -0
  2759. homeassistant/components/zha/translations/cs.json +50 -0
  2760. homeassistant/components/zha/translations/de.json +50 -0
  2761. homeassistant/components/zha/translations/el.json +64 -0
  2762. homeassistant/components/zha/translations/en.json +50 -0
  2763. homeassistant/components/zha/translations/es.json +50 -0
  2764. homeassistant/components/zha/translations/et.json +50 -0
  2765. homeassistant/components/zha/translations/ga.json +20 -0
  2766. homeassistant/components/zha/translations/id.json +6 -0
  2767. homeassistant/components/zha/translations/pt.json +50 -0
  2768. homeassistant/components/zha/translations/sk.json +50 -0
  2769. homeassistant/components/zha/translations/sv.json +15 -0
  2770. homeassistant/components/zha/translations/zh-Hans.json +50 -0
  2771. homeassistant/components/zha/translations/zh-Hant.json +50 -0
  2772. homeassistant/components/zha/websocket_api.py +2 -2
  2773. homeassistant/components/zimi/__init__.py +1 -1
  2774. homeassistant/components/zimi/light.py +1 -3
  2775. homeassistant/components/zoneminder/__init__.py +5 -25
  2776. homeassistant/components/zoneminder/const.py +3 -0
  2777. homeassistant/components/zoneminder/services.py +40 -0
  2778. homeassistant/components/zwave_js/__init__.py +2 -5
  2779. homeassistant/components/zwave_js/api.py +22 -25
  2780. homeassistant/components/zwave_js/climate.py +1 -3
  2781. homeassistant/components/zwave_js/config_flow.py +12 -8
  2782. homeassistant/components/zwave_js/device_trigger.py +4 -3
  2783. homeassistant/components/zwave_js/discovery.py +36 -8
  2784. homeassistant/components/zwave_js/manifest.json +1 -1
  2785. homeassistant/components/zwave_js/services.py +7 -0
  2786. homeassistant/components/zwave_js/strings.json +8 -8
  2787. homeassistant/components/zwave_js/translations/cs.json +7 -7
  2788. homeassistant/components/zwave_js/translations/de.json +7 -7
  2789. homeassistant/components/zwave_js/translations/el.json +7 -7
  2790. homeassistant/components/zwave_js/translations/en-GB.json +7 -7
  2791. homeassistant/components/zwave_js/translations/en.json +7 -7
  2792. homeassistant/components/zwave_js/translations/es.json +5 -5
  2793. homeassistant/components/zwave_js/translations/et.json +7 -7
  2794. homeassistant/components/zwave_js/translations/fi.json +0 -1
  2795. homeassistant/components/zwave_js/translations/ga.json +0 -6
  2796. homeassistant/components/zwave_js/translations/hu.json +0 -8
  2797. homeassistant/components/zwave_js/translations/ko.json +0 -3
  2798. homeassistant/components/zwave_js/translations/lt.json +7 -7
  2799. homeassistant/components/zwave_js/translations/mk.json +0 -5
  2800. homeassistant/components/zwave_js/translations/pt.json +0 -8
  2801. homeassistant/components/zwave_js/translations/ru.json +0 -8
  2802. homeassistant/components/zwave_js/translations/sk.json +6 -6
  2803. homeassistant/components/zwave_js/translations/sv.json +7 -7
  2804. homeassistant/components/zwave_js/translations/tr.json +0 -2
  2805. homeassistant/components/zwave_js/translations/zh-Hans.json +6 -6
  2806. homeassistant/components/zwave_js/translations/zh-Hant.json +7 -7
  2807. homeassistant/components/zwave_js/trigger.py +7 -35
  2808. homeassistant/components/zwave_js/triggers/event.py +29 -3
  2809. homeassistant/components/zwave_js/triggers/value_updated.py +27 -1
  2810. homeassistant/config.py +1 -2
  2811. homeassistant/config_entries.py +6 -0
  2812. homeassistant/const.py +4 -3
  2813. homeassistant/core.py +11 -14
  2814. homeassistant/core_config.py +5 -6
  2815. homeassistant/exceptions.py +1 -2
  2816. homeassistant/generated/config_flows.py +5 -1
  2817. homeassistant/generated/dhcp.py +81 -1
  2818. homeassistant/generated/integrations.json +36 -13
  2819. homeassistant/generated/usb.py +6 -0
  2820. homeassistant/generated/zeroconf.py +10 -0
  2821. homeassistant/helpers/area_registry.py +3 -6
  2822. homeassistant/helpers/backup.py +1 -2
  2823. homeassistant/helpers/condition.py +45 -24
  2824. homeassistant/helpers/config_entry_flow.py +3 -6
  2825. homeassistant/helpers/config_validation.py +5 -8
  2826. homeassistant/helpers/deprecation.py +3 -4
  2827. homeassistant/helpers/device_registry.py +48 -5
  2828. homeassistant/helpers/entity.py +1 -29
  2829. homeassistant/helpers/entity_registry.py +127 -13
  2830. homeassistant/helpers/json.py +1 -4
  2831. homeassistant/helpers/llm.py +17 -4
  2832. homeassistant/helpers/network.py +2 -4
  2833. homeassistant/helpers/recorder.py +5 -6
  2834. homeassistant/helpers/selector.py +72 -5
  2835. homeassistant/helpers/service.py +8 -7
  2836. homeassistant/helpers/storage.py +1 -1
  2837. homeassistant/helpers/sun.py +2 -2
  2838. homeassistant/helpers/system_info.py +19 -2
  2839. homeassistant/helpers/template.py +28 -17
  2840. homeassistant/helpers/trigger.py +257 -14
  2841. homeassistant/helpers/typing.py +1 -2
  2842. homeassistant/loader.py +11 -6
  2843. homeassistant/package_constraints.txt +25 -19
  2844. homeassistant/scripts/__init__.py +1 -3
  2845. homeassistant/scripts/check_config.py +1 -2
  2846. homeassistant/setup.py +1 -2
  2847. homeassistant/strings.json +3 -1
  2848. homeassistant/util/async_.py +1 -2
  2849. homeassistant/util/signal_type.pyi +2 -3
  2850. homeassistant/util/timeout.py +19 -5
  2851. homeassistant/util/yaml/loader.py +11 -7
  2852. {homeassistant-2025.6.3.dist-info → homeassistant-2025.7.0b1.dist-info}/METADATA +10 -19
  2853. {homeassistant-2025.6.3.dist-info → homeassistant-2025.7.0b1.dist-info}/RECORD +2858 -2666
  2854. homeassistant/backports/enum.py +0 -29
  2855. homeassistant/backports/functools.py +0 -31
  2856. homeassistant/components/devolo_home_control/devolo_multi_level_switch.py +0 -27
  2857. homeassistant/components/juicenet/device.py +0 -19
  2858. homeassistant/components/juicenet/entity.py +0 -34
  2859. homeassistant/components/juicenet/number.py +0 -92
  2860. homeassistant/components/juicenet/sensor.py +0 -117
  2861. homeassistant/components/juicenet/switch.py +0 -49
  2862. homeassistant/components/synology_dsm/service.py +0 -77
  2863. {homeassistant-2025.6.3.dist-info → homeassistant-2025.7.0b1.dist-info}/WHEEL +0 -0
  2864. {homeassistant-2025.6.3.dist-info → homeassistant-2025.7.0b1.dist-info}/entry_points.txt +0 -0
  2865. {homeassistant-2025.6.3.dist-info → homeassistant-2025.7.0b1.dist-info}/licenses/LICENSE.md +0 -0
  2866. {homeassistant-2025.6.3.dist-info → homeassistant-2025.7.0b1.dist-info}/licenses/homeassistant/backports/LICENSE.Python +0 -0
  2867. {homeassistant-2025.6.3.dist-info → homeassistant-2025.7.0b1.dist-info}/top_level.txt +0 -0
@@ -2,136 +2,104 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- import asyncio
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 httpx
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.helpers import config_validation as cv, issue_registry as ir
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
- EVENT_TELEGRAM_CALLBACK = "telegram_callback"
125
- EVENT_TELEGRAM_COMMAND = "telegram_command"
126
- EVENT_TELEGRAM_TEXT = "telegram_text"
127
- EVENT_TELEGRAM_SENT = "telegram_sent"
128
-
129
- PARSER_HTML = "html"
130
- PARSER_MD = "markdown"
131
- PARSER_MD2 = "markdownv2"
132
- PARSER_PLAIN_TEXT = "plain_text"
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
- DEFAULT_TRUSTED_NETWORKS = [ip_network("149.154.160.0/20"), ip_network("91.108.4.0/22")]
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
- ("broadcast", "polling", "webhooks")
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({vol.Required(ATTR_CHAT_ID): vol.Coerce(int)})
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
- def _read_file_as_bytesio(file_path: str) -> io.BytesIO:
297
- """Read a file and return it as a BytesIO object."""
298
- with open(file_path, "rb") as file:
299
- data = io.BytesIO(file.read())
300
- data.name = file_path
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
- if not domain_config:
381
- return False
382
-
383
- platforms = await async_get_loaded_integration(hass, DOMAIN).async_get_platforms(
384
- {p_config[CONF_PLATFORM] for p_config in domain_config}
385
- )
386
-
387
- for p_config in domain_config:
388
- # Each platform config gets its own bot
389
- bot = await hass.async_add_executor_job(initialize_bot, hass, p_config)
390
- p_type: str = p_config[CONF_PLATFORM]
391
-
392
- platform = platforms[p_type]
393
-
394
- _LOGGER.debug("Setting up %s.%s", DOMAIN, p_type)
395
- try:
396
- receiver_service = await platform.async_setup_platform(hass, bot, p_config)
397
- if receiver_service is False:
398
- _LOGGER.error("Failed to initialize Telegram bot %s", p_type)
399
- return False
400
-
401
- except Exception:
402
- _LOGGER.exception("Error setting up platform %s", p_type)
403
- return False
404
-
405
- notify_service = TelegramNotificationService(
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 initialize_bot(hass: HomeAssistant, p_config: dict) -> Bot:
489
- """Initialize telegram bot with proxy support."""
490
- api_key: str = p_config[CONF_API_KEY]
491
- proxy_url: str | None = p_config.get(CONF_PROXY_URL)
492
- proxy_params: dict | None = p_config.get(CONF_PROXY_PARAMS)
493
-
494
- if proxy_url is not None:
495
- auth = None
496
- if proxy_params is None:
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
- def _get_message_event_data(self, message: Message) -> tuple[str, dict[str, Any]]:
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
- if message.from_user:
1145
- event_data.update(self._get_user_event_data(message.from_user))
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
- return event_type, event_data
475
+ notify_service = TelegramNotificationService(
476
+ hass, receiver_service, bot, entry, entry.options[ATTR_PARSER]
477
+ )
478
+ entry.runtime_data = notify_service
1148
479
 
1149
- def _get_user_event_data(self, user: User) -> dict[str, Any]:
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
- def _get_callback_query_event_data(
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
- # Split data into command and args if possible
1175
- event_data.update(self._get_command_event_data(callback_query.data))
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
- def authorize_update(self, update: Update) -> bool:
1180
- """Make sure either user or chat is in allowed_chat_ids."""
1181
- from_user = update.effective_user.id if update.effective_user else None
1182
- from_chat = update.effective_chat.id if update.effective_chat else None
1183
- if from_user in self.allowed_chat_ids or from_chat in self.allowed_chat_ids:
1184
- return True
1185
- _LOGGER.error(
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