homeassistant-stubs 2024.4.3__py3-none-any.whl → 2024.5.0__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 (374) hide show
  1. homeassistant-stubs/auth/__init__.pyi +3 -1
  2. homeassistant-stubs/auth/jwt_wrapper.pyi +1 -1
  3. homeassistant-stubs/auth/permissions/__init__.pyi +1 -2
  4. homeassistant-stubs/auth/permissions/events.pyi +3 -2
  5. homeassistant-stubs/auth/session.pyi +46 -0
  6. homeassistant-stubs/backports/enum.pyi +6 -2
  7. homeassistant-stubs/backports/functools.pyi +5 -15
  8. homeassistant-stubs/block_async_io.pyi +8 -1
  9. homeassistant-stubs/bootstrap.pyi +7 -1
  10. homeassistant-stubs/components/accuweather/__init__.pyi +9 -13
  11. homeassistant-stubs/components/accuweather/config_flow.pyi +2 -10
  12. homeassistant-stubs/components/accuweather/const.pyi +2 -2
  13. homeassistant-stubs/components/accuweather/coordinator.pyi +27 -0
  14. homeassistant-stubs/components/accuweather/diagnostics.pyi +1 -1
  15. homeassistant-stubs/components/accuweather/sensor.pyi +29 -8
  16. homeassistant-stubs/components/accuweather/weather.pyi +9 -5
  17. homeassistant-stubs/components/adax/climate.pyi +3 -1
  18. homeassistant-stubs/components/adguard/__init__.pyi +9 -1
  19. homeassistant-stubs/components/adguard/const.pyi +0 -2
  20. homeassistant-stubs/components/adguard/entity.pyi +4 -3
  21. homeassistant-stubs/components/adguard/sensor.pyi +3 -3
  22. homeassistant-stubs/components/adguard/switch.pyi +3 -3
  23. homeassistant-stubs/components/airthings/sensor.pyi +2 -0
  24. homeassistant-stubs/components/airtouch5/config_flow.pyi +3 -3
  25. homeassistant-stubs/components/airzone_cloud/entity.pyi +7 -0
  26. homeassistant-stubs/components/airzone_cloud/select.pyi +38 -0
  27. homeassistant-stubs/components/airzone_cloud/water_heater.pyi +35 -0
  28. homeassistant-stubs/components/alert/__init__.pyi +2 -2
  29. homeassistant-stubs/components/alexa/config.pyi +2 -0
  30. homeassistant-stubs/components/alexa/entities.pyi +0 -2
  31. homeassistant-stubs/components/alexa/intent.pyi +2 -1
  32. homeassistant-stubs/components/alexa/resources.pyi +3 -3
  33. homeassistant-stubs/components/alexa/state_report.pyi +3 -4
  34. homeassistant-stubs/components/ambient_network/__init__.pyi +10 -0
  35. homeassistant-stubs/components/ambient_network/config_flow.pyi +22 -0
  36. homeassistant-stubs/components/ambient_network/const.pyi +12 -0
  37. homeassistant-stubs/components/ambient_network/coordinator.pyi +18 -0
  38. homeassistant-stubs/components/ambient_network/entity.pyi +20 -0
  39. homeassistant-stubs/components/ambient_network/helper.pyi +4 -0
  40. homeassistant-stubs/components/ambient_network/sensor.pyi +46 -0
  41. homeassistant-stubs/components/ambient_station/sensor.pyi +3 -1
  42. homeassistant-stubs/components/apache_kafka/__init__.pyi +1 -2
  43. homeassistant-stubs/components/apcupsd/binary_sensor.pyi +1 -0
  44. homeassistant-stubs/components/apcupsd/sensor.pyi +1 -0
  45. homeassistant-stubs/components/api/__init__.pyi +2 -2
  46. homeassistant-stubs/components/apple_tv/remote.pyi +1 -1
  47. homeassistant-stubs/components/arris_tg2492lg/device_tracker.pyi +5 -4
  48. homeassistant-stubs/components/aseko_pool_live/binary_sensor.pyi +0 -1
  49. homeassistant-stubs/components/assist_pipeline/__init__.pyi +2 -2
  50. homeassistant-stubs/components/assist_pipeline/const.pyi +1 -0
  51. homeassistant-stubs/components/assist_pipeline/pipeline.pyi +5 -3
  52. homeassistant-stubs/components/auth/__init__.pyi +9 -2
  53. homeassistant-stubs/components/auth/login_flow.pyi +2 -2
  54. homeassistant-stubs/components/auth/mfa_setup_flow.pyi +1 -1
  55. homeassistant-stubs/components/automation/__init__.pyi +7 -9
  56. homeassistant-stubs/components/automation/logbook.pyi +3 -1
  57. homeassistant-stubs/components/axis/hub/event_source.pyi +23 -0
  58. homeassistant-stubs/components/axis/hub/hub.pyi +4 -9
  59. homeassistant-stubs/components/baf/fan.pyi +1 -0
  60. homeassistant-stubs/components/bayesian/binary_sensor.pyi +2 -2
  61. homeassistant-stubs/components/bluetooth/config_flow.pyi +6 -0
  62. homeassistant-stubs/components/bluetooth/diagnostics.pyi +1 -1
  63. homeassistant-stubs/components/bluetooth/util.pyi +2 -1
  64. homeassistant-stubs/components/bmw_connected_drive/binary_sensor.pyi +2 -1
  65. homeassistant-stubs/components/bmw_connected_drive/const.pyi +1 -0
  66. homeassistant-stubs/components/bmw_connected_drive/sensor.pyi +4 -3
  67. homeassistant-stubs/components/camera/__init__.pyi +2 -2
  68. homeassistant-stubs/components/cloud/__init__.pyi +9 -4
  69. homeassistant-stubs/components/cloud/alexa_config.pyi +2 -2
  70. homeassistant-stubs/components/cloud/const.pyi +2 -1
  71. homeassistant-stubs/components/cloud/google_config.pyi +3 -3
  72. homeassistant-stubs/components/cloud/http_api.pyi +2 -2
  73. homeassistant-stubs/components/cloud/prefs.pyi +5 -3
  74. homeassistant-stubs/components/cloud/stt.pyi +1 -0
  75. homeassistant-stubs/components/cloud/tts.pyi +1 -0
  76. homeassistant-stubs/components/cloud/util.pyi +7 -0
  77. homeassistant-stubs/components/command_line/binary_sensor.pyi +4 -4
  78. homeassistant-stubs/components/command_line/const.pyi +4 -1
  79. homeassistant-stubs/components/command_line/cover.pyi +3 -3
  80. homeassistant-stubs/components/command_line/sensor.pyi +4 -5
  81. homeassistant-stubs/components/command_line/switch.pyi +3 -3
  82. homeassistant-stubs/components/config/__init__.pyi +1 -1
  83. homeassistant-stubs/components/deconz/binary_sensor.pyi +0 -1
  84. homeassistant-stubs/components/demo/notify.pyi +12 -10
  85. homeassistant-stubs/components/demo/sensor.pyi +1 -1
  86. homeassistant-stubs/components/derivative/sensor.pyi +2 -2
  87. homeassistant-stubs/components/device_tracker/config_entry.pyi +1 -1
  88. homeassistant-stubs/components/device_tracker/legacy.pyi +2 -1
  89. homeassistant-stubs/components/dhcp/__init__.pyi +2 -2
  90. homeassistant-stubs/components/dlna_dms/dms.pyi +2 -1
  91. homeassistant-stubs/components/ecovacs/event.pyi +1 -0
  92. homeassistant-stubs/components/ecovacs/select.pyi +1 -1
  93. homeassistant-stubs/components/ecovacs/util.pyi +5 -1
  94. homeassistant-stubs/components/ecovacs/vacuum.pyi +1 -0
  95. homeassistant-stubs/components/emulated_hue/config.pyi +2 -2
  96. homeassistant-stubs/components/emulated_hue/hue_api.pyi +2 -2
  97. homeassistant-stubs/components/energenie_power_sockets/__init__.pyi +12 -0
  98. homeassistant-stubs/components/energenie_power_sockets/config_flow.pyi +6 -0
  99. homeassistant-stubs/components/energenie_power_sockets/const.pyi +5 -0
  100. homeassistant-stubs/components/energenie_power_sockets/switch.pyi +27 -0
  101. homeassistant-stubs/components/energy/data.pyi +1 -0
  102. homeassistant-stubs/components/energy/sensor.pyi +4 -4
  103. homeassistant-stubs/components/energy/websocket_api.pyi +1 -1
  104. homeassistant-stubs/components/enigma2/__init__.pyi +11 -0
  105. homeassistant-stubs/components/enigma2/config_flow.pyi +17 -0
  106. homeassistant-stubs/components/enigma2/const.pyi +1 -0
  107. homeassistant-stubs/components/enigma2/media_player.pyi +9 -6
  108. homeassistant-stubs/components/enphase_envoy/coordinator.pyi +1 -0
  109. homeassistant-stubs/components/eq3btsmart/__init__.pyi +18 -0
  110. homeassistant-stubs/components/eq3btsmart/climate.pyi +55 -0
  111. homeassistant-stubs/components/eq3btsmart/config_flow.pyi +17 -0
  112. homeassistant-stubs/components/eq3btsmart/const.pyi +38 -0
  113. homeassistant-stubs/components/eq3btsmart/entity.pyi +10 -0
  114. homeassistant-stubs/components/eq3btsmart/models.pyi +20 -0
  115. homeassistant-stubs/components/eq3btsmart/schemas.pyi +6 -0
  116. homeassistant-stubs/components/esphome/datetime.pyi +14 -0
  117. homeassistant-stubs/components/esphome/entry_data.pyi +4 -5
  118. homeassistant-stubs/components/esphome/event.pyi +16 -0
  119. homeassistant-stubs/components/esphome/manager.pyi +5 -4
  120. homeassistant-stubs/components/esphome/update.pyi +0 -1
  121. homeassistant-stubs/components/esphome/valve.pyi +30 -0
  122. homeassistant-stubs/components/esphome/voice_assistant.pyi +24 -8
  123. homeassistant-stubs/components/filter/sensor.pyi +2 -2
  124. homeassistant-stubs/components/fritz/__init__.pyi +2 -2
  125. homeassistant-stubs/components/fritz/button.pyi +16 -3
  126. homeassistant-stubs/components/fritz/common.pyi +6 -3
  127. homeassistant-stubs/components/fritz/config_flow.pyi +7 -2
  128. homeassistant-stubs/components/fritz/const.pyi +5 -1
  129. homeassistant-stubs/components/fritzbox/climate.pyi +1 -1
  130. homeassistant-stubs/components/fritzbox/config_flow.pyi +2 -0
  131. homeassistant-stubs/components/fritzbox/coordinator.pyi +4 -2
  132. homeassistant-stubs/components/generic_hygrostat/humidifier.pyi +4 -2
  133. homeassistant-stubs/components/generic_thermostat/climate.pyi +2 -2
  134. homeassistant-stubs/components/geo_location/trigger.pyi +2 -2
  135. homeassistant-stubs/components/glances/coordinator.pyi +1 -0
  136. homeassistant-stubs/components/glances/sensor.pyi +6 -5
  137. homeassistant-stubs/components/group/entity.pyi +6 -12
  138. homeassistant-stubs/components/group/event.pyi +2 -2
  139. homeassistant-stubs/components/group/media_player.pyi +2 -2
  140. homeassistant-stubs/components/group/notify.pyi +2 -1
  141. homeassistant-stubs/components/group/registry.pyi +6 -4
  142. homeassistant-stubs/components/history/websocket_api.pyi +6 -6
  143. homeassistant-stubs/components/history_stats/coordinator.pyi +2 -2
  144. homeassistant-stubs/components/history_stats/data.pyi +1 -2
  145. homeassistant-stubs/components/homeassistant/logbook.pyi +5 -3
  146. homeassistant-stubs/components/homeassistant/triggers/numeric_state.pyi +2 -2
  147. homeassistant-stubs/components/homeassistant/triggers/state.pyi +2 -2
  148. homeassistant-stubs/components/homeassistant/triggers/time.pyi +2 -2
  149. homeassistant-stubs/components/homeassistant_alerts/__init__.pyi +3 -1
  150. homeassistant-stubs/components/homeassistant_sky_connect/__init__.pyi +7 -9
  151. homeassistant-stubs/components/homeassistant_sky_connect/config_flow.pyi +61 -6
  152. homeassistant-stubs/components/homeassistant_sky_connect/const.pyi +8 -0
  153. homeassistant-stubs/components/homeassistant_sky_connect/util.pyi +23 -2
  154. homeassistant-stubs/components/homekit/accessories.pyi +2 -2
  155. homeassistant-stubs/components/homekit/type_cameras.pyi +3 -2
  156. homeassistant-stubs/components/homekit/type_covers.pyi +2 -2
  157. homeassistant-stubs/components/homekit/type_humidifiers.pyi +2 -2
  158. homeassistant-stubs/components/homekit/type_thermostats.pyi +2 -2
  159. homeassistant-stubs/components/homekit/util.pyi +3 -4
  160. homeassistant-stubs/components/homeworks/__init__.pyi +7 -2
  161. homeassistant-stubs/components/homeworks/button.pyi +1 -1
  162. homeassistant-stubs/components/http/__init__.pyi +9 -6
  163. homeassistant-stubs/components/http/auth.pyi +11 -3
  164. homeassistant-stubs/components/http/const.pyi +7 -0
  165. homeassistant-stubs/components/http/session.pyi +29 -0
  166. homeassistant-stubs/components/hydrawise/__init__.pyi +3 -6
  167. homeassistant-stubs/components/hydrawise/binary_sensor.pyi +1 -4
  168. homeassistant-stubs/components/hydrawise/config_flow.pyi +8 -9
  169. homeassistant-stubs/components/hydrawise/sensor.pyi +2 -4
  170. homeassistant-stubs/components/hydrawise/switch.pyi +2 -5
  171. homeassistant-stubs/components/image/__init__.pyi +2 -2
  172. homeassistant-stubs/components/imap/__init__.pyi +20 -4
  173. homeassistant-stubs/components/imap/config_flow.pyi +2 -1
  174. homeassistant-stubs/components/imap/const.pyi +5 -2
  175. homeassistant-stubs/components/imap/coordinator.pyi +5 -2
  176. homeassistant-stubs/components/integration/sensor.pyi +12 -13
  177. homeassistant-stubs/components/islamic_prayer_times/config_flow.pyi +1 -3
  178. homeassistant-stubs/components/islamic_prayer_times/coordinator.pyi +4 -4
  179. homeassistant-stubs/components/isy994/helpers.pyi +1 -1
  180. homeassistant-stubs/components/jvc_projector/select.pyi +30 -0
  181. homeassistant-stubs/components/knx/expose.pyi +2 -2
  182. homeassistant-stubs/components/knx/helpers/__init__.pyi +0 -0
  183. homeassistant-stubs/components/knx/notify.pyi +16 -3
  184. homeassistant-stubs/components/knx/repairs.pyi +7 -0
  185. homeassistant-stubs/components/local_todo/todo.pyi +1 -0
  186. homeassistant-stubs/components/logbook/__init__.pyi +1 -0
  187. homeassistant-stubs/components/logbook/helpers.pyi +5 -4
  188. homeassistant-stubs/components/logbook/models.pyi +4 -3
  189. homeassistant-stubs/components/logbook/processor.pyi +3 -2
  190. homeassistant-stubs/components/logger/helpers.pyi +4 -1
  191. homeassistant-stubs/components/matter/config_flow.pyi +4 -0
  192. homeassistant-stubs/components/matter/light.pyi +3 -0
  193. homeassistant-stubs/components/media_extractor/__init__.pyi +4 -4
  194. homeassistant-stubs/components/media_extractor/const.pyi +5 -0
  195. homeassistant-stubs/components/min_max/sensor.pyi +2 -2
  196. homeassistant-stubs/components/minecraft_server/sensor.pyi +2 -2
  197. homeassistant-stubs/components/modbus/__init__.pyi +2 -2
  198. homeassistant-stubs/components/modbus/base_platform.pyi +1 -1
  199. homeassistant-stubs/components/modbus/climate.pyi +9 -3
  200. homeassistant-stubs/components/modbus/const.pyi +7 -0
  201. homeassistant-stubs/components/modbus/modbus.pyi +1 -0
  202. homeassistant-stubs/components/modbus/validators.pyi +2 -1
  203. homeassistant-stubs/components/mqtt/__init__.pyi +1 -2
  204. homeassistant-stubs/components/mqtt/client.pyi +37 -12
  205. homeassistant-stubs/components/mqtt/config_flow.pyi +9 -1
  206. homeassistant-stubs/components/mqtt/mixins.pyi +7 -4
  207. homeassistant-stubs/components/mqtt/models.pyi +1 -1
  208. homeassistant-stubs/components/mqtt/notify.pyi +31 -0
  209. homeassistant-stubs/components/mysensors/gateway.pyi +1 -0
  210. homeassistant-stubs/components/netatmo/__init__.pyi +2 -0
  211. homeassistant-stubs/components/netatmo/binary_sensor.pyi +20 -0
  212. homeassistant-stubs/components/netatmo/camera.pyi +8 -11
  213. homeassistant-stubs/components/netatmo/climate.pyi +11 -19
  214. homeassistant-stubs/components/netatmo/cover.pyi +5 -7
  215. homeassistant-stubs/components/netatmo/entity.pyi +40 -10
  216. homeassistant-stubs/components/netatmo/fan.pyi +5 -8
  217. homeassistant-stubs/components/netatmo/light.pyi +11 -19
  218. homeassistant-stubs/components/netatmo/select.pyi +4 -7
  219. homeassistant-stubs/components/netatmo/sensor.pyi +36 -49
  220. homeassistant-stubs/components/netatmo/switch.pyi +5 -7
  221. homeassistant-stubs/components/nextdns/__init__.pyi +1 -38
  222. homeassistant-stubs/components/nextdns/binary_sensor.pyi +1 -1
  223. homeassistant-stubs/components/nextdns/button.pyi +1 -1
  224. homeassistant-stubs/components/nextdns/coordinator.pyi +42 -0
  225. homeassistant-stubs/components/nextdns/sensor.pyi +1 -1
  226. homeassistant-stubs/components/nextdns/switch.pyi +1 -1
  227. homeassistant-stubs/components/nfandroidtv/notify.pyi +2 -1
  228. homeassistant-stubs/components/notify/__init__.pyi +31 -2
  229. homeassistant-stubs/components/notify/const.pyi +2 -0
  230. homeassistant-stubs/components/number/const.pyi +1 -0
  231. homeassistant-stubs/components/number/significant_change.pyi +1 -1
  232. homeassistant-stubs/components/oncue/__init__.pyi +2 -1
  233. homeassistant-stubs/components/oncue/config_flow.pyi +7 -1
  234. homeassistant-stubs/components/onewire/model.pyi +1 -1
  235. homeassistant-stubs/components/onewire/onewirehub.pyi +2 -2
  236. homeassistant-stubs/components/open_meteo/weather.pyi +2 -1
  237. homeassistant-stubs/components/prometheus/__init__.pyi +1 -2
  238. homeassistant-stubs/components/proximity/__init__.pyi +1 -1
  239. homeassistant-stubs/components/proximity/coordinator.pyi +2 -2
  240. homeassistant-stubs/components/purpleair/config_flow.pyi +2 -2
  241. homeassistant-stubs/components/rabbitair/config_flow.pyi +4 -4
  242. homeassistant-stubs/components/recorder/__init__.pyi +1 -0
  243. homeassistant-stubs/components/recorder/auto_repairs/states/__init__.pyi +0 -0
  244. homeassistant-stubs/components/recorder/core.pyi +6 -5
  245. homeassistant-stubs/components/recorder/db_schema.pyi +3 -3
  246. homeassistant-stubs/components/recorder/history/__init__.pyi +5 -6
  247. homeassistant-stubs/components/recorder/history/legacy.pyi +7 -7
  248. homeassistant-stubs/components/recorder/history/modern.pyi +7 -7
  249. homeassistant-stubs/components/recorder/models/event.pyi +4 -1
  250. homeassistant-stubs/components/recorder/pool.pyi +1 -1
  251. homeassistant-stubs/components/recorder/services.pyi +1 -0
  252. homeassistant-stubs/components/recorder/statistics.pyi +4 -4
  253. homeassistant-stubs/components/recorder/table_managers/__init__.pyi +4 -3
  254. homeassistant-stubs/components/recorder/table_managers/event_types.pyi +5 -3
  255. homeassistant-stubs/components/recorder/table_managers/state_attributes.pyi +3 -3
  256. homeassistant-stubs/components/recorder/table_managers/states_meta.pyi +2 -2
  257. homeassistant-stubs/components/recorder/table_managers/statistics_meta.pyi +3 -3
  258. homeassistant-stubs/components/recorder/tasks.pyi +2 -1
  259. homeassistant-stubs/components/recorder/websocket_api.pyi +1 -1
  260. homeassistant-stubs/components/rest/__init__.pyi +2 -2
  261. homeassistant-stubs/components/rest/const.pyi +1 -0
  262. homeassistant-stubs/components/rest/data.pyi +1 -0
  263. homeassistant-stubs/components/rest/schema.pyi +1 -1
  264. homeassistant-stubs/components/rfxtrx/__init__.pyi +1 -1
  265. homeassistant-stubs/components/rfxtrx/config_flow.pyi +2 -2
  266. homeassistant-stubs/components/rfxtrx/event.pyi +1 -0
  267. homeassistant-stubs/components/ring/__init__.pyi +25 -0
  268. homeassistant-stubs/components/ring/binary_sensor.pyi +35 -0
  269. homeassistant-stubs/components/ring/button.pyi +20 -0
  270. homeassistant-stubs/components/ring/camera.pyi +43 -0
  271. homeassistant-stubs/components/ring/config_flow.pyi +26 -0
  272. homeassistant-stubs/components/ring/const.pyi +12 -0
  273. homeassistant-stubs/components/ring/coordinator.pyi +25 -0
  274. homeassistant-stubs/components/ring/diagnostics.pyi +11 -0
  275. homeassistant-stubs/components/ring/entity.pyi +33 -0
  276. homeassistant-stubs/components/ring/light.pyi +34 -0
  277. homeassistant-stubs/components/ring/sensor.pyi +39 -0
  278. homeassistant-stubs/components/ring/siren.pyi +23 -0
  279. homeassistant-stubs/components/ring/switch.pyi +31 -0
  280. homeassistant-stubs/components/romy/binary_sensor.pyi +19 -0
  281. homeassistant-stubs/components/romy/config_flow.pyi +7 -7
  282. homeassistant-stubs/components/romy/sensor.pyi +20 -0
  283. homeassistant-stubs/components/sensor/__init__.pyi +1 -1
  284. homeassistant-stubs/components/sensor/significant_change.pyi +1 -1
  285. homeassistant-stubs/components/shelly/__init__.pyi +2 -4
  286. homeassistant-stubs/components/shelly/coordinator.pyi +8 -7
  287. homeassistant-stubs/components/shelly/switch.pyi +1 -1
  288. homeassistant-stubs/components/shelly/utils.pyi +1 -0
  289. homeassistant-stubs/components/starlink/coordinator.pyi +1 -0
  290. homeassistant-stubs/components/statistics/sensor.pyi +2 -2
  291. homeassistant-stubs/components/switch/light.pyi +2 -2
  292. homeassistant-stubs/components/synology_dsm/__init__.pyi +2 -2
  293. homeassistant-stubs/components/synology_dsm/camera.pyi +3 -2
  294. homeassistant-stubs/components/synology_dsm/common.pyi +6 -2
  295. homeassistant-stubs/components/synology_dsm/coordinator.pyi +4 -4
  296. homeassistant-stubs/components/synology_dsm/diagnostics.pyi +0 -1
  297. homeassistant-stubs/components/system_log/__init__.pyi +3 -3
  298. homeassistant-stubs/components/threshold/binary_sensor.pyi +2 -2
  299. homeassistant-stubs/components/tibber/sensor.pyi +1 -0
  300. homeassistant-stubs/components/tplink/coordinator.pyi +2 -0
  301. homeassistant-stubs/components/tplink/entity.pyi +1 -0
  302. homeassistant-stubs/components/tplink/light.pyi +1 -1
  303. homeassistant-stubs/components/tplink/sensor.pyi +4 -3
  304. homeassistant-stubs/components/tplink_omada/switch.pyi +12 -14
  305. homeassistant-stubs/components/trend/binary_sensor.pyi +2 -2
  306. homeassistant-stubs/components/unifi/__init__.pyi +2 -0
  307. homeassistant-stubs/components/unifi/button.pyi +2 -1
  308. homeassistant-stubs/components/unifi/hub/entity_helper.pyi +44 -0
  309. homeassistant-stubs/components/unifi/hub/hub.pyi +8 -13
  310. homeassistant-stubs/components/unifi/sensor.pyi +2 -1
  311. homeassistant-stubs/components/velbus/cover.pyi +2 -0
  312. homeassistant-stubs/components/weather/significant_change.pyi +1 -1
  313. homeassistant-stubs/components/websocket_api/commands.pyi +2 -2
  314. homeassistant-stubs/components/websocket_api/messages.pyi +1 -2
  315. homeassistant-stubs/components/websocket_api/sensor.pyi +3 -7
  316. homeassistant-stubs/components/withings/__init__.pyi +2 -8
  317. homeassistant-stubs/components/withings/config_flow.pyi +1 -1
  318. homeassistant-stubs/components/withings/const.pyi +0 -2
  319. homeassistant-stubs/components/withings/coordinator.pyi +1 -0
  320. homeassistant-stubs/components/zone/__init__.pyi +8 -10
  321. homeassistant-stubs/components/zone/trigger.pyi +2 -2
  322. homeassistant-stubs/components/zwave_js/config_flow.pyi +1 -1
  323. homeassistant-stubs/config.pyi +1 -1
  324. homeassistant-stubs/config_entries.pyi +32 -29
  325. homeassistant-stubs/const.pyi +11 -6
  326. homeassistant-stubs/core.pyi +57 -24
  327. homeassistant-stubs/data_entry_flow.pyi +3 -3
  328. homeassistant-stubs/exceptions.pyi +4 -2
  329. homeassistant-stubs/helpers/aiohttp_client.pyi +1 -0
  330. homeassistant-stubs/helpers/area_registry.pyi +28 -6
  331. homeassistant-stubs/helpers/backports/__init__.pyi +0 -0
  332. homeassistant-stubs/helpers/backports/aiohttp_resolver.pyi +21 -0
  333. homeassistant-stubs/helpers/category_registry.pyi +16 -6
  334. homeassistant-stubs/helpers/data_entry_flow.pyi +1 -1
  335. homeassistant-stubs/helpers/deprecation.pyi +5 -0
  336. homeassistant-stubs/helpers/device_registry.pyi +25 -12
  337. homeassistant-stubs/helpers/dispatcher.pyi +1 -1
  338. homeassistant-stubs/helpers/entity.pyi +6 -3
  339. homeassistant-stubs/helpers/entity_registry.pyi +24 -16
  340. homeassistant-stubs/helpers/event.pyi +10 -17
  341. homeassistant-stubs/helpers/floor_registry.pyi +14 -3
  342. homeassistant-stubs/helpers/frame.pyi +2 -2
  343. homeassistant-stubs/helpers/httpx_client.pyi +1 -1
  344. homeassistant-stubs/helpers/icon.pyi +3 -2
  345. homeassistant-stubs/helpers/intent.pyi +1 -2
  346. homeassistant-stubs/helpers/label_registry.pyi +14 -3
  347. homeassistant-stubs/helpers/network.pyi +2 -2
  348. homeassistant-stubs/helpers/normalized_name_base_registry.pyi +4 -6
  349. homeassistant-stubs/helpers/registry.pyi +19 -4
  350. homeassistant-stubs/helpers/reload.pyi +1 -1
  351. homeassistant-stubs/helpers/schema_config_entry_flow.pyi +2 -2
  352. homeassistant-stubs/helpers/script.pyi +2 -1
  353. homeassistant-stubs/helpers/service.pyi +4 -1
  354. homeassistant-stubs/helpers/significant_change.pyi +4 -4
  355. homeassistant-stubs/helpers/start.pyi +3 -1
  356. homeassistant-stubs/helpers/template.pyi +6 -3
  357. homeassistant-stubs/helpers/translation.pyi +5 -9
  358. homeassistant-stubs/helpers/typing.pyi +11 -7
  359. homeassistant-stubs/helpers/update_coordinator.pyi +2 -1
  360. homeassistant-stubs/requirements.pyi +2 -0
  361. homeassistant-stubs/setup.pyi +1 -0
  362. homeassistant-stubs/util/async_.pyi +1 -6
  363. homeassistant-stubs/util/dt.pyi +5 -4
  364. homeassistant-stubs/util/event_type.pyi +14 -0
  365. homeassistant-stubs/util/logging.pyi +3 -4
  366. homeassistant-stubs/util/loop.pyi +15 -0
  367. homeassistant-stubs/util/signal_type.pyi +1 -1
  368. homeassistant-stubs/util/timeout.pyi +6 -6
  369. homeassistant-stubs/util/yaml/loader.pyi +3 -4
  370. homeassistant-stubs/util/yaml/objects.pyi +12 -2
  371. {homeassistant_stubs-2024.4.3.dist-info → homeassistant_stubs-2024.5.0.dist-info}/METADATA +2 -2
  372. {homeassistant_stubs-2024.4.3.dist-info → homeassistant_stubs-2024.5.0.dist-info}/RECORD +374 -317
  373. {homeassistant_stubs-2024.4.3.dist-info → homeassistant_stubs-2024.5.0.dist-info}/LICENSE +0 -0
  374. {homeassistant_stubs-2024.4.3.dist-info → homeassistant_stubs-2024.5.0.dist-info}/WHEEL +0 -0
@@ -1,3 +1,4 @@
1
+ import asyncio
1
2
  from .core import HomeAssistant as HomeAssistant, callback as callback
2
3
  from .exceptions import HomeAssistantError as HomeAssistantError
3
4
  from .helpers.typing import UNDEFINED as UNDEFINED, UndefinedType as UndefinedType
@@ -26,6 +27,7 @@ def async_clear_install_history(hass: HomeAssistant) -> None: ...
26
27
  def pip_kwargs(config_dir: str | None) -> dict[str, Any]: ...
27
28
  def _install_with_retry(requirement: str, kwargs: dict[str, Any]) -> bool: ...
28
29
  def _install_requirements_if_missing(requirements: list[str], kwargs: dict[str, Any]) -> tuple[set[str], set[str]]: ...
30
+ def _set_result_unless_done(future: asyncio.Future[None]) -> None: ...
29
31
 
30
32
  class RequirementsManager:
31
33
  hass: Incomplete
@@ -36,6 +36,7 @@ def async_set_domains_to_be_loaded(hass: core.HomeAssistant, domains: set[str])
36
36
  def setup_component(hass: core.HomeAssistant, domain: str, config: ConfigType) -> bool: ...
37
37
  async def async_setup_component(hass: core.HomeAssistant, domain: str, config: ConfigType) -> bool: ...
38
38
  async def _async_process_dependencies(hass: core.HomeAssistant, config: ConfigType, integration: loader.Integration) -> list[str]: ...
39
+ def _log_error_setup_error(hass: HomeAssistant, domain: str, integration: loader.Integration | None, msg: str, exc_info: Exception | None = None) -> None: ...
39
40
  async def _async_setup_component(hass: core.HomeAssistant, domain: str, config: ConfigType) -> bool: ...
40
41
  async def async_prepare_setup_platform(hass: core.HomeAssistant, hass_config: ConfigType, domain: str, platform_name: str) -> ModuleType | None: ...
41
42
  async def async_process_deps_reqs(hass: core.HomeAssistant, config: ConfigType, integration: loader.Integration) -> None: ...
@@ -2,20 +2,15 @@ import concurrent.futures
2
2
  from _typeshed import Incomplete
3
3
  from asyncio import AbstractEventLoop, Future, Task
4
4
  from collections.abc import Callable as Callable, Coroutine
5
- from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
6
- from typing import Any, ParamSpec, TypeVar, TypeVarTuple
5
+ from typing import Any, TypeVar, TypeVarTuple
7
6
 
8
7
  _LOGGER: Incomplete
9
8
  _SHUTDOWN_RUN_CALLBACK_THREADSAFE: str
10
9
  _T = TypeVar('_T')
11
- _R = TypeVar('_R')
12
- _P = ParamSpec('_P')
13
10
  _Ts = TypeVarTuple('_Ts')
14
11
 
15
12
  def create_eager_task(coro: Coroutine[Any, Any, _T], *, name: str | None = None, loop: AbstractEventLoop | None = None) -> Task[_T]: ...
16
13
  def cancelling(task: Future[Any]) -> bool: ...
17
14
  def run_callback_threadsafe(loop: AbstractEventLoop, callback: Callable[[Unpack[_Ts]], _T], *args: Unpack[_Ts]) -> concurrent.futures.Future[_T]: ...
18
- def check_loop(func: Callable[..., Any], strict: bool = True, advise_msg: str | None = None) -> None: ...
19
- def protect_loop(func: Callable[_P, _R], strict: bool = True) -> Callable[_P, _R]: ...
20
15
  async def gather_with_limited_concurrency(limit: int, *tasks: Any, return_exceptions: bool = False) -> Any: ...
21
16
  def shutdown_run_callback_threadsafe(loop: AbstractEventLoop) -> None: ...
@@ -1,6 +1,5 @@
1
1
  import datetime as dt
2
2
  from _typeshed import Incomplete
3
- from functools import partial
4
3
  from typing import Any, Literal, overload
5
4
 
6
5
  DATE_STR_FORMAT: str
@@ -15,7 +14,7 @@ POSTGRES_INTERVAL_RE: Incomplete
15
14
  def set_default_time_zone(time_zone: dt.tzinfo) -> None: ...
16
15
  def get_time_zone(time_zone_str: str) -> dt.tzinfo | None: ...
17
16
 
18
- utcnow: partial[dt.datetime]
17
+ utcnow: Incomplete
19
18
 
20
19
  def now(time_zone: dt.tzinfo | None = None) -> dt.datetime: ...
21
20
  def as_utc(dattim: dt.datetime) -> dt.datetime: ...
@@ -31,11 +30,13 @@ def parse_datetime(dt_str: str) -> dt.datetime | None: ...
31
30
  @overload
32
31
  def parse_datetime(dt_str: str, *, raise_on_error: Literal[True]) -> dt.datetime: ...
33
32
  @overload
34
- def parse_datetime(dt_str: str, *, raise_on_error: Literal[False] | bool) -> dt.datetime | None: ...
33
+ def parse_datetime(dt_str: str, *, raise_on_error: Literal[False]) -> dt.datetime | None: ...
35
34
  def parse_date(dt_str: str) -> dt.date | None: ...
36
35
  def parse_duration(value: str) -> dt.timedelta | None: ...
37
36
  def parse_time(time_str: str) -> dt.time | None: ...
38
- def get_age(date: dt.datetime) -> str: ...
37
+ def _get_timestring(timediff: float, precision: int = 1) -> str: ...
38
+ def get_age(date: dt.datetime, precision: int = 1) -> str: ...
39
+ def get_time_remaining(date: dt.datetime, precision: int = 1) -> str: ...
39
40
  def parse_time_expression(parameter: Any, min_value: int, max_value: int) -> list[int]: ...
40
41
  def _dst_offset_diff(dattim: dt.datetime) -> dt.timedelta: ...
41
42
  def _lower_bound(arr: list[int], cmp: int) -> int | None: ...
@@ -0,0 +1,14 @@
1
+ from collections.abc import Mapping
2
+ from typing import Any, Generic
3
+ from typing_extensions import TypeVar
4
+
5
+ __all__ = ['EventType']
6
+
7
+ _DataT = TypeVar('_DataT', bound=Mapping[str, Any], default=Mapping[str, Any])
8
+
9
+ class EventType(Generic[_DataT]):
10
+ def __init__(self, value: str) -> None: ...
11
+ def __len__(self) -> int: ...
12
+ def __hash__(self) -> int: ...
13
+ def __eq__(self, value: object) -> bool: ...
14
+ def __getitem__(self, index: int) -> str: ...
@@ -1,7 +1,7 @@
1
1
  import logging
2
2
  import logging.handlers
3
3
  from collections.abc import Callable, Coroutine
4
- from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback, is_callback as is_callback
4
+ from homeassistant.core import HassJobType as HassJobType, HomeAssistant as HomeAssistant, callback as callback, get_hassjob_callable_job_type as get_hassjob_callable_job_type
5
5
  from typing import Any, TypeVar, TypeVarTuple, overload
6
6
 
7
7
  _T = TypeVar('_T')
@@ -9,7 +9,6 @@ _Ts = TypeVarTuple('_Ts')
9
9
 
10
10
  class HomeAssistantQueueHandler(logging.handlers.QueueHandler):
11
11
  listener: logging.handlers.QueueListener | None
12
- def prepare(self, record: logging.LogRecord) -> logging.LogRecord: ...
13
12
  def handle(self, record: logging.LogRecord) -> Any: ...
14
13
  def close(self) -> None: ...
15
14
 
@@ -19,8 +18,8 @@ async def _async_wrapper(async_func: Callable[[Unpack[_Ts]], Coroutine[Any, Any,
19
18
  def _sync_wrapper(func: Callable[[Unpack[_Ts]], Any], format_err: Callable[[Unpack[_Ts]], Any], *args: Unpack[_Ts]) -> None: ...
20
19
  def _callback_wrapper(func: Callable[[Unpack[_Ts]], Any], format_err: Callable[[Unpack[_Ts]], Any], *args: Unpack[_Ts]) -> None: ...
21
20
  @overload
22
- def catch_log_exception(func: Callable[[Unpack[_Ts]], Coroutine[Any, Any, Any]], format_err: Callable[[Unpack[_Ts]], Any]) -> Callable[[Unpack[_Ts]], Coroutine[Any, Any, None]]: ...
21
+ def catch_log_exception(func: Callable[[Unpack[_Ts]], Coroutine[Any, Any, Any]], format_err: Callable[[Unpack[_Ts]], Any], job_type: HassJobType | None = None) -> Callable[[Unpack[_Ts]], Coroutine[Any, Any, None]]: ...
23
22
  @overload
24
- def catch_log_exception(func: Callable[[Unpack[_Ts]], Any], format_err: Callable[[Unpack[_Ts]], Any]) -> Callable[[Unpack[_Ts]], None] | Callable[[Unpack[_Ts]], Coroutine[Any, Any, None]]: ...
23
+ def catch_log_exception(func: Callable[[Unpack[_Ts]], Any], format_err: Callable[[Unpack[_Ts]], Any], job_type: HassJobType | None = None) -> Callable[[Unpack[_Ts]], None] | Callable[[Unpack[_Ts]], Coroutine[Any, Any, None]]: ...
25
24
  def catch_log_coro_exception(target: Coroutine[Any, Any, _T], format_err: Callable[[Unpack[_Ts]], Any], *args: Unpack[_Ts]) -> Coroutine[Any, Any, _T | None]: ...
26
25
  def async_create_catching_coro(target: Coroutine[Any, Any, _T]) -> Coroutine[Any, Any, _T | None]: ...
@@ -0,0 +1,15 @@
1
+ from _typeshed import Incomplete
2
+ from collections.abc import Callable as Callable
3
+ from homeassistant.core import HomeAssistant as HomeAssistant, async_get_hass as async_get_hass
4
+ from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
5
+ from homeassistant.helpers.frame import MissingIntegrationFrame as MissingIntegrationFrame, get_current_frame as get_current_frame, get_integration_frame as get_integration_frame
6
+ from homeassistant.loader import async_suggest_report_issue as async_suggest_report_issue
7
+ from typing import Any, ParamSpec, TypeVar
8
+
9
+ _LOGGER: Incomplete
10
+ _R = TypeVar('_R')
11
+ _P = ParamSpec('_P')
12
+
13
+ def _get_line_from_cache(filename: str, lineno: int) -> str: ...
14
+ def check_loop(func: Callable[..., Any], check_allowed: Callable[[dict[str, Any]], bool] | None = None, strict: bool = True, strict_core: bool = True, advise_msg: str | None = None, **mapped_args: Any) -> None: ...
15
+ def protect_loop(func: Callable[_P, _R], strict: bool = True, strict_core: bool = True, check_allowed: Callable[[dict[str, Any]], bool] | None = None) -> Callable[_P, _R]: ...
@@ -7,7 +7,7 @@ _Ts = TypeVarTuple('_Ts')
7
7
  class _SignalTypeBase(Generic[*_Ts]):
8
8
  name: str
9
9
  def __hash__(self) -> int: ...
10
- def __eq__(self, other: Any) -> bool: ...
10
+ def __eq__(self, other: object) -> bool: ...
11
11
  def __init__(self, name) -> None: ...
12
12
 
13
13
  @dataclass(frozen=True, eq=False)
@@ -18,9 +18,9 @@ class _GlobalFreezeContext:
18
18
  _manager: Incomplete
19
19
  def __init__(self, manager: TimeoutManager) -> None: ...
20
20
  async def __aenter__(self) -> Self: ...
21
- async def __aexit__(self, exc_type: type[BaseException], exc_val: BaseException, exc_tb: TracebackType) -> bool | None: ...
21
+ async def __aexit__(self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None) -> bool | None: ...
22
22
  def __enter__(self) -> Self: ...
23
- def __exit__(self, exc_type: type[BaseException], exc_val: BaseException, exc_tb: TracebackType) -> bool | None: ...
23
+ def __exit__(self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None) -> bool | None: ...
24
24
  def _enter(self) -> None: ...
25
25
  def _exit(self) -> None: ...
26
26
 
@@ -29,9 +29,9 @@ class _ZoneFreezeContext:
29
29
  _zone: Incomplete
30
30
  def __init__(self, zone: _ZoneTimeoutManager) -> None: ...
31
31
  async def __aenter__(self) -> Self: ...
32
- async def __aexit__(self, exc_type: type[BaseException], exc_val: BaseException, exc_tb: TracebackType) -> bool | None: ...
32
+ async def __aexit__(self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None) -> bool | None: ...
33
33
  def __enter__(self) -> Self: ...
34
- def __exit__(self, exc_type: type[BaseException], exc_val: BaseException, exc_tb: TracebackType) -> bool | None: ...
34
+ def __exit__(self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None) -> bool | None: ...
35
35
  def _enter(self) -> None: ...
36
36
  def _exit(self) -> None: ...
37
37
 
@@ -48,7 +48,7 @@ class _GlobalTaskContext:
48
48
  _cool_down: Incomplete
49
49
  def __init__(self, manager: TimeoutManager, task: asyncio.Task[Any], timeout: float, cool_down: float) -> None: ...
50
50
  async def __aenter__(self) -> Self: ...
51
- async def __aexit__(self, exc_type: type[BaseException], exc_val: BaseException, exc_tb: TracebackType) -> bool | None: ...
51
+ async def __aexit__(self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None) -> bool | None: ...
52
52
  @property
53
53
  def state(self) -> _State: ...
54
54
  def zones_done_signal(self) -> None: ...
@@ -72,7 +72,7 @@ class _ZoneTaskContext:
72
72
  @property
73
73
  def state(self) -> _State: ...
74
74
  async def __aenter__(self) -> Self: ...
75
- async def __aexit__(self, exc_type: type[BaseException], exc_val: BaseException, exc_tb: TracebackType) -> bool | None: ...
75
+ async def __aexit__(self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None) -> bool | None: ...
76
76
  def _start_timer(self) -> None: ...
77
77
  def _stop_timer(self) -> None: ...
78
78
  def _on_timeout(self) -> None: ...
@@ -9,12 +9,11 @@ from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
9
9
  from homeassistant.helpers.frame import report as report
10
10
  from io import StringIO
11
11
  from pathlib import Path
12
- from typing import Any, TextIO, TypeVar, overload
12
+ from typing import Any, TextIO, overload
13
13
  from yaml import SafeLoader as FastestAvailableSafeLoader
14
14
 
15
15
  HAS_C_LOADER: bool
16
16
  JSON_TYPE: Incomplete
17
- _DictT = TypeVar('_DictT', bound=dict)
18
17
  _LOGGER: Incomplete
19
18
 
20
19
  class YamlTypeError(HomeAssistantError): ...
@@ -68,13 +67,13 @@ def load_yaml(fname: str | os.PathLike[str], secrets: Secrets | None = None) ->
68
67
  def load_yaml_dict(fname: str | os.PathLike[str], secrets: Secrets | None = None) -> dict: ...
69
68
  def parse_yaml(content: str | TextIO | StringIO, secrets: Secrets | None = None) -> JSON_TYPE: ...
70
69
  def _parse_yaml_python(content: str | TextIO | StringIO, secrets: Secrets | None = None) -> JSON_TYPE: ...
71
- def _parse_yaml(loader: type[FastSafeLoader] | type[PythonSafeLoader], content: str | TextIO, secrets: Secrets | None = None) -> JSON_TYPE: ...
70
+ def _parse_yaml(loader: type[FastSafeLoader | PythonSafeLoader], content: str | TextIO, secrets: Secrets | None = None) -> JSON_TYPE: ...
72
71
  @overload
73
72
  def _add_reference(obj: list | NodeListClass, loader: LoaderType, node: yaml.nodes.Node) -> NodeListClass: ...
74
73
  @overload
75
74
  def _add_reference(obj: str | NodeStrClass, loader: LoaderType, node: yaml.nodes.Node) -> NodeStrClass: ...
76
75
  @overload
77
- def _add_reference(obj: _DictT, loader: LoaderType, node: yaml.nodes.Node) -> _DictT: ...
76
+ def _add_reference(obj: dict | NodeDictClass, loader: LoaderType, node: yaml.nodes.Node) -> NodeDictClass: ...
78
77
  def _include_yaml(loader: LoaderType, node: yaml.nodes.Node) -> JSON_TYPE: ...
79
78
  def _is_file_valid(name: str) -> bool: ...
80
79
  def _find_files(directory: str, pattern: str) -> Iterator[str]: ...
@@ -1,14 +1,24 @@
1
1
  import voluptuous as vol
2
2
  import yaml
3
+ from _typeshed import Incomplete
3
4
  from dataclasses import dataclass
4
5
  from typing import Any
5
6
 
6
- class NodeListClass(list): ...
7
+ class NodeListClass(list):
8
+ __slots__: Incomplete
9
+ __config_file__: str
10
+ __line__: int | str
7
11
 
8
12
  class NodeStrClass(str):
13
+ __slots__: Incomplete
14
+ __config_file__: str
15
+ __line__: int | str
9
16
  def __voluptuous_compile__(self, schema: vol.Schema) -> Any: ...
10
17
 
11
- class NodeDictClass(dict): ...
18
+ class NodeDictClass(dict):
19
+ __slots__: Incomplete
20
+ __config_file__: str
21
+ __line__: int | str
12
22
 
13
23
  @dataclass(slots=True, frozen=True)
14
24
  class Input:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: homeassistant-stubs
3
- Version: 2024.4.3
3
+ Version: 2024.5.0
4
4
  Summary: PEP 484 typing stubs for Home Assistant Core
5
5
  Home-page: https://github.com/KapJI/homeassistant-stubs
6
6
  License: MIT
@@ -16,7 +16,7 @@ Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.12
17
17
  Classifier: Topic :: Software Development
18
18
  Classifier: Typing :: Typed
19
- Requires-Dist: homeassistant (==2024.4.3)
19
+ Requires-Dist: homeassistant (==2024.5.0)
20
20
  Project-URL: Bug Tracker, https://github.com/KapJI/homeassistant-stubs/issues
21
21
  Project-URL: Repository, https://github.com/KapJI/homeassistant-stubs
22
22
  Project-URL: Release Notes, https://github.com/KapJI/homeassistant-stubs/releases