homeassistant-stubs 2024.4.4__py3-none-any.whl → 2024.5.0b0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (360) 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/airtouch5/config_flow.pyi +3 -3
  24. homeassistant-stubs/components/airzone_cloud/entity.pyi +7 -0
  25. homeassistant-stubs/components/airzone_cloud/select.pyi +38 -0
  26. homeassistant-stubs/components/airzone_cloud/water_heater.pyi +35 -0
  27. homeassistant-stubs/components/alert/__init__.pyi +2 -2
  28. homeassistant-stubs/components/alexa/config.pyi +2 -0
  29. homeassistant-stubs/components/alexa/entities.pyi +0 -2
  30. homeassistant-stubs/components/alexa/intent.pyi +2 -1
  31. homeassistant-stubs/components/alexa/resources.pyi +3 -3
  32. homeassistant-stubs/components/alexa/state_report.pyi +3 -4
  33. homeassistant-stubs/components/ambient_network/__init__.pyi +10 -0
  34. homeassistant-stubs/components/ambient_network/config_flow.pyi +22 -0
  35. homeassistant-stubs/components/ambient_network/const.pyi +12 -0
  36. homeassistant-stubs/components/ambient_network/coordinator.pyi +18 -0
  37. homeassistant-stubs/components/ambient_network/entity.pyi +20 -0
  38. homeassistant-stubs/components/ambient_network/helper.pyi +4 -0
  39. homeassistant-stubs/components/ambient_network/sensor.pyi +46 -0
  40. homeassistant-stubs/components/ambient_station/sensor.pyi +3 -1
  41. homeassistant-stubs/components/apache_kafka/__init__.pyi +1 -2
  42. homeassistant-stubs/components/apcupsd/binary_sensor.pyi +1 -0
  43. homeassistant-stubs/components/apcupsd/sensor.pyi +1 -0
  44. homeassistant-stubs/components/api/__init__.pyi +2 -2
  45. homeassistant-stubs/components/apple_tv/remote.pyi +1 -1
  46. homeassistant-stubs/components/arris_tg2492lg/device_tracker.pyi +5 -4
  47. homeassistant-stubs/components/assist_pipeline/__init__.pyi +2 -2
  48. homeassistant-stubs/components/assist_pipeline/const.pyi +1 -0
  49. homeassistant-stubs/components/assist_pipeline/pipeline.pyi +5 -3
  50. homeassistant-stubs/components/auth/__init__.pyi +9 -2
  51. homeassistant-stubs/components/auth/login_flow.pyi +2 -2
  52. homeassistant-stubs/components/auth/mfa_setup_flow.pyi +1 -1
  53. homeassistant-stubs/components/automation/__init__.pyi +7 -9
  54. homeassistant-stubs/components/automation/logbook.pyi +3 -1
  55. homeassistant-stubs/components/axis/hub/event_source.pyi +23 -0
  56. homeassistant-stubs/components/axis/hub/hub.pyi +4 -9
  57. homeassistant-stubs/components/baf/fan.pyi +1 -0
  58. homeassistant-stubs/components/bayesian/binary_sensor.pyi +2 -2
  59. homeassistant-stubs/components/bluetooth/config_flow.pyi +6 -0
  60. homeassistant-stubs/components/bluetooth/diagnostics.pyi +1 -1
  61. homeassistant-stubs/components/bluetooth/util.pyi +2 -1
  62. homeassistant-stubs/components/bmw_connected_drive/binary_sensor.pyi +2 -1
  63. homeassistant-stubs/components/bmw_connected_drive/const.pyi +1 -0
  64. homeassistant-stubs/components/bmw_connected_drive/sensor.pyi +4 -3
  65. homeassistant-stubs/components/camera/__init__.pyi +2 -2
  66. homeassistant-stubs/components/cloud/__init__.pyi +9 -4
  67. homeassistant-stubs/components/cloud/alexa_config.pyi +2 -2
  68. homeassistant-stubs/components/cloud/const.pyi +2 -1
  69. homeassistant-stubs/components/cloud/google_config.pyi +3 -3
  70. homeassistant-stubs/components/cloud/http_api.pyi +2 -2
  71. homeassistant-stubs/components/cloud/prefs.pyi +5 -3
  72. homeassistant-stubs/components/cloud/stt.pyi +1 -0
  73. homeassistant-stubs/components/cloud/tts.pyi +1 -0
  74. homeassistant-stubs/components/cloud/util.pyi +7 -0
  75. homeassistant-stubs/components/command_line/binary_sensor.pyi +4 -4
  76. homeassistant-stubs/components/command_line/const.pyi +4 -1
  77. homeassistant-stubs/components/command_line/cover.pyi +3 -3
  78. homeassistant-stubs/components/command_line/sensor.pyi +4 -5
  79. homeassistant-stubs/components/command_line/switch.pyi +3 -3
  80. homeassistant-stubs/components/config/__init__.pyi +1 -1
  81. homeassistant-stubs/components/deconz/binary_sensor.pyi +0 -1
  82. homeassistant-stubs/components/demo/notify.pyi +12 -10
  83. homeassistant-stubs/components/demo/sensor.pyi +1 -1
  84. homeassistant-stubs/components/derivative/sensor.pyi +2 -2
  85. homeassistant-stubs/components/device_tracker/config_entry.pyi +1 -1
  86. homeassistant-stubs/components/device_tracker/legacy.pyi +2 -1
  87. homeassistant-stubs/components/dhcp/__init__.pyi +2 -2
  88. homeassistant-stubs/components/dlna_dms/dms.pyi +2 -1
  89. homeassistant-stubs/components/ecovacs/event.pyi +1 -0
  90. homeassistant-stubs/components/ecovacs/select.pyi +1 -1
  91. homeassistant-stubs/components/ecovacs/util.pyi +5 -1
  92. homeassistant-stubs/components/ecovacs/vacuum.pyi +1 -0
  93. homeassistant-stubs/components/emulated_hue/config.pyi +2 -2
  94. homeassistant-stubs/components/emulated_hue/hue_api.pyi +2 -2
  95. homeassistant-stubs/components/energenie_power_sockets/__init__.pyi +12 -0
  96. homeassistant-stubs/components/energenie_power_sockets/config_flow.pyi +6 -0
  97. homeassistant-stubs/components/energenie_power_sockets/const.pyi +5 -0
  98. homeassistant-stubs/components/energenie_power_sockets/switch.pyi +27 -0
  99. homeassistant-stubs/components/energy/data.pyi +1 -0
  100. homeassistant-stubs/components/energy/sensor.pyi +4 -4
  101. homeassistant-stubs/components/energy/websocket_api.pyi +1 -1
  102. homeassistant-stubs/components/enigma2/__init__.pyi +11 -0
  103. homeassistant-stubs/components/enigma2/config_flow.pyi +17 -0
  104. homeassistant-stubs/components/enigma2/const.pyi +1 -0
  105. homeassistant-stubs/components/enigma2/media_player.pyi +9 -6
  106. homeassistant-stubs/components/enphase_envoy/coordinator.pyi +1 -0
  107. homeassistant-stubs/components/eq3btsmart/__init__.pyi +18 -0
  108. homeassistant-stubs/components/eq3btsmart/climate.pyi +55 -0
  109. homeassistant-stubs/components/eq3btsmart/config_flow.pyi +17 -0
  110. homeassistant-stubs/components/eq3btsmart/const.pyi +38 -0
  111. homeassistant-stubs/components/eq3btsmart/entity.pyi +10 -0
  112. homeassistant-stubs/components/eq3btsmart/models.pyi +20 -0
  113. homeassistant-stubs/components/eq3btsmart/schemas.pyi +6 -0
  114. homeassistant-stubs/components/esphome/datetime.pyi +14 -0
  115. homeassistant-stubs/components/esphome/entry_data.pyi +4 -5
  116. homeassistant-stubs/components/esphome/event.pyi +16 -0
  117. homeassistant-stubs/components/esphome/manager.pyi +5 -4
  118. homeassistant-stubs/components/esphome/update.pyi +0 -1
  119. homeassistant-stubs/components/esphome/valve.pyi +30 -0
  120. homeassistant-stubs/components/esphome/voice_assistant.pyi +24 -8
  121. homeassistant-stubs/components/filter/sensor.pyi +2 -2
  122. homeassistant-stubs/components/fritz/__init__.pyi +2 -2
  123. homeassistant-stubs/components/fritz/button.pyi +16 -3
  124. homeassistant-stubs/components/fritz/common.pyi +6 -3
  125. homeassistant-stubs/components/fritz/config_flow.pyi +7 -2
  126. homeassistant-stubs/components/fritz/const.pyi +5 -1
  127. homeassistant-stubs/components/fritzbox/climate.pyi +1 -1
  128. homeassistant-stubs/components/fritzbox/config_flow.pyi +2 -0
  129. homeassistant-stubs/components/fritzbox/coordinator.pyi +4 -2
  130. homeassistant-stubs/components/generic_hygrostat/humidifier.pyi +4 -2
  131. homeassistant-stubs/components/generic_thermostat/climate.pyi +2 -2
  132. homeassistant-stubs/components/geo_location/trigger.pyi +2 -2
  133. homeassistant-stubs/components/glances/coordinator.pyi +1 -0
  134. homeassistant-stubs/components/glances/sensor.pyi +6 -5
  135. homeassistant-stubs/components/group/entity.pyi +9 -13
  136. homeassistant-stubs/components/group/event.pyi +2 -2
  137. homeassistant-stubs/components/group/media_player.pyi +2 -2
  138. homeassistant-stubs/components/group/notify.pyi +2 -1
  139. homeassistant-stubs/components/group/registry.pyi +7 -4
  140. homeassistant-stubs/components/history/websocket_api.pyi +6 -6
  141. homeassistant-stubs/components/history_stats/coordinator.pyi +2 -2
  142. homeassistant-stubs/components/history_stats/data.pyi +1 -2
  143. homeassistant-stubs/components/homeassistant/logbook.pyi +5 -3
  144. homeassistant-stubs/components/homeassistant/triggers/numeric_state.pyi +2 -2
  145. homeassistant-stubs/components/homeassistant/triggers/state.pyi +2 -2
  146. homeassistant-stubs/components/homeassistant/triggers/time.pyi +2 -2
  147. homeassistant-stubs/components/homeassistant_alerts/__init__.pyi +3 -1
  148. homeassistant-stubs/components/homeassistant_sky_connect/__init__.pyi +7 -9
  149. homeassistant-stubs/components/homeassistant_sky_connect/config_flow.pyi +60 -6
  150. homeassistant-stubs/components/homeassistant_sky_connect/const.pyi +8 -0
  151. homeassistant-stubs/components/homeassistant_sky_connect/util.pyi +23 -2
  152. homeassistant-stubs/components/homekit/accessories.pyi +2 -2
  153. homeassistant-stubs/components/homekit/type_cameras.pyi +3 -2
  154. homeassistant-stubs/components/homekit/type_covers.pyi +2 -2
  155. homeassistant-stubs/components/homekit/type_humidifiers.pyi +2 -2
  156. homeassistant-stubs/components/homekit/type_thermostats.pyi +2 -2
  157. homeassistant-stubs/components/homekit/util.pyi +3 -4
  158. homeassistant-stubs/components/homeworks/__init__.pyi +7 -2
  159. homeassistant-stubs/components/homeworks/button.pyi +1 -1
  160. homeassistant-stubs/components/http/__init__.pyi +11 -7
  161. homeassistant-stubs/components/http/auth.pyi +11 -3
  162. homeassistant-stubs/components/http/const.pyi +7 -0
  163. homeassistant-stubs/components/http/session.pyi +29 -0
  164. homeassistant-stubs/components/hydrawise/__init__.pyi +3 -6
  165. homeassistant-stubs/components/hydrawise/binary_sensor.pyi +1 -4
  166. homeassistant-stubs/components/hydrawise/config_flow.pyi +8 -9
  167. homeassistant-stubs/components/hydrawise/sensor.pyi +2 -4
  168. homeassistant-stubs/components/hydrawise/switch.pyi +2 -5
  169. homeassistant-stubs/components/image/__init__.pyi +2 -2
  170. homeassistant-stubs/components/imap/__init__.pyi +20 -4
  171. homeassistant-stubs/components/imap/config_flow.pyi +2 -1
  172. homeassistant-stubs/components/imap/const.pyi +5 -2
  173. homeassistant-stubs/components/imap/coordinator.pyi +5 -2
  174. homeassistant-stubs/components/integration/sensor.pyi +12 -13
  175. homeassistant-stubs/components/islamic_prayer_times/config_flow.pyi +1 -3
  176. homeassistant-stubs/components/islamic_prayer_times/coordinator.pyi +2 -2
  177. homeassistant-stubs/components/isy994/helpers.pyi +1 -1
  178. homeassistant-stubs/components/jvc_projector/select.pyi +30 -0
  179. homeassistant-stubs/components/knx/expose.pyi +2 -2
  180. homeassistant-stubs/components/knx/helpers/__init__.pyi +0 -0
  181. homeassistant-stubs/components/knx/notify.pyi +16 -3
  182. homeassistant-stubs/components/knx/repairs.pyi +7 -0
  183. homeassistant-stubs/components/logbook/__init__.pyi +1 -0
  184. homeassistant-stubs/components/logbook/helpers.pyi +5 -4
  185. homeassistant-stubs/components/logbook/models.pyi +4 -3
  186. homeassistant-stubs/components/logbook/processor.pyi +3 -2
  187. homeassistant-stubs/components/logger/helpers.pyi +4 -1
  188. homeassistant-stubs/components/media_extractor/__init__.pyi +4 -4
  189. homeassistant-stubs/components/media_extractor/const.pyi +5 -0
  190. homeassistant-stubs/components/min_max/sensor.pyi +2 -2
  191. homeassistant-stubs/components/minecraft_server/sensor.pyi +2 -2
  192. homeassistant-stubs/components/modbus/__init__.pyi +2 -2
  193. homeassistant-stubs/components/modbus/base_platform.pyi +1 -1
  194. homeassistant-stubs/components/modbus/climate.pyi +9 -3
  195. homeassistant-stubs/components/modbus/const.pyi +7 -0
  196. homeassistant-stubs/components/modbus/modbus.pyi +1 -0
  197. homeassistant-stubs/components/modbus/validators.pyi +2 -1
  198. homeassistant-stubs/components/mqtt/__init__.pyi +1 -2
  199. homeassistant-stubs/components/mqtt/client.pyi +30 -9
  200. homeassistant-stubs/components/mqtt/config_flow.pyi +9 -1
  201. homeassistant-stubs/components/mqtt/mixins.pyi +7 -4
  202. homeassistant-stubs/components/mqtt/models.pyi +1 -1
  203. homeassistant-stubs/components/mqtt/notify.pyi +31 -0
  204. homeassistant-stubs/components/netatmo/__init__.pyi +2 -0
  205. homeassistant-stubs/components/netatmo/binary_sensor.pyi +20 -0
  206. homeassistant-stubs/components/netatmo/camera.pyi +8 -11
  207. homeassistant-stubs/components/netatmo/climate.pyi +11 -19
  208. homeassistant-stubs/components/netatmo/cover.pyi +5 -7
  209. homeassistant-stubs/components/netatmo/entity.pyi +40 -10
  210. homeassistant-stubs/components/netatmo/fan.pyi +5 -8
  211. homeassistant-stubs/components/netatmo/light.pyi +11 -19
  212. homeassistant-stubs/components/netatmo/select.pyi +4 -7
  213. homeassistant-stubs/components/netatmo/sensor.pyi +36 -49
  214. homeassistant-stubs/components/netatmo/switch.pyi +5 -7
  215. homeassistant-stubs/components/nextdns/__init__.pyi +1 -38
  216. homeassistant-stubs/components/nextdns/binary_sensor.pyi +1 -1
  217. homeassistant-stubs/components/nextdns/button.pyi +1 -1
  218. homeassistant-stubs/components/nextdns/coordinator.pyi +42 -0
  219. homeassistant-stubs/components/nextdns/sensor.pyi +1 -1
  220. homeassistant-stubs/components/nextdns/switch.pyi +1 -1
  221. homeassistant-stubs/components/nfandroidtv/notify.pyi +2 -1
  222. homeassistant-stubs/components/notify/__init__.pyi +31 -2
  223. homeassistant-stubs/components/notify/const.pyi +2 -0
  224. homeassistant-stubs/components/number/const.pyi +1 -0
  225. homeassistant-stubs/components/number/significant_change.pyi +1 -1
  226. homeassistant-stubs/components/oncue/__init__.pyi +2 -1
  227. homeassistant-stubs/components/oncue/config_flow.pyi +7 -1
  228. homeassistant-stubs/components/open_meteo/weather.pyi +2 -1
  229. homeassistant-stubs/components/prometheus/__init__.pyi +1 -2
  230. homeassistant-stubs/components/proximity/__init__.pyi +1 -1
  231. homeassistant-stubs/components/proximity/coordinator.pyi +2 -2
  232. homeassistant-stubs/components/purpleair/config_flow.pyi +2 -2
  233. homeassistant-stubs/components/rabbitair/config_flow.pyi +4 -4
  234. homeassistant-stubs/components/recorder/__init__.pyi +1 -0
  235. homeassistant-stubs/components/recorder/auto_repairs/states/__init__.pyi +0 -0
  236. homeassistant-stubs/components/recorder/core.pyi +6 -5
  237. homeassistant-stubs/components/recorder/db_schema.pyi +3 -3
  238. homeassistant-stubs/components/recorder/history/__init__.pyi +5 -6
  239. homeassistant-stubs/components/recorder/history/legacy.pyi +7 -7
  240. homeassistant-stubs/components/recorder/history/modern.pyi +7 -7
  241. homeassistant-stubs/components/recorder/models/event.pyi +4 -1
  242. homeassistant-stubs/components/recorder/pool.pyi +1 -1
  243. homeassistant-stubs/components/recorder/services.pyi +1 -0
  244. homeassistant-stubs/components/recorder/statistics.pyi +4 -4
  245. homeassistant-stubs/components/recorder/table_managers/__init__.pyi +4 -3
  246. homeassistant-stubs/components/recorder/table_managers/event_types.pyi +5 -3
  247. homeassistant-stubs/components/recorder/table_managers/state_attributes.pyi +3 -3
  248. homeassistant-stubs/components/recorder/table_managers/states_meta.pyi +2 -2
  249. homeassistant-stubs/components/recorder/table_managers/statistics_meta.pyi +3 -3
  250. homeassistant-stubs/components/recorder/tasks.pyi +2 -1
  251. homeassistant-stubs/components/recorder/websocket_api.pyi +1 -1
  252. homeassistant-stubs/components/rest/__init__.pyi +2 -2
  253. homeassistant-stubs/components/rest/const.pyi +1 -0
  254. homeassistant-stubs/components/rest/data.pyi +1 -0
  255. homeassistant-stubs/components/rest/schema.pyi +1 -1
  256. homeassistant-stubs/components/rfxtrx/__init__.pyi +1 -1
  257. homeassistant-stubs/components/rfxtrx/config_flow.pyi +2 -2
  258. homeassistant-stubs/components/ring/__init__.pyi +25 -0
  259. homeassistant-stubs/components/ring/binary_sensor.pyi +35 -0
  260. homeassistant-stubs/components/ring/button.pyi +20 -0
  261. homeassistant-stubs/components/ring/camera.pyi +43 -0
  262. homeassistant-stubs/components/ring/config_flow.pyi +26 -0
  263. homeassistant-stubs/components/ring/const.pyi +12 -0
  264. homeassistant-stubs/components/ring/coordinator.pyi +25 -0
  265. homeassistant-stubs/components/ring/diagnostics.pyi +11 -0
  266. homeassistant-stubs/components/ring/entity.pyi +33 -0
  267. homeassistant-stubs/components/ring/light.pyi +34 -0
  268. homeassistant-stubs/components/ring/sensor.pyi +39 -0
  269. homeassistant-stubs/components/ring/siren.pyi +23 -0
  270. homeassistant-stubs/components/ring/switch.pyi +31 -0
  271. homeassistant-stubs/components/romy/binary_sensor.pyi +19 -0
  272. homeassistant-stubs/components/romy/config_flow.pyi +7 -7
  273. homeassistant-stubs/components/romy/sensor.pyi +20 -0
  274. homeassistant-stubs/components/sensor/__init__.pyi +1 -1
  275. homeassistant-stubs/components/sensor/significant_change.pyi +1 -1
  276. homeassistant-stubs/components/shelly/__init__.pyi +2 -4
  277. homeassistant-stubs/components/shelly/coordinator.pyi +8 -7
  278. homeassistant-stubs/components/starlink/coordinator.pyi +1 -0
  279. homeassistant-stubs/components/statistics/sensor.pyi +2 -2
  280. homeassistant-stubs/components/switch/light.pyi +2 -2
  281. homeassistant-stubs/components/synology_dsm/__init__.pyi +2 -2
  282. homeassistant-stubs/components/synology_dsm/camera.pyi +3 -2
  283. homeassistant-stubs/components/synology_dsm/common.pyi +6 -2
  284. homeassistant-stubs/components/synology_dsm/coordinator.pyi +4 -4
  285. homeassistant-stubs/components/synology_dsm/diagnostics.pyi +0 -1
  286. homeassistant-stubs/components/system_log/__init__.pyi +3 -3
  287. homeassistant-stubs/components/threshold/binary_sensor.pyi +2 -2
  288. homeassistant-stubs/components/tibber/sensor.pyi +1 -0
  289. homeassistant-stubs/components/tplink/coordinator.pyi +2 -0
  290. homeassistant-stubs/components/tplink/entity.pyi +1 -0
  291. homeassistant-stubs/components/tplink/light.pyi +1 -1
  292. homeassistant-stubs/components/tplink/sensor.pyi +4 -3
  293. homeassistant-stubs/components/tplink_omada/switch.pyi +12 -14
  294. homeassistant-stubs/components/trend/binary_sensor.pyi +2 -2
  295. homeassistant-stubs/components/unifi/__init__.pyi +2 -0
  296. homeassistant-stubs/components/unifi/button.pyi +2 -1
  297. homeassistant-stubs/components/unifi/hub/entity_helper.pyi +44 -0
  298. homeassistant-stubs/components/unifi/hub/hub.pyi +8 -13
  299. homeassistant-stubs/components/unifi/sensor.pyi +2 -1
  300. homeassistant-stubs/components/velbus/cover.pyi +2 -0
  301. homeassistant-stubs/components/weather/significant_change.pyi +1 -1
  302. homeassistant-stubs/components/websocket_api/commands.pyi +2 -2
  303. homeassistant-stubs/components/websocket_api/messages.pyi +1 -2
  304. homeassistant-stubs/components/websocket_api/sensor.pyi +3 -7
  305. homeassistant-stubs/components/withings/__init__.pyi +2 -8
  306. homeassistant-stubs/components/withings/config_flow.pyi +1 -1
  307. homeassistant-stubs/components/withings/const.pyi +0 -2
  308. homeassistant-stubs/components/zone/__init__.pyi +8 -10
  309. homeassistant-stubs/components/zone/trigger.pyi +2 -2
  310. homeassistant-stubs/components/zwave_js/config_flow.pyi +1 -1
  311. homeassistant-stubs/config.pyi +1 -1
  312. homeassistant-stubs/config_entries.pyi +32 -29
  313. homeassistant-stubs/const.pyi +11 -6
  314. homeassistant-stubs/core.pyi +56 -24
  315. homeassistant-stubs/data_entry_flow.pyi +3 -3
  316. homeassistant-stubs/exceptions.pyi +4 -2
  317. homeassistant-stubs/helpers/aiohttp_client.pyi +1 -0
  318. homeassistant-stubs/helpers/area_registry.pyi +28 -6
  319. homeassistant-stubs/helpers/backports/__init__.pyi +0 -0
  320. homeassistant-stubs/helpers/backports/aiohttp_resolver.pyi +21 -0
  321. homeassistant-stubs/helpers/category_registry.pyi +16 -6
  322. homeassistant-stubs/helpers/data_entry_flow.pyi +1 -1
  323. homeassistant-stubs/helpers/deprecation.pyi +5 -0
  324. homeassistant-stubs/helpers/device_registry.pyi +25 -12
  325. homeassistant-stubs/helpers/dispatcher.pyi +1 -1
  326. homeassistant-stubs/helpers/entity.pyi +6 -3
  327. homeassistant-stubs/helpers/entity_registry.pyi +24 -16
  328. homeassistant-stubs/helpers/event.pyi +10 -17
  329. homeassistant-stubs/helpers/floor_registry.pyi +14 -3
  330. homeassistant-stubs/helpers/frame.pyi +2 -2
  331. homeassistant-stubs/helpers/httpx_client.pyi +1 -1
  332. homeassistant-stubs/helpers/icon.pyi +3 -2
  333. homeassistant-stubs/helpers/intent.pyi +1 -2
  334. homeassistant-stubs/helpers/label_registry.pyi +14 -3
  335. homeassistant-stubs/helpers/network.pyi +2 -2
  336. homeassistant-stubs/helpers/normalized_name_base_registry.pyi +4 -6
  337. homeassistant-stubs/helpers/registry.pyi +19 -4
  338. homeassistant-stubs/helpers/reload.pyi +1 -1
  339. homeassistant-stubs/helpers/schema_config_entry_flow.pyi +2 -2
  340. homeassistant-stubs/helpers/service.pyi +4 -1
  341. homeassistant-stubs/helpers/significant_change.pyi +4 -4
  342. homeassistant-stubs/helpers/start.pyi +3 -1
  343. homeassistant-stubs/helpers/template.pyi +6 -3
  344. homeassistant-stubs/helpers/translation.pyi +5 -9
  345. homeassistant-stubs/helpers/typing.pyi +11 -7
  346. homeassistant-stubs/requirements.pyi +2 -0
  347. homeassistant-stubs/setup.pyi +1 -0
  348. homeassistant-stubs/util/async_.pyi +1 -6
  349. homeassistant-stubs/util/dt.pyi +5 -4
  350. homeassistant-stubs/util/event_type.pyi +14 -0
  351. homeassistant-stubs/util/logging.pyi +3 -4
  352. homeassistant-stubs/util/loop.pyi +15 -0
  353. homeassistant-stubs/util/signal_type.pyi +1 -1
  354. homeassistant-stubs/util/timeout.pyi +6 -6
  355. homeassistant-stubs/util/yaml/loader.pyi +3 -4
  356. homeassistant-stubs/util/yaml/objects.pyi +12 -2
  357. {homeassistant_stubs-2024.4.4.dist-info → homeassistant_stubs-2024.5.0b0.dist-info}/METADATA +2 -2
  358. {homeassistant_stubs-2024.4.4.dist-info → homeassistant_stubs-2024.5.0b0.dist-info}/RECORD +360 -303
  359. {homeassistant_stubs-2024.4.4.dist-info → homeassistant_stubs-2024.5.0b0.dist-info}/LICENSE +0 -0
  360. {homeassistant_stubs-2024.4.4.dist-info → homeassistant_stubs-2024.5.0b0.dist-info}/WHEEL +0 -0
@@ -1,5 +1,6 @@
1
1
  import abc
2
2
  from .const import DOMAIN as DOMAIN
3
+ from .entities import TRANSLATION_TABLE as TRANSLATION_TABLE
3
4
  from .state_report import async_enable_proactive_mode as async_enable_proactive_mode
4
5
  from _typeshed import Incomplete
5
6
  from abc import ABC, abstractmethod
@@ -39,6 +40,7 @@ class AbstractConfig(ABC, metaclass=abc.ABCMeta):
39
40
  async def async_enable_proactive_mode(self) -> None: ...
40
41
  async def async_disable_proactive_mode(self) -> None: ...
41
42
  def should_expose(self, entity_id: str) -> bool: ...
43
+ def generate_alexa_id(self, entity_id: str) -> str: ...
42
44
  def async_invalidate_access_token(self) -> None: ...
43
45
  async def async_get_access_token(self) -> str | None: ...
44
46
  async def async_accept_grant(self, code: str) -> str | None: ...
@@ -65,8 +65,6 @@ class DisplayCategory:
65
65
  WATER_HEATER: str
66
66
  WEARABLE: str
67
67
 
68
- def generate_alexa_id(entity_id: str) -> str: ...
69
-
70
68
  class AlexaEntity:
71
69
  hass: Incomplete
72
70
  config: Incomplete
@@ -2,6 +2,7 @@ import enum
2
2
  from .const import DOMAIN as DOMAIN, SYN_RESOLUTION_MATCH as SYN_RESOLUTION_MATCH
3
3
  from _typeshed import Incomplete
4
4
  from aiohttp.web import Response as Response
5
+ from collections.abc import Callable as Callable, Coroutine
5
6
  from homeassistant.components import http as http
6
7
  from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
7
8
  from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
@@ -10,7 +11,7 @@ from homeassistant.util.decorator import Registry as Registry
10
11
  from typing import Any
11
12
 
12
13
  _LOGGER: Incomplete
13
- HANDLERS: Incomplete
14
+ HANDLERS: Registry[str, Callable[[HomeAssistant, dict[str, Any]], Coroutine[Any, Any, dict[str, Any]]]]
14
15
  INTENTS_API_ENDPOINT: str
15
16
 
16
17
  class SpeechType(enum.StrEnum):
@@ -81,8 +81,8 @@ class AlexaPresetResource(AlexaCapabilityResource):
81
81
  _maximum_value: Incomplete
82
82
  _precision: Incomplete
83
83
  _unit_of_measure: Incomplete
84
- def __init__(self, labels: list[str], min_value: int | float, max_value: int | float, precision: int | float, unit: str | None = None) -> None: ...
85
- def add_preset(self, value: int | float, labels: list[str]) -> None: ...
84
+ def __init__(self, labels: list[str], min_value: float, max_value: float, precision: float, unit: str | None = None) -> None: ...
85
+ def add_preset(self, value: float, labels: list[str]) -> None: ...
86
86
  def serialize_configuration(self) -> dict[str, Any]: ...
87
87
 
88
88
  class AlexaSemantics:
@@ -109,6 +109,6 @@ class AlexaSemantics:
109
109
  def _add_action_mapping(self, semantics: dict[str, Any]) -> None: ...
110
110
  def _add_state_mapping(self, semantics: dict[str, Any]) -> None: ...
111
111
  def add_states_to_value(self, states: list[str], value: Any) -> None: ...
112
- def add_states_to_range(self, states: list[str], min_value: int | float, max_value: int | float) -> None: ...
112
+ def add_states_to_range(self, states: list[str], min_value: float, max_value: float) -> None: ...
113
113
  def add_action_to_directive(self, actions: list[str], directive: str, payload: dict[str, Any]) -> None: ...
114
114
  def serialize_semantics(self) -> dict[str, Any]: ...
@@ -2,14 +2,13 @@ import aiohttp
2
2
  from .config import AbstractConfig as AbstractConfig
3
3
  from .const import API_CHANGE as API_CHANGE, API_CONTEXT as API_CONTEXT, API_DIRECTIVE as API_DIRECTIVE, API_ENDPOINT as API_ENDPOINT, API_EVENT as API_EVENT, API_HEADER as API_HEADER, API_PAYLOAD as API_PAYLOAD, API_SCOPE as API_SCOPE, Cause as Cause, DATE_FORMAT as DATE_FORMAT, DOMAIN as DOMAIN
4
4
  from .diagnostics import async_redact_auth_data as async_redact_auth_data
5
- from .entities import AlexaEntity as AlexaEntity, ENTITY_ADAPTERS as ENTITY_ADAPTERS, generate_alexa_id as generate_alexa_id
5
+ from .entities import AlexaEntity as AlexaEntity, ENTITY_ADAPTERS as ENTITY_ADAPTERS
6
6
  from .errors import AlexaInvalidEndpointError as AlexaInvalidEndpointError, NoTokenAvailable as NoTokenAvailable, RequireRelink as RequireRelink
7
7
  from _typeshed import Incomplete
8
8
  from homeassistant.components import event as event
9
- from homeassistant.const import MATCH_ALL as MATCH_ALL, STATE_ON as STATE_ON
10
- from homeassistant.core import CALLBACK_TYPE as CALLBACK_TYPE, HomeAssistant as HomeAssistant, State as State, callback as callback
9
+ from homeassistant.const import EVENT_STATE_CHANGED as EVENT_STATE_CHANGED, STATE_ON as STATE_ON
10
+ from homeassistant.core import CALLBACK_TYPE as CALLBACK_TYPE, Event as Event, EventStateChangedData as EventStateChangedData, HomeAssistant as HomeAssistant, State as State, callback as callback
11
11
  from homeassistant.helpers.aiohttp_client import async_get_clientsession as async_get_clientsession
12
- from homeassistant.helpers.event import async_track_state_change as async_track_state_change
13
12
  from homeassistant.helpers.significant_change import create_checker as create_checker
14
13
  from homeassistant.util.json import JsonObjectType as JsonObjectType, json_loads_object as json_loads_object
15
14
  from typing import Any
@@ -0,0 +1,10 @@
1
+ from .const import DOMAIN as DOMAIN
2
+ from .coordinator import AmbientNetworkDataUpdateCoordinator as AmbientNetworkDataUpdateCoordinator
3
+ from homeassistant.config_entries import ConfigEntry as ConfigEntry
4
+ from homeassistant.const import Platform as Platform
5
+ from homeassistant.core import HomeAssistant as HomeAssistant
6
+
7
+ PLATFORMS: list[Platform]
8
+
9
+ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: ...
10
+ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: ...
@@ -0,0 +1,22 @@
1
+ from .const import API_STATION_INDOOR as API_STATION_INDOOR, API_STATION_INFO as API_STATION_INFO, API_STATION_MAC_ADDRESS as API_STATION_MAC_ADDRESS, DOMAIN as DOMAIN
2
+ from .helper import get_station_name as get_station_name
3
+ from _typeshed import Incomplete
4
+ from homeassistant.config_entries import ConfigFlow as ConfigFlow, ConfigFlowResult as ConfigFlowResult
5
+ from homeassistant.const import CONF_LATITUDE as CONF_LATITUDE, CONF_LOCATION as CONF_LOCATION, CONF_LONGITUDE as CONF_LONGITUDE, CONF_MAC as CONF_MAC, CONF_RADIUS as CONF_RADIUS, UnitOfLength as UnitOfLength
6
+ from homeassistant.helpers.selector import LocationSelector as LocationSelector, LocationSelectorConfig as LocationSelectorConfig, SelectOptionDict as SelectOptionDict, SelectSelector as SelectSelector, SelectSelectorConfig as SelectSelectorConfig
7
+ from homeassistant.util.unit_conversion import DistanceConverter as DistanceConverter
8
+ from typing import Any
9
+
10
+ CONF_USER: str
11
+ CONF_STATION: str
12
+ CONF_RADIUS_DEFAULT: float
13
+
14
+ class AmbientNetworkConfigFlow(ConfigFlow, domain=DOMAIN):
15
+ VERSION: int
16
+ _longitude: float
17
+ _latitude: float
18
+ _radius: float
19
+ _stations: Incomplete
20
+ def __init__(self) -> None: ...
21
+ async def async_step_user(self, user_input: dict[str, Any] | None = None) -> ConfigFlowResult: ...
22
+ async def async_step_station(self, user_input: dict[str, Any] | None = None) -> ConfigFlowResult: ...
@@ -0,0 +1,12 @@
1
+ from _typeshed import Incomplete
2
+
3
+ DOMAIN: str
4
+ API_LAST_DATA: str
5
+ API_STATION_COORDS: str
6
+ API_STATION_INDOOR: str
7
+ API_STATION_INFO: str
8
+ API_STATION_LOCATION: str
9
+ API_STATION_NAME: str
10
+ API_STATION_MAC_ADDRESS: str
11
+ API_STATION_TYPE: str
12
+ LOGGER: Incomplete
@@ -0,0 +1,18 @@
1
+ from .const import API_LAST_DATA as API_LAST_DATA, DOMAIN as DOMAIN, LOGGER as LOGGER
2
+ from .helper import get_station_name as get_station_name
3
+ from _typeshed import Incomplete
4
+ from aioambient import OpenAPI as OpenAPI
5
+ from homeassistant.config_entries import ConfigEntry as ConfigEntry
6
+ from homeassistant.const import CONF_MAC as CONF_MAC
7
+ from homeassistant.core import HomeAssistant as HomeAssistant
8
+ from homeassistant.helpers.update_coordinator import DataUpdateCoordinator as DataUpdateCoordinator, UpdateFailed as UpdateFailed
9
+ from typing import Any
10
+
11
+ SCAN_INTERVAL: Incomplete
12
+
13
+ class AmbientNetworkDataUpdateCoordinator(DataUpdateCoordinator[dict[str, Any]]):
14
+ config_entry: ConfigEntry
15
+ station_name: str
16
+ api: Incomplete
17
+ def __init__(self, hass: HomeAssistant, api: OpenAPI) -> None: ...
18
+ async def _async_update_data(self) -> dict[str, Any]: ...
@@ -0,0 +1,20 @@
1
+ import abc
2
+ from .const import DOMAIN as DOMAIN
3
+ from .coordinator import AmbientNetworkDataUpdateCoordinator as AmbientNetworkDataUpdateCoordinator
4
+ from _typeshed import Incomplete
5
+ from abc import abstractmethod
6
+ from homeassistant.core import callback as callback
7
+ from homeassistant.helpers.device_registry import DeviceEntryType as DeviceEntryType, DeviceInfo as DeviceInfo
8
+ from homeassistant.helpers.entity import EntityDescription as EntityDescription
9
+ from homeassistant.helpers.update_coordinator import CoordinatorEntity as CoordinatorEntity
10
+
11
+ class AmbientNetworkEntity(CoordinatorEntity[AmbientNetworkDataUpdateCoordinator], metaclass=abc.ABCMeta):
12
+ _attr_attribution: str
13
+ _attr_has_entity_name: bool
14
+ entity_description: Incomplete
15
+ _attr_unique_id: Incomplete
16
+ _attr_device_info: Incomplete
17
+ def __init__(self, coordinator: AmbientNetworkDataUpdateCoordinator, description: EntityDescription, mac_address: str) -> None: ...
18
+ @abstractmethod
19
+ def _update_attrs(self) -> None: ...
20
+ def _handle_coordinator_update(self) -> None: ...
@@ -0,0 +1,4 @@
1
+ from .const import API_LAST_DATA as API_LAST_DATA, API_STATION_COORDS as API_STATION_COORDS, API_STATION_INFO as API_STATION_INFO, API_STATION_LOCATION as API_STATION_LOCATION, API_STATION_NAME as API_STATION_NAME, API_STATION_TYPE as API_STATION_TYPE
2
+ from typing import Any
3
+
4
+ def get_station_name(station: dict[str, Any]) -> str: ...
@@ -0,0 +1,46 @@
1
+ from .const import DOMAIN as DOMAIN
2
+ from .coordinator import AmbientNetworkDataUpdateCoordinator as AmbientNetworkDataUpdateCoordinator
3
+ from .entity import AmbientNetworkEntity as AmbientNetworkEntity
4
+ from _typeshed import Incomplete
5
+ from homeassistant.components.sensor import SensorDeviceClass as SensorDeviceClass, SensorEntity as SensorEntity, SensorEntityDescription as SensorEntityDescription, SensorStateClass as SensorStateClass
6
+ from homeassistant.config_entries import ConfigEntry as ConfigEntry
7
+ from homeassistant.const import CONCENTRATION_MICROGRAMS_PER_CUBIC_METER as CONCENTRATION_MICROGRAMS_PER_CUBIC_METER, CONCENTRATION_PARTS_PER_MILLION as CONCENTRATION_PARTS_PER_MILLION, CONF_MAC as CONF_MAC, DEGREE as DEGREE, PERCENTAGE as PERCENTAGE, UnitOfIrradiance as UnitOfIrradiance, UnitOfLength as UnitOfLength, UnitOfPrecipitationDepth as UnitOfPrecipitationDepth, UnitOfPressure as UnitOfPressure, UnitOfSpeed as UnitOfSpeed, UnitOfTemperature as UnitOfTemperature, UnitOfVolumetricFlux as UnitOfVolumetricFlux
8
+ from homeassistant.core import HomeAssistant as HomeAssistant
9
+ from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
10
+
11
+ TYPE_AQI_PM25: str
12
+ TYPE_AQI_PM25_24H: str
13
+ TYPE_BAROMABSIN: str
14
+ TYPE_BAROMRELIN: str
15
+ TYPE_CO2: str
16
+ TYPE_DAILYRAININ: str
17
+ TYPE_DEWPOINT: str
18
+ TYPE_EVENTRAININ: str
19
+ TYPE_FEELSLIKE: str
20
+ TYPE_HOURLYRAININ: str
21
+ TYPE_HUMIDITY: str
22
+ TYPE_LASTRAIN: str
23
+ TYPE_LIGHTNING_DISTANCE: str
24
+ TYPE_LIGHTNING_PER_DAY: str
25
+ TYPE_LIGHTNING_PER_HOUR: str
26
+ TYPE_MAXDAILYGUST: str
27
+ TYPE_MONTHLYRAININ: str
28
+ TYPE_PM25: str
29
+ TYPE_PM25_24H: str
30
+ TYPE_SOLARRADIATION: str
31
+ TYPE_TEMPF: str
32
+ TYPE_UV: str
33
+ TYPE_WEEKLYRAININ: str
34
+ TYPE_WINDDIR: str
35
+ TYPE_WINDGUSTMPH: str
36
+ TYPE_WINDSPEEDMPH: str
37
+ TYPE_YEARLYRAININ: str
38
+ SENSOR_DESCRIPTIONS: Incomplete
39
+
40
+ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
41
+
42
+ class AmbientNetworkSensor(AmbientNetworkEntity, SensorEntity):
43
+ def __init__(self, coordinator: AmbientNetworkDataUpdateCoordinator, description: SensorEntityDescription, mac_address: str) -> None: ...
44
+ _attr_available: Incomplete
45
+ _attr_native_value: Incomplete
46
+ def _update_attrs(self) -> None: ...
@@ -4,7 +4,7 @@ from .entity import AmbientWeatherEntity as AmbientWeatherEntity
4
4
  from _typeshed import Incomplete
5
5
  from homeassistant.components.sensor import SensorDeviceClass as SensorDeviceClass, SensorEntity as SensorEntity, SensorEntityDescription as SensorEntityDescription, SensorStateClass as SensorStateClass
6
6
  from homeassistant.config_entries import ConfigEntry as ConfigEntry
7
- from homeassistant.const import ATTR_NAME as ATTR_NAME, CONCENTRATION_MICROGRAMS_PER_CUBIC_METER as CONCENTRATION_MICROGRAMS_PER_CUBIC_METER, CONCENTRATION_PARTS_PER_MILLION as CONCENTRATION_PARTS_PER_MILLION, DEGREE as DEGREE, LIGHT_LUX as LIGHT_LUX, PERCENTAGE as PERCENTAGE, UnitOfIrradiance as UnitOfIrradiance, UnitOfPrecipitationDepth as UnitOfPrecipitationDepth, UnitOfPressure as UnitOfPressure, UnitOfSpeed as UnitOfSpeed, UnitOfTemperature as UnitOfTemperature, UnitOfVolumetricFlux as UnitOfVolumetricFlux
7
+ from homeassistant.const import ATTR_NAME as ATTR_NAME, CONCENTRATION_MICROGRAMS_PER_CUBIC_METER as CONCENTRATION_MICROGRAMS_PER_CUBIC_METER, CONCENTRATION_PARTS_PER_MILLION as CONCENTRATION_PARTS_PER_MILLION, DEGREE as DEGREE, LIGHT_LUX as LIGHT_LUX, PERCENTAGE as PERCENTAGE, UnitOfIrradiance as UnitOfIrradiance, UnitOfLength as UnitOfLength, UnitOfPrecipitationDepth as UnitOfPrecipitationDepth, UnitOfPressure as UnitOfPressure, UnitOfSpeed as UnitOfSpeed, UnitOfTemperature as UnitOfTemperature, UnitOfVolumetricFlux as UnitOfVolumetricFlux
8
8
  from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
9
9
  from homeassistant.helpers.entity import EntityDescription as EntityDescription
10
10
  from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
@@ -37,6 +37,8 @@ TYPE_HUMIDITYIN: str
37
37
  TYPE_LASTRAIN: str
38
38
  TYPE_LIGHTNING_PER_DAY: str
39
39
  TYPE_LIGHTNING_PER_HOUR: str
40
+ TYPE_LASTLIGHTNING_DISTANCE: str
41
+ TYPE_LASTLIGHTNING: str
40
42
  TYPE_MAXDAILYGUST: str
41
43
  TYPE_MONTHLYRAININ: str
42
44
  TYPE_PM25: str
@@ -1,9 +1,8 @@
1
1
  import json
2
2
  from _typeshed import Incomplete
3
3
  from homeassistant.const import CONF_IP_ADDRESS as CONF_IP_ADDRESS, CONF_PASSWORD as CONF_PASSWORD, CONF_PORT as CONF_PORT, CONF_USERNAME as CONF_USERNAME, EVENT_HOMEASSISTANT_STOP as EVENT_HOMEASSISTANT_STOP, EVENT_STATE_CHANGED as EVENT_STATE_CHANGED, STATE_UNAVAILABLE as STATE_UNAVAILABLE, STATE_UNKNOWN as STATE_UNKNOWN
4
- from homeassistant.core import Event as Event, HomeAssistant as HomeAssistant
4
+ from homeassistant.core import Event as Event, EventStateChangedData as EventStateChangedData, HomeAssistant as HomeAssistant
5
5
  from homeassistant.helpers.entityfilter import EntityFilter as EntityFilter, FILTER_SCHEMA as FILTER_SCHEMA
6
- from homeassistant.helpers.event import EventStateChangedData as EventStateChangedData
7
6
  from homeassistant.helpers.typing import ConfigType as ConfigType
8
7
  from typing import Any, Literal
9
8
 
@@ -8,6 +8,7 @@ from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEnti
8
8
  from homeassistant.helpers.update_coordinator import CoordinatorEntity as CoordinatorEntity
9
9
  from typing import Final
10
10
 
11
+ PARALLEL_UPDATES: int
11
12
  _LOGGER: Incomplete
12
13
  _DESCRIPTION: Incomplete
13
14
  _VALUE_ONLINE_MASK: Final[int]
@@ -8,6 +8,7 @@ from homeassistant.core import HomeAssistant as HomeAssistant, callback as callb
8
8
  from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
9
9
  from homeassistant.helpers.update_coordinator import CoordinatorEntity as CoordinatorEntity
10
10
 
11
+ PARALLEL_UPDATES: int
11
12
  _LOGGER: Incomplete
12
13
  SENSORS: dict[str, SensorEntityDescription]
13
14
  INFERRED_UNITS: Incomplete
@@ -4,13 +4,13 @@ from homeassistant.auth.models import User as User
4
4
  from homeassistant.auth.permissions.const import POLICY_READ as POLICY_READ
5
5
  from homeassistant.components.http import HomeAssistantView as HomeAssistantView, KEY_HASS as KEY_HASS, KEY_HASS_USER as KEY_HASS_USER, require_admin as require_admin
6
6
  from homeassistant.const import CONTENT_TYPE_JSON as CONTENT_TYPE_JSON, EVENT_HOMEASSISTANT_STOP as EVENT_HOMEASSISTANT_STOP, EVENT_STATE_CHANGED as EVENT_STATE_CHANGED, MATCH_ALL as MATCH_ALL, URL_API as URL_API, URL_API_COMPONENTS as URL_API_COMPONENTS, URL_API_CONFIG as URL_API_CONFIG, URL_API_CORE_STATE as URL_API_CORE_STATE, URL_API_ERROR_LOG as URL_API_ERROR_LOG, URL_API_EVENTS as URL_API_EVENTS, URL_API_SERVICES as URL_API_SERVICES, URL_API_STATES as URL_API_STATES, URL_API_STREAM as URL_API_STREAM, URL_API_TEMPLATE as URL_API_TEMPLATE
7
- from homeassistant.core import Event as Event, HomeAssistant as HomeAssistant
7
+ from homeassistant.core import Event as Event, EventStateChangedData as EventStateChangedData, HomeAssistant as HomeAssistant
8
8
  from homeassistant.exceptions import InvalidEntityFormatError as InvalidEntityFormatError, InvalidStateError as InvalidStateError, ServiceNotFound as ServiceNotFound, TemplateError as TemplateError, Unauthorized as Unauthorized
9
9
  from homeassistant.helpers import template as template
10
- from homeassistant.helpers.event import EventStateChangedData as EventStateChangedData
11
10
  from homeassistant.helpers.json import json_dumps as json_dumps, json_fragment as json_fragment
12
11
  from homeassistant.helpers.service import async_get_all_descriptions as async_get_all_descriptions
13
12
  from homeassistant.helpers.typing import ConfigType as ConfigType
13
+ from homeassistant.util.event_type import EventType as EventType
14
14
  from homeassistant.util.json import json_loads as json_loads
15
15
  from typing import Any
16
16
 
@@ -2,7 +2,7 @@ from . import AppleTVEntity as AppleTVEntity, AppleTVManager as AppleTVManager
2
2
  from .const import DOMAIN as DOMAIN
3
3
  from _typeshed import Incomplete
4
4
  from collections.abc import Iterable
5
- from homeassistant.components.remote import ATTR_DELAY_SECS as ATTR_DELAY_SECS, ATTR_NUM_REPEATS as ATTR_NUM_REPEATS, DEFAULT_DELAY_SECS as DEFAULT_DELAY_SECS, RemoteEntity as RemoteEntity
5
+ from homeassistant.components.remote import ATTR_DELAY_SECS as ATTR_DELAY_SECS, ATTR_HOLD_SECS as ATTR_HOLD_SECS, ATTR_NUM_REPEATS as ATTR_NUM_REPEATS, DEFAULT_DELAY_SECS as DEFAULT_DELAY_SECS, DEFAULT_HOLD_SECS as DEFAULT_HOLD_SECS, RemoteEntity as RemoteEntity
6
6
  from homeassistant.config_entries import ConfigEntry as ConfigEntry
7
7
  from homeassistant.const import CONF_NAME as CONF_NAME
8
8
  from homeassistant.core import HomeAssistant as HomeAssistant
@@ -3,17 +3,18 @@ from arris_tg2492lg import ConnectBox, Device as Device
3
3
  from homeassistant.components.device_tracker import DOMAIN as DOMAIN, DeviceScanner as DeviceScanner
4
4
  from homeassistant.const import CONF_HOST as CONF_HOST, CONF_PASSWORD as CONF_PASSWORD
5
5
  from homeassistant.core import HomeAssistant as HomeAssistant
6
+ from homeassistant.helpers.aiohttp_client import async_get_clientsession as async_get_clientsession
6
7
  from homeassistant.helpers.typing import ConfigType as ConfigType
7
8
 
8
9
  DEFAULT_HOST: str
9
10
  PLATFORM_SCHEMA: Incomplete
10
11
 
11
- def get_scanner(hass: HomeAssistant, config: ConfigType) -> ArrisDeviceScanner: ...
12
+ async def async_get_scanner(hass: HomeAssistant, config: ConfigType) -> ArrisDeviceScanner | None: ...
12
13
 
13
14
  class ArrisDeviceScanner(DeviceScanner):
14
15
  connect_box: Incomplete
15
16
  last_results: Incomplete
16
17
  def __init__(self, connect_box: ConnectBox) -> None: ...
17
- def scan_devices(self) -> list[str]: ...
18
- def get_device_name(self, device: str) -> str | None: ...
19
- def _update_info(self) -> None: ...
18
+ async def async_scan_devices(self) -> list[str]: ...
19
+ async def async_get_device_name(self, device: str) -> str | None: ...
20
+ async def _async_update_info(self) -> None: ...
@@ -1,12 +1,12 @@
1
1
  from .const import DOMAIN as DOMAIN, EVENT_RECORDING as EVENT_RECORDING
2
2
  from .error import PipelineNotFound as PipelineNotFound
3
- from .pipeline import AudioSettings as AudioSettings, Pipeline as Pipeline, PipelineEvent as PipelineEvent, PipelineEventCallback, PipelineEventType as PipelineEventType, PipelineStage, WakeWordSettings as WakeWordSettings, async_create_default_pipeline as async_create_default_pipeline, async_get_pipelines as async_get_pipelines, async_update_pipeline as async_update_pipeline
3
+ from .pipeline import AudioSettings as AudioSettings, Pipeline as Pipeline, PipelineEvent as PipelineEvent, PipelineEventCallback, PipelineEventType as PipelineEventType, PipelineStage, WakeWordSettings as WakeWordSettings, async_create_default_pipeline as async_create_default_pipeline, async_get_pipelines as async_get_pipelines, async_migrate_engine as async_migrate_engine, async_update_pipeline as async_update_pipeline
4
4
  from collections.abc import AsyncIterable
5
5
  from homeassistant.components import stt
6
6
  from homeassistant.core import Context, HomeAssistant
7
7
  from homeassistant.helpers.typing import ConfigType
8
8
 
9
- __all__ = ['DOMAIN', 'async_create_default_pipeline', 'async_get_pipelines', 'async_setup', 'async_pipeline_from_audio_stream', 'async_update_pipeline', 'AudioSettings', 'Pipeline', 'PipelineEvent', 'PipelineEventType', 'PipelineNotFound', 'WakeWordSettings', 'EVENT_RECORDING']
9
+ __all__ = ['DOMAIN', 'async_create_default_pipeline', 'async_get_pipelines', 'async_migrate_engine', 'async_setup', 'async_pipeline_from_audio_stream', 'async_update_pipeline', 'AudioSettings', 'Pipeline', 'PipelineEvent', 'PipelineEventType', 'PipelineNotFound', 'WakeWordSettings', 'EVENT_RECORDING']
10
10
 
11
11
  async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: ...
12
12
  async def async_pipeline_from_audio_stream(hass: HomeAssistant, *, context: Context, event_callback: PipelineEventCallback, stt_metadata: stt.SpeechMetadata, stt_stream: AsyncIterable[bytes], wake_word_phrase: str | None = None, pipeline_id: str | None = None, conversation_id: str | None = None, tts_audio_output: str | None = None, wake_word_settings: WakeWordSettings | None = None, audio_settings: AudioSettings | None = None, device_id: str | None = None, start_stage: PipelineStage = ..., end_stage: PipelineStage = ...) -> None: ...
@@ -2,6 +2,7 @@ from _typeshed import Incomplete
2
2
 
3
3
  DOMAIN: str
4
4
  DATA_CONFIG: Incomplete
5
+ DATA_MIGRATIONS: Incomplete
5
6
  DEFAULT_PIPELINE_TIMEOUT: Incomplete
6
7
  DEFAULT_WAKE_WORD_TIMEOUT: int
7
8
  CONF_DEBUG_RECORDING_DIR: str
@@ -1,5 +1,5 @@
1
1
  import asyncio
2
- from .const import CONF_DEBUG_RECORDING_DIR as CONF_DEBUG_RECORDING_DIR, DATA_CONFIG as DATA_CONFIG, DATA_LAST_WAKE_UP as DATA_LAST_WAKE_UP, DOMAIN as DOMAIN, WAKE_WORD_COOLDOWN as WAKE_WORD_COOLDOWN
2
+ from .const import CONF_DEBUG_RECORDING_DIR as CONF_DEBUG_RECORDING_DIR, DATA_CONFIG as DATA_CONFIG, DATA_LAST_WAKE_UP as DATA_LAST_WAKE_UP, DATA_MIGRATIONS as DATA_MIGRATIONS, DOMAIN as DOMAIN, WAKE_WORD_COOLDOWN as WAKE_WORD_COOLDOWN
3
3
  from .error import DuplicateWakeUpDetectedError as DuplicateWakeUpDetectedError, IntentRecognitionError as IntentRecognitionError, PipelineError as PipelineError, PipelineNotFound as PipelineNotFound, SpeechToTextError as SpeechToTextError, TextToSpeechError as TextToSpeechError, WakeWordDetectionAborted as WakeWordDetectionAborted, WakeWordDetectionError as WakeWordDetectionError, WakeWordTimeoutError as WakeWordTimeoutError
4
4
  from .vad import AudioBuffer as AudioBuffer, VoiceActivityTimeout as VoiceActivityTimeout, VoiceCommandSegmenter as VoiceCommandSegmenter, chunk_samples as chunk_samples
5
5
  from _typeshed import Incomplete
@@ -18,7 +18,7 @@ from homeassistant.util.limited_size_dict import LimitedSizeDict as LimitedSizeD
18
18
  from pathlib import Path
19
19
  from queue import Queue
20
20
  from threading import Thread
21
- from typing import Any, Final
21
+ from typing import Any, Final, Literal
22
22
  from webrtc_noise_gain import AudioProcessor
23
23
 
24
24
  _LOGGER: Incomplete
@@ -150,7 +150,7 @@ class PipelineRun:
150
150
  audio_processor_buffer: AudioBuffer = ...
151
151
  _device_id: str | None = ...
152
152
  def __post_init__(self) -> None: ...
153
- def __eq__(self, other: Any) -> bool: ...
153
+ def __eq__(self, other: object) -> bool: ...
154
154
  def process_event(self, event: PipelineEvent) -> None: ...
155
155
  def start(self, device_id: str | None) -> None: ...
156
156
  async def end(self) -> None: ...
@@ -255,3 +255,5 @@ class PipelineStore(Store[SerializedPipelineStorageCollection]):
255
255
  async def _async_migrate_func(self, old_major_version: int, old_minor_version: int, old_data: SerializedPipelineStorageCollection) -> SerializedPipelineStorageCollection: ...
256
256
 
257
257
  async def async_setup_pipeline_store(hass: HomeAssistant) -> PipelineData: ...
258
+ def async_migrate_engine(hass: HomeAssistant, engine_type: Literal['conversation', 'stt', 'tts', 'wake_word'], old_value: str, new_value: str) -> None: ...
259
+ async def async_run_migrations(hass: HomeAssistant) -> None: ...
@@ -18,6 +18,7 @@ from multidict import MultiDictProxy
18
18
  from typing import Any
19
19
 
20
20
  DOMAIN: str
21
+ STRICT_CONNECTION_URL: str
21
22
  StoreResultType = Callable[[str, Credentials], str]
22
23
  RetrieveResultType: Incomplete
23
24
  CONFIG_SCHEMA: Incomplete
@@ -40,8 +41,8 @@ class TokenView(HomeAssistantView):
40
41
  _retrieve_auth: Incomplete
41
42
  def __init__(self, retrieve_auth: RetrieveResultType) -> None: ...
42
43
  async def post(self, request: web.Request) -> web.Response: ...
43
- async def _async_handle_auth_code(self, hass: HomeAssistant, data: MultiDictProxy[str], remote_addr: str | None) -> web.Response: ...
44
- async def _async_handle_refresh_token(self, hass: HomeAssistant, data: MultiDictProxy[str], remote_addr: str | None) -> web.Response: ...
44
+ async def _async_handle_auth_code(self, hass: HomeAssistant, data: MultiDictProxy[str], request: web.Request) -> web.Response: ...
45
+ async def _async_handle_refresh_token(self, hass: HomeAssistant, data: MultiDictProxy[str], request: web.Request) -> web.Response: ...
45
46
 
46
47
  class LinkUserView(HomeAssistantView):
47
48
  url: str
@@ -50,6 +51,12 @@ class LinkUserView(HomeAssistantView):
50
51
  def __init__(self, retrieve_credentials: RetrieveResultType) -> None: ...
51
52
  async def post(self, request: web.Request, data: dict[str, Any]) -> web.Response: ...
52
53
 
54
+ class StrictConnectionTempTokenView(HomeAssistantView):
55
+ url = STRICT_CONNECTION_URL
56
+ name: str
57
+ requires_auth: bool
58
+ async def get(self, request: web.Request) -> web.Response: ...
59
+
53
60
  def _create_auth_code_store() -> tuple[StoreResultType, RetrieveResultType]: ...
54
61
  async def websocket_current_user(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None: ...
55
62
  async def websocket_create_long_lived_access_token(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None: ...
@@ -12,12 +12,12 @@ from homeassistant.components.http.auth import async_user_not_allowed_do_auth as
12
12
  from homeassistant.components.http.ban import log_invalid_auth as log_invalid_auth, process_success_login as process_success_login, process_wrong_login as process_wrong_login
13
13
  from homeassistant.components.http.data_validator import RequestDataValidator as RequestDataValidator
14
14
  from homeassistant.components.http.view import HomeAssistantView as HomeAssistantView
15
- from homeassistant.core import HomeAssistant as HomeAssistant
15
+ from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
16
16
  from homeassistant.helpers.network import is_cloud_connection as is_cloud_connection
17
17
  from homeassistant.util.network import is_local as is_local
18
18
  from typing import Any
19
19
 
20
- async def async_setup(hass: HomeAssistant, store_result: Callable[[str, Credentials], str]) -> None: ...
20
+ def async_setup(hass: HomeAssistant, store_result: Callable[[str, Credentials], str]) -> None: ...
21
21
 
22
22
  class WellKnownOAuthInfoView(HomeAssistantView):
23
23
  requires_auth: bool
@@ -15,7 +15,7 @@ class MfaFlowManager(data_entry_flow.FlowManager):
15
15
  async def async_create_flow(self, handler_key: str, *, context: dict[str, Any], data: dict[str, Any]) -> data_entry_flow.FlowHandler: ...
16
16
  async def async_finish_flow(self, flow: data_entry_flow.FlowHandler, result: data_entry_flow.FlowResult) -> data_entry_flow.FlowResult: ...
17
17
 
18
- async def async_setup(hass: HomeAssistant) -> None: ...
18
+ def async_setup(hass: HomeAssistant) -> None: ...
19
19
  def websocket_setup_mfa(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None: ...
20
20
  def websocket_depose_mfa(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None: ...
21
21
  def _prepare_result_json(result: data_entry_flow.FlowResult) -> data_entry_flow.FlowResult: ...
@@ -94,12 +94,10 @@ class BaseAutomationEntity(ToggleEntity, ABC, metaclass=abc.ABCMeta):
94
94
  class UnavailableAutomationEntity(BaseAutomationEntity):
95
95
  _attr_should_poll: bool
96
96
  _attr_available: bool
97
- _name: Incomplete
97
+ _attr_name: Incomplete
98
98
  _attr_unique_id: Incomplete
99
99
  raw_config: Incomplete
100
100
  def __init__(self, automation_id: str | None, name: str, raw_config: ConfigType | None) -> None: ...
101
- @property
102
- def name(self) -> str: ...
103
101
  @cached_property
104
102
  def referenced_labels(self) -> set[str]: ...
105
103
  @cached_property
@@ -116,7 +114,7 @@ class UnavailableAutomationEntity(BaseAutomationEntity):
116
114
 
117
115
  class AutomationEntity(BaseAutomationEntity, RestoreEntity):
118
116
  _attr_should_poll: bool
119
- _name: Incomplete
117
+ _attr_name: Incomplete
120
118
  _trigger_config: Incomplete
121
119
  _async_detach_triggers: Incomplete
122
120
  _cond_func: Incomplete
@@ -132,8 +130,6 @@ class AutomationEntity(BaseAutomationEntity, RestoreEntity):
132
130
  _attr_unique_id: Incomplete
133
131
  def __init__(self, automation_id: str | None, name: str, trigger_config: list[ConfigType], cond_func: IfAction | None, action_script: Script, initial_state: bool | None, variables: ScriptVariables | None, trigger_variables: ScriptVariables | None, raw_config: ConfigType | None, blueprint_inputs: ConfigType | None, trace_config: ConfigType) -> None: ...
134
132
  @property
135
- def name(self) -> str: ...
136
- @property
137
133
  def extra_state_attributes(self) -> dict[str, Any]: ...
138
134
  @property
139
135
  def is_on(self) -> bool: ...
@@ -155,8 +151,8 @@ class AutomationEntity(BaseAutomationEntity, RestoreEntity):
155
151
  async def async_trigger(self, run_variables: dict[str, Any], context: Context | None = None, skip_condition: bool = False) -> ScriptRunResult | None: ...
156
152
  async def async_will_remove_from_hass(self) -> None: ...
157
153
  async def _async_enable_automation(self, event: Event) -> None: ...
158
- async def async_enable(self) -> None: ...
159
- async def async_disable(self, stop_actions: bool = ...) -> None: ...
154
+ async def _async_enable(self) -> None: ...
155
+ async def _async_disable(self, stop_actions: bool = ...) -> None: ...
160
156
  def _log_callback(self, level: int, msg: str, **kwargs: Any) -> None: ...
161
157
  async def _async_trigger_if_enabled(self, run_variables: dict[str, Any], context: Context | None = None, skip_condition: bool = False) -> ScriptRunResult | None: ...
162
158
  async def _async_attach_triggers(self, home_assistant_start: bool) -> Callable[[], None] | None: ...
@@ -170,10 +166,12 @@ class AutomationEntityConfig:
170
166
  validation_failed: bool
171
167
  def __init__(self, config_block, list_no, raw_blueprint_inputs, raw_config, validation_failed) -> None: ...
172
168
 
173
- async def _prepare_automation_config(hass: HomeAssistant, config: ConfigType) -> list[AutomationEntityConfig]: ...
169
+ async def _prepare_automation_config(hass: HomeAssistant, config: ConfigType, wanted_automation_id: str | None) -> list[AutomationEntityConfig]: ...
174
170
  def _automation_name(automation_config: AutomationEntityConfig) -> str: ...
175
171
  async def _create_automation_entities(hass: HomeAssistant, automation_configs: list[AutomationEntityConfig]) -> list[BaseAutomationEntity]: ...
176
172
  async def _async_process_config(hass: HomeAssistant, config: dict[str, Any], component: EntityComponent[BaseAutomationEntity]) -> None: ...
173
+ def _automation_matches_config(automation: BaseAutomationEntity | None, config: AutomationEntityConfig | None) -> bool: ...
174
+ async def _async_process_single_config(hass: HomeAssistant, config: dict[str, Any], component: EntityComponent[BaseAutomationEntity], automation_id: str) -> None: ...
177
175
  async def _async_process_if(hass: HomeAssistant, name: str, config: dict[str, Any]) -> IfAction | None: ...
178
176
  def _trigger_extract_devices(trigger_conf: dict) -> list[str]: ...
179
177
  def _trigger_extract_entities(trigger_conf: dict) -> list[str]: ...
@@ -1,7 +1,9 @@
1
1
  from . import ATTR_SOURCE as ATTR_SOURCE, EVENT_AUTOMATION_TRIGGERED as EVENT_AUTOMATION_TRIGGERED
2
2
  from .const import DOMAIN as DOMAIN
3
+ from collections.abc import Callable as Callable
3
4
  from homeassistant.components.logbook import LOGBOOK_ENTRY_CONTEXT_ID as LOGBOOK_ENTRY_CONTEXT_ID, LOGBOOK_ENTRY_ENTITY_ID as LOGBOOK_ENTRY_ENTITY_ID, LOGBOOK_ENTRY_MESSAGE as LOGBOOK_ENTRY_MESSAGE, LOGBOOK_ENTRY_NAME as LOGBOOK_ENTRY_NAME, LOGBOOK_ENTRY_SOURCE as LOGBOOK_ENTRY_SOURCE, LazyEventPartialState as LazyEventPartialState
4
5
  from homeassistant.const import ATTR_ENTITY_ID as ATTR_ENTITY_ID, ATTR_NAME as ATTR_NAME
5
6
  from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
7
+ from typing import Any
6
8
 
7
- def async_describe_events(hass: HomeAssistant, async_describe_event): ...
9
+ def async_describe_events(hass: HomeAssistant, async_describe_event: Callable[[str, str, Callable[[LazyEventPartialState], dict[str, Any]]], None]) -> None: ...
@@ -0,0 +1,23 @@
1
+ import axis
2
+ from _typeshed import Incomplete
3
+ from axis.stream_manager import Signal
4
+ from homeassistant.components import mqtt as mqtt
5
+ from homeassistant.components.mqtt.models import ReceiveMessage as ReceiveMessage
6
+ from homeassistant.config_entries import ConfigEntry as ConfigEntry
7
+ from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
8
+ from homeassistant.helpers.dispatcher import async_dispatcher_send as async_dispatcher_send
9
+ from homeassistant.setup import async_when_setup as async_when_setup
10
+
11
+ class AxisEventSource:
12
+ hass: Incomplete
13
+ config_entry: Incomplete
14
+ api: Incomplete
15
+ signal_reachable: Incomplete
16
+ available: bool
17
+ def __init__(self, hass: HomeAssistant, config_entry: ConfigEntry, api: axis.AxisDevice) -> None: ...
18
+ def setup(self) -> None: ...
19
+ def teardown(self) -> None: ...
20
+ def _disconnect_from_stream(self) -> None: ...
21
+ async def _async_use_mqtt(self, hass: HomeAssistant, component: str) -> None: ...
22
+ def _mqtt_message(self, message: ReceiveMessage) -> None: ...
23
+ def _connection_status_cb(self, status: Signal) -> None: ...
@@ -2,22 +2,19 @@ import axis
2
2
  from ..const import ATTR_MANUFACTURER as ATTR_MANUFACTURER
3
3
  from .config import AxisConfig as AxisConfig
4
4
  from .entity_loader import AxisEntityLoader as AxisEntityLoader
5
+ from .event_source import AxisEventSource as AxisEventSource
5
6
  from _typeshed import Incomplete
6
- from axis.stream_manager import Signal
7
- from homeassistant.components import mqtt as mqtt
8
- from homeassistant.components.mqtt.models import ReceiveMessage as ReceiveMessage
9
7
  from homeassistant.config_entries import ConfigEntry as ConfigEntry
10
8
  from homeassistant.core import Event as Event, HomeAssistant as HomeAssistant, callback as callback
11
9
  from homeassistant.helpers.device_registry import CONNECTION_NETWORK_MAC as CONNECTION_NETWORK_MAC, format_mac as format_mac
12
10
  from homeassistant.helpers.dispatcher import async_dispatcher_send as async_dispatcher_send
13
- from homeassistant.setup import async_when_setup as async_when_setup
14
11
 
15
12
  class AxisHub:
16
13
  hass: Incomplete
17
14
  config: Incomplete
18
15
  entity_loader: Incomplete
16
+ event_source: Incomplete
19
17
  api: Incomplete
20
- available: bool
21
18
  fw_version: Incomplete
22
19
  product_type: Incomplete
23
20
  unique_id: Incomplete
@@ -26,16 +23,14 @@ class AxisHub:
26
23
  @staticmethod
27
24
  def get_hub(hass: HomeAssistant, config_entry: ConfigEntry) -> AxisHub: ...
28
25
  @property
26
+ def available(self) -> bool: ...
27
+ @property
29
28
  def signal_reachable(self) -> str: ...
30
29
  @property
31
30
  def signal_new_address(self) -> str: ...
32
- def connection_status_callback(self, status: Signal) -> None: ...
33
31
  @staticmethod
34
32
  async def async_new_address_callback(hass: HomeAssistant, config_entry: ConfigEntry) -> None: ...
35
33
  async def async_update_device_registry(self) -> None: ...
36
- async def async_use_mqtt(self, hass: HomeAssistant, component: str) -> None: ...
37
- def mqtt_message(self, message: ReceiveMessage) -> None: ...
38
34
  def setup(self) -> None: ...
39
- def disconnect_from_stream(self) -> None: ...
40
35
  async def shutdown(self, event: Event) -> None: ...
41
36
  def teardown(self) -> None: ...
@@ -16,6 +16,7 @@ class BAFFan(BAFEntity, FanEntity):
16
16
  _attr_preset_modes: Incomplete
17
17
  _attr_speed_count = SPEED_COUNT
18
18
  _attr_name: Incomplete
19
+ _attr_translation_key: str
19
20
  _attr_is_on: Incomplete
20
21
  _attr_current_direction: Incomplete
21
22
  _attr_percentage: Incomplete
@@ -7,11 +7,11 @@ from collections import OrderedDict
7
7
  from collections.abc import Callable as Callable
8
8
  from homeassistant.components.binary_sensor import BinarySensorDeviceClass as BinarySensorDeviceClass, BinarySensorEntity as BinarySensorEntity, PLATFORM_SCHEMA as PLATFORM_SCHEMA
9
9
  from homeassistant.const import CONF_ABOVE as CONF_ABOVE, CONF_BELOW as CONF_BELOW, CONF_DEVICE_CLASS as CONF_DEVICE_CLASS, CONF_ENTITY_ID as CONF_ENTITY_ID, CONF_NAME as CONF_NAME, CONF_PLATFORM as CONF_PLATFORM, CONF_STATE as CONF_STATE, CONF_UNIQUE_ID as CONF_UNIQUE_ID, CONF_VALUE_TEMPLATE as CONF_VALUE_TEMPLATE, STATE_UNAVAILABLE as STATE_UNAVAILABLE, STATE_UNKNOWN as STATE_UNKNOWN
10
- from homeassistant.core import Event as Event, HomeAssistant as HomeAssistant, callback as callback
10
+ from homeassistant.core import Event as Event, EventStateChangedData as EventStateChangedData, HomeAssistant as HomeAssistant, callback as callback
11
11
  from homeassistant.exceptions import ConditionError as ConditionError, TemplateError as TemplateError
12
12
  from homeassistant.helpers import condition as condition
13
13
  from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
14
- from homeassistant.helpers.event import EventStateChangedData as EventStateChangedData, TrackTemplate as TrackTemplate, TrackTemplateResult as TrackTemplateResult, TrackTemplateResultInfo as TrackTemplateResultInfo, async_track_state_change_event as async_track_state_change_event, async_track_template_result as async_track_template_result
14
+ from homeassistant.helpers.event import TrackTemplate as TrackTemplate, TrackTemplateResult as TrackTemplateResult, TrackTemplateResultInfo as TrackTemplateResultInfo, async_track_state_change_event as async_track_state_change_event, async_track_template_result as async_track_template_result
15
15
  from homeassistant.helpers.reload import async_setup_reload_service as async_setup_reload_service
16
16
  from homeassistant.helpers.template import Template as Template, result_as_boolean as result_as_boolean
17
17
  from homeassistant.helpers.typing import ConfigType as ConfigType, DiscoveryInfoType as DiscoveryInfoType