homeassistant-stubs 2024.6.3__py3-none-any.whl → 2024.7.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 (620) hide show
  1. homeassistant-stubs/auth/__init__.pyi +2 -0
  2. homeassistant-stubs/auth/auth_store.pyi +1 -0
  3. homeassistant-stubs/auth/providers/homeassistant.pyi +10 -2
  4. homeassistant-stubs/block_async_io.pyi +23 -0
  5. homeassistant-stubs/bootstrap.pyi +4 -3
  6. homeassistant-stubs/components/accuweather/sensor.pyi +5 -9
  7. homeassistant-stubs/components/accuweather/weather.pyi +1 -1
  8. homeassistant-stubs/components/acer_projector/switch.pyi +2 -1
  9. homeassistant-stubs/components/air_quality/__init__.pyi +4 -3
  10. homeassistant-stubs/components/airgradient/__init__.pyi +8 -0
  11. homeassistant-stubs/components/airgradient/button.pyi +28 -0
  12. homeassistant-stubs/components/airgradient/const.pyi +2 -0
  13. homeassistant-stubs/components/airgradient/coordinator.pyi +2 -2
  14. homeassistant-stubs/components/airgradient/number.pyi +32 -0
  15. homeassistant-stubs/components/airgradient/select.pyi +14 -12
  16. homeassistant-stubs/components/airgradient/sensor.pyi +28 -10
  17. homeassistant-stubs/components/airgradient/switch.pyi +33 -0
  18. homeassistant-stubs/components/airnow/const.pyi +1 -0
  19. homeassistant-stubs/components/airnow/coordinator.pyi +1 -1
  20. homeassistant-stubs/components/airnow/sensor.pyi +1 -2
  21. homeassistant-stubs/components/airzone/__init__.pyi +4 -4
  22. homeassistant-stubs/components/airzone/binary_sensor.pyi +2 -2
  23. homeassistant-stubs/components/airzone/climate.pyi +3 -2
  24. homeassistant-stubs/components/airzone/diagnostics.pyi +2 -4
  25. homeassistant-stubs/components/airzone/entity.pyi +2 -1
  26. homeassistant-stubs/components/airzone/select.pyi +2 -2
  27. homeassistant-stubs/components/airzone/sensor.pyi +3 -2
  28. homeassistant-stubs/components/airzone/water_heater.pyi +3 -2
  29. homeassistant-stubs/components/airzone_cloud/__init__.pyi +3 -3
  30. homeassistant-stubs/components/airzone_cloud/binary_sensor.pyi +2 -3
  31. homeassistant-stubs/components/airzone_cloud/climate.pyi +8 -10
  32. homeassistant-stubs/components/airzone_cloud/diagnostics.pyi +2 -4
  33. homeassistant-stubs/components/airzone_cloud/select.pyi +2 -3
  34. homeassistant-stubs/components/airzone_cloud/sensor.pyi +2 -3
  35. homeassistant-stubs/components/airzone_cloud/water_heater.pyi +2 -3
  36. homeassistant-stubs/components/aladdin_connect/__init__.pyi +4 -13
  37. homeassistant-stubs/components/aladdin_connect/config_flow.pyi +3 -16
  38. homeassistant-stubs/components/alarm_control_panel/__init__.pyi +3 -3
  39. homeassistant-stubs/components/alexa/capabilities.pyi +2 -2
  40. homeassistant-stubs/components/alexa/entities.pyi +25 -24
  41. homeassistant-stubs/components/alpha_vantage/sensor.pyi +2 -1
  42. homeassistant-stubs/components/ambient_network/coordinator.pyi +2 -0
  43. homeassistant-stubs/components/ambient_network/sensor.pyi +1 -0
  44. homeassistant-stubs/components/androidtv/entity.pyi +1 -0
  45. homeassistant-stubs/components/androidtv/remote.pyi +21 -0
  46. homeassistant-stubs/components/androidtv_remote/config_flow.pyi +11 -1
  47. homeassistant-stubs/components/androidtv_remote/const.pyi +3 -0
  48. homeassistant-stubs/components/androidtv_remote/entity.pyi +2 -1
  49. homeassistant-stubs/components/androidtv_remote/media_player.pyi +4 -1
  50. homeassistant-stubs/components/androidtv_remote/remote.pyi +3 -0
  51. homeassistant-stubs/components/anel_pwrctrl/switch.pyi +2 -1
  52. homeassistant-stubs/components/apprise/notify.pyi +2 -1
  53. homeassistant-stubs/components/apsystems/__init__.pyi +9 -2
  54. homeassistant-stubs/components/apsystems/entity.pyi +10 -0
  55. homeassistant-stubs/components/apsystems/number.pyi +25 -0
  56. homeassistant-stubs/components/apsystems/sensor.pyi +6 -7
  57. homeassistant-stubs/components/aqualogic/sensor.pyi +2 -1
  58. homeassistant-stubs/components/aqualogic/switch.pyi +2 -1
  59. homeassistant-stubs/components/aquostv/media_player.pyi +2 -1
  60. homeassistant-stubs/components/assist_pipeline/pipeline.pyi +8 -7
  61. homeassistant-stubs/components/assist_pipeline/select.pyi +1 -1
  62. homeassistant-stubs/components/asuswrt/config_flow.pyi +1 -0
  63. homeassistant-stubs/components/automation/__init__.pyi +10 -5
  64. homeassistant-stubs/components/automation/config.pyi +11 -1
  65. homeassistant-stubs/components/automation/trace.pyi +2 -2
  66. homeassistant-stubs/components/axis/config_flow.pyi +1 -0
  67. homeassistant-stubs/components/baf/binary_sensor.pyi +2 -4
  68. homeassistant-stubs/components/baf/entity.pyi +6 -1
  69. homeassistant-stubs/components/baf/number.pyi +2 -4
  70. homeassistant-stubs/components/baf/sensor.pyi +2 -4
  71. homeassistant-stubs/components/baf/switch.pyi +2 -4
  72. homeassistant-stubs/components/bang_olufsen/const.pyi +2 -0
  73. homeassistant-stubs/components/bang_olufsen/media_player.pyi +3 -2
  74. homeassistant-stubs/components/bayesian/binary_sensor.pyi +2 -1
  75. homeassistant-stubs/components/binary_sensor/__init__.pyi +3 -2
  76. homeassistant-stubs/components/bitcoin/sensor.pyi +2 -1
  77. homeassistant-stubs/components/blockchain/sensor.pyi +2 -1
  78. homeassistant-stubs/components/blueprint/errors.pyi +1 -1
  79. homeassistant-stubs/components/blueprint/websocket_api.pyi +6 -3
  80. homeassistant-stubs/components/bluetooth/passive_update_coordinator.pyi +3 -3
  81. homeassistant-stubs/components/bmw_connected_drive/const.pyi +0 -1
  82. homeassistant-stubs/components/bmw_connected_drive/select.pyi +1 -1
  83. homeassistant-stubs/components/bmw_connected_drive/sensor.pyi +1 -1
  84. homeassistant-stubs/components/brother/config_flow.pyi +9 -1
  85. homeassistant-stubs/components/button/__init__.pyi +4 -3
  86. homeassistant-stubs/components/calendar/__init__.pyi +2 -4
  87. homeassistant-stubs/components/camera/__init__.pyi +8 -7
  88. homeassistant-stubs/components/cert_expiry/sensor.pyi +2 -1
  89. homeassistant-stubs/components/clickatell/notify.pyi +2 -1
  90. homeassistant-stubs/components/clicksend/notify.pyi +2 -1
  91. homeassistant-stubs/components/climate/__init__.pyi +5 -4
  92. homeassistant-stubs/components/cloud/__init__.pyi +1 -1
  93. homeassistant-stubs/components/cloud/account_link.pyi +1 -1
  94. homeassistant-stubs/components/cloud/binary_sensor.pyi +1 -1
  95. homeassistant-stubs/components/cloud/const.pyi +6 -1
  96. homeassistant-stubs/components/cloud/http_api.pyi +1 -1
  97. homeassistant-stubs/components/cloud/repairs.pyi +1 -3
  98. homeassistant-stubs/components/cloud/stt.pyi +1 -1
  99. homeassistant-stubs/components/cloud/system_health.pyi +1 -3
  100. homeassistant-stubs/components/cloud/tts.pyi +1 -1
  101. homeassistant-stubs/components/config/auth_provider_homeassistant.pyi +1 -0
  102. homeassistant-stubs/components/config/scene.pyi +3 -1
  103. homeassistant-stubs/components/counter/__init__.pyi +2 -2
  104. homeassistant-stubs/components/cover/__init__.pyi +3 -2
  105. homeassistant-stubs/components/demo/tts.pyi +2 -1
  106. homeassistant-stubs/components/derivative/__init__.pyi +2 -1
  107. homeassistant-stubs/components/derivative/config_flow.pyi +11 -4
  108. homeassistant-stubs/components/derivative/sensor.pyi +3 -1
  109. homeassistant-stubs/components/device_automation/__init__.pyi +2 -2
  110. homeassistant-stubs/components/dlna_dmr/config_flow.pyi +1 -0
  111. homeassistant-stubs/components/dnsip/__init__.pyi +4 -2
  112. homeassistant-stubs/components/dnsip/config_flow.pyi +4 -3
  113. homeassistant-stubs/components/dnsip/const.pyi +2 -0
  114. homeassistant-stubs/components/dnsip/sensor.pyi +4 -3
  115. homeassistant-stubs/components/ecovacs/binary_sensor.pyi +3 -3
  116. homeassistant-stubs/components/ecovacs/button.pyi +5 -5
  117. homeassistant-stubs/components/ecovacs/config_flow.pyi +1 -0
  118. homeassistant-stubs/components/ecovacs/controller.pyi +4 -4
  119. homeassistant-stubs/components/ecovacs/entity.pyi +8 -10
  120. homeassistant-stubs/components/ecovacs/event.pyi +3 -3
  121. homeassistant-stubs/components/ecovacs/image.pyi +2 -2
  122. homeassistant-stubs/components/ecovacs/lawn_mower.pyi +3 -3
  123. homeassistant-stubs/components/ecovacs/number.pyi +3 -3
  124. homeassistant-stubs/components/ecovacs/select.pyi +3 -3
  125. homeassistant-stubs/components/ecovacs/sensor.pyi +6 -6
  126. homeassistant-stubs/components/ecovacs/switch.pyi +4 -4
  127. homeassistant-stubs/components/ecovacs/vacuum.pyi +9 -5
  128. homeassistant-stubs/components/ecowitt/binary_sensor.pyi +1 -0
  129. homeassistant-stubs/components/efergy/__init__.pyi +3 -2
  130. homeassistant-stubs/components/efergy/sensor.pyi +3 -4
  131. homeassistant-stubs/components/electrasmart/__init__.pyi +12 -0
  132. homeassistant-stubs/components/electrasmart/climate.pyi +64 -0
  133. homeassistant-stubs/components/electrasmart/config_flow.pyi +24 -0
  134. homeassistant-stubs/components/electrasmart/const.pyi +10 -0
  135. homeassistant-stubs/components/elkm1/alarm_control_panel.pyi +2 -1
  136. homeassistant-stubs/components/elkm1/const.pyi +2 -1
  137. homeassistant-stubs/components/elkm1/sensor.pyi +2 -1
  138. homeassistant-stubs/components/energy/websocket_api.pyi +5 -5
  139. homeassistant-stubs/components/enigma2/__init__.pyi +3 -2
  140. homeassistant-stubs/components/enigma2/config_flow.pyi +10 -1
  141. homeassistant-stubs/components/enigma2/media_player.pyi +3 -2
  142. homeassistant-stubs/components/enphase_envoy/config_flow.pyi +8 -2
  143. homeassistant-stubs/components/enphase_envoy/const.pyi +2 -0
  144. homeassistant-stubs/components/enphase_envoy/diagnostics.pyi +3 -1
  145. homeassistant-stubs/components/esphome/__init__.pyi +5 -5
  146. homeassistant-stubs/components/esphome/alarm_control_panel.pyi +3 -5
  147. homeassistant-stubs/components/esphome/binary_sensor.pyi +2 -3
  148. homeassistant-stubs/components/esphome/button.pyi +3 -5
  149. homeassistant-stubs/components/esphome/camera.pyi +3 -5
  150. homeassistant-stubs/components/esphome/climate.pyi +3 -6
  151. homeassistant-stubs/components/esphome/cover.pyi +3 -5
  152. homeassistant-stubs/components/esphome/date.pyi +3 -5
  153. homeassistant-stubs/components/esphome/datetime.pyi +3 -5
  154. homeassistant-stubs/components/esphome/diagnostics.pyi +3 -3
  155. homeassistant-stubs/components/esphome/domain_data.pyi +4 -8
  156. homeassistant-stubs/components/esphome/entity.pyi +2 -4
  157. homeassistant-stubs/components/esphome/entry_data.pyi +4 -3
  158. homeassistant-stubs/components/esphome/event.pyi +3 -5
  159. homeassistant-stubs/components/esphome/fan.pyi +3 -6
  160. homeassistant-stubs/components/esphome/light.pyi +3 -6
  161. homeassistant-stubs/components/esphome/lock.pyi +3 -5
  162. homeassistant-stubs/components/esphome/manager.pyi +4 -5
  163. homeassistant-stubs/components/esphome/media_player.pyi +3 -5
  164. homeassistant-stubs/components/esphome/number.pyi +3 -5
  165. homeassistant-stubs/components/esphome/select.pyi +2 -4
  166. homeassistant-stubs/components/esphome/switch.pyi +3 -5
  167. homeassistant-stubs/components/esphome/text.pyi +3 -5
  168. homeassistant-stubs/components/esphome/time.pyi +3 -5
  169. homeassistant-stubs/components/esphome/update.pyi +23 -2
  170. homeassistant-stubs/components/esphome/valve.pyi +3 -5
  171. homeassistant-stubs/components/event/__init__.pyi +3 -1
  172. homeassistant-stubs/components/evohome/__init__.pyi +8 -49
  173. homeassistant-stubs/components/evohome/climate.pyi +2 -2
  174. homeassistant-stubs/components/evohome/const.pyi +39 -16
  175. homeassistant-stubs/components/evohome/coordinator.pyi +33 -0
  176. homeassistant-stubs/components/evohome/helpers.pyi +13 -0
  177. homeassistant-stubs/components/fan/__init__.pyi +3 -2
  178. homeassistant-stubs/components/fastdotcom/__init__.pyi +2 -7
  179. homeassistant-stubs/components/fastdotcom/config_flow.pyi +0 -2
  180. homeassistant-stubs/components/feedreader/__init__.pyi +10 -5
  181. homeassistant-stubs/components/feedreader/config_flow.pyi +30 -0
  182. homeassistant-stubs/components/feedreader/const.pyi +5 -0
  183. homeassistant-stubs/components/feedreader/coordinator.pyi +4 -4
  184. homeassistant-stubs/components/filter/sensor.pyi +2 -1
  185. homeassistant-stubs/components/flux_led/light.pyi +4 -3
  186. homeassistant-stubs/components/fritz/switch.pyi +1 -1
  187. homeassistant-stubs/components/fritzbox/climate.pyi +14 -9
  188. homeassistant-stubs/components/fritzbox/switch.pyi +3 -0
  189. homeassistant-stubs/components/fronius/config_flow.pyi +3 -2
  190. homeassistant-stubs/components/frontend/__init__.pyi +9 -4
  191. homeassistant-stubs/components/fully_kiosk/camera.pyi +21 -0
  192. homeassistant-stubs/components/fully_kiosk/image.pyi +30 -0
  193. homeassistant-stubs/components/fully_kiosk/media_player.pyi +2 -0
  194. homeassistant-stubs/components/fully_kiosk/notify.pyi +25 -0
  195. homeassistant-stubs/components/generic_hygrostat/__init__.pyi +4 -0
  196. homeassistant-stubs/components/generic_hygrostat/config_flow.pyi +19 -0
  197. homeassistant-stubs/components/generic_hygrostat/humidifier.pyi +7 -2
  198. homeassistant-stubs/components/generic_thermostat/__init__.pyi +6 -0
  199. homeassistant-stubs/components/generic_thermostat/climate.pyi +7 -1
  200. homeassistant-stubs/components/generic_thermostat/config_flow.pyi +19 -0
  201. homeassistant-stubs/components/geo_location/__init__.pyi +4 -3
  202. homeassistant-stubs/components/glances/__init__.pyi +3 -2
  203. homeassistant-stubs/components/glances/sensor.pyi +2 -3
  204. homeassistant-stubs/components/goalzero/__init__.pyi +3 -5
  205. homeassistant-stubs/components/goalzero/binary_sensor.pyi +2 -3
  206. homeassistant-stubs/components/goalzero/coordinator.pyi +3 -1
  207. homeassistant-stubs/components/goalzero/sensor.pyi +2 -3
  208. homeassistant-stubs/components/goalzero/switch.pyi +2 -3
  209. homeassistant-stubs/components/google_assistant_sdk/__init__.pyi +2 -2
  210. homeassistant-stubs/components/google_assistant_sdk/diagnostics.pyi +9 -0
  211. homeassistant-stubs/components/google_assistant_sdk/helpers.pyi +1 -0
  212. homeassistant-stubs/components/google_sheets/__init__.pyi +4 -3
  213. homeassistant-stubs/components/google_sheets/config_flow.pyi +3 -2
  214. homeassistant-stubs/components/gpsd/sensor.pyi +2 -1
  215. homeassistant-stubs/components/group/binary_sensor.pyi +2 -1
  216. homeassistant-stubs/components/group/cover.pyi +2 -1
  217. homeassistant-stubs/components/group/entity.pyi +2 -2
  218. homeassistant-stubs/components/group/event.pyi +2 -1
  219. homeassistant-stubs/components/group/fan.pyi +2 -1
  220. homeassistant-stubs/components/group/light.pyi +2 -1
  221. homeassistant-stubs/components/group/lock.pyi +2 -1
  222. homeassistant-stubs/components/group/media_player.pyi +2 -1
  223. homeassistant-stubs/components/group/notify.pyi +2 -1
  224. homeassistant-stubs/components/group/registry.pyi +8 -2
  225. homeassistant-stubs/components/group/switch.pyi +2 -1
  226. homeassistant-stubs/components/history_stats/sensor.pyi +4 -1
  227. homeassistant-stubs/components/homeassistant/const.pyi +3 -1
  228. homeassistant-stubs/components/homekit/aidmanager.pyi +2 -2
  229. homeassistant-stubs/components/homekit_controller/config_flow.pyi +1 -0
  230. homeassistant-stubs/components/homeworks/__init__.pyi +2 -5
  231. homeassistant-stubs/components/homeworks/config_flow.pyi +1 -6
  232. homeassistant-stubs/components/http/__init__.pyi +20 -3
  233. homeassistant-stubs/components/http/cors.pyi +1 -1
  234. homeassistant-stubs/components/http/data_validator.pyi +2 -1
  235. homeassistant-stubs/components/humidifier/__init__.pyi +3 -2
  236. homeassistant-stubs/components/humidifier/device_action.pyi +1 -1
  237. homeassistant-stubs/components/husqvarna_automower/__init__.pyi +3 -3
  238. homeassistant-stubs/components/husqvarna_automower/binary_sensor.pyi +2 -3
  239. homeassistant-stubs/components/husqvarna_automower/button.pyi +22 -0
  240. homeassistant-stubs/components/husqvarna_automower/device_tracker.pyi +2 -3
  241. homeassistant-stubs/components/husqvarna_automower/diagnostics.pyi +2 -2
  242. homeassistant-stubs/components/husqvarna_automower/entity.pyi +7 -1
  243. homeassistant-stubs/components/husqvarna_automower/lawn_mower.pyi +14 -5
  244. homeassistant-stubs/components/husqvarna_automower/number.pyi +4 -5
  245. homeassistant-stubs/components/husqvarna_automower/select.pyi +2 -3
  246. homeassistant-stubs/components/husqvarna_automower/sensor.pyi +10 -5
  247. homeassistant-stubs/components/husqvarna_automower/switch.pyi +4 -8
  248. homeassistant-stubs/components/hydrawise/coordinator.pyi +3 -3
  249. homeassistant-stubs/components/hydrawise/sensor.pyi +6 -1
  250. homeassistant-stubs/components/ibeacon/config_flow.pyi +1 -0
  251. homeassistant-stubs/components/idasen_desk/coordinator.pyi +2 -5
  252. homeassistant-stubs/components/idasen_desk/sensor.pyi +3 -0
  253. homeassistant-stubs/components/image/__init__.pyi +3 -2
  254. homeassistant-stubs/components/image_upload/__init__.pyi +7 -3
  255. homeassistant-stubs/components/imap/__init__.pyi +5 -4
  256. homeassistant-stubs/components/imap/diagnostics.pyi +3 -5
  257. homeassistant-stubs/components/imap/sensor.pyi +5 -5
  258. homeassistant-stubs/components/input_button/__init__.pyi +3 -4
  259. homeassistant-stubs/components/input_select/__init__.pyi +2 -2
  260. homeassistant-stubs/components/input_text/__init__.pyi +3 -4
  261. homeassistant-stubs/components/integration/__init__.pyi +2 -0
  262. homeassistant-stubs/components/integration/config_flow.pyi +1 -1
  263. homeassistant-stubs/components/integration/const.pyi +1 -0
  264. homeassistant-stubs/components/integration/sensor.pyi +33 -12
  265. homeassistant-stubs/components/intent/timers.pyi +7 -3
  266. homeassistant-stubs/components/islamic_prayer_times/__init__.pyi +4 -3
  267. homeassistant-stubs/components/islamic_prayer_times/sensor.pyi +3 -3
  268. homeassistant-stubs/components/isy994/services.pyi +3 -2
  269. homeassistant-stubs/components/jewish_calendar/binary_sensor.pyi +6 -12
  270. homeassistant-stubs/components/jewish_calendar/entity.pyi +19 -0
  271. homeassistant-stubs/components/jewish_calendar/sensor.pyi +8 -13
  272. homeassistant-stubs/components/knocki/__init__.pyi +12 -0
  273. homeassistant-stubs/components/knocki/config_flow.pyi +12 -0
  274. homeassistant-stubs/components/knocki/const.pyi +4 -0
  275. homeassistant-stubs/components/knocki/coordinator.pyi +13 -0
  276. homeassistant-stubs/components/knocki/event.pyi +26 -0
  277. homeassistant-stubs/components/knx/config_flow.pyi +1 -1
  278. homeassistant-stubs/components/knx/device_trigger.pyi +1 -1
  279. homeassistant-stubs/components/knx/trigger.pyi +2 -3
  280. homeassistant-stubs/components/knx/websocket.pyi +1 -0
  281. homeassistant-stubs/components/lacrosse/sensor.pyi +2 -1
  282. homeassistant-stubs/components/lamarzocco/__init__.pyi +8 -3
  283. homeassistant-stubs/components/lamarzocco/binary_sensor.pyi +4 -5
  284. homeassistant-stubs/components/lamarzocco/button.pyi +4 -5
  285. homeassistant-stubs/components/lamarzocco/calendar.pyi +9 -3
  286. homeassistant-stubs/components/lamarzocco/config_flow.pyi +7 -3
  287. homeassistant-stubs/components/lamarzocco/const.pyi +1 -2
  288. homeassistant-stubs/components/lamarzocco/coordinator.pyi +13 -11
  289. homeassistant-stubs/components/lamarzocco/diagnostics.pyi +10 -5
  290. homeassistant-stubs/components/lamarzocco/entity.pyi +3 -3
  291. homeassistant-stubs/components/lamarzocco/number.pyi +9 -13
  292. homeassistant-stubs/components/lamarzocco/select.pyi +13 -7
  293. homeassistant-stubs/components/lamarzocco/sensor.pyi +4 -5
  294. homeassistant-stubs/components/lamarzocco/switch.pyi +21 -6
  295. homeassistant-stubs/components/lamarzocco/update.pyi +5 -10
  296. homeassistant-stubs/components/lawn_mower/__init__.pyi +3 -2
  297. homeassistant-stubs/components/lidarr/__init__.pyi +12 -2
  298. homeassistant-stubs/components/lidarr/config_flow.pyi +2 -1
  299. homeassistant-stubs/components/lidarr/coordinator.pyi +0 -1
  300. homeassistant-stubs/components/lidarr/sensor.pyi +3 -4
  301. homeassistant-stubs/components/lifx/light.pyi +3 -2
  302. homeassistant-stubs/components/light/__init__.pyi +8 -6
  303. homeassistant-stubs/components/light/device_action.pyi +1 -1
  304. homeassistant-stubs/components/litterrobot/__init__.pyi +4 -3
  305. homeassistant-stubs/components/litterrobot/binary_sensor.pyi +2 -4
  306. homeassistant-stubs/components/litterrobot/button.pyi +2 -4
  307. homeassistant-stubs/components/litterrobot/select.pyi +2 -3
  308. homeassistant-stubs/components/litterrobot/sensor.pyi +2 -4
  309. homeassistant-stubs/components/litterrobot/switch.pyi +2 -4
  310. homeassistant-stubs/components/litterrobot/time.pyi +2 -4
  311. homeassistant-stubs/components/litterrobot/update.pyi +3 -4
  312. homeassistant-stubs/components/litterrobot/vacuum.pyi +2 -4
  313. homeassistant-stubs/components/lock/__init__.pyi +4 -3
  314. homeassistant-stubs/components/logbook/processor.pyi +4 -3
  315. homeassistant-stubs/components/london_underground/sensor.pyi +2 -1
  316. homeassistant-stubs/components/mastodon/notify.pyi +2 -1
  317. homeassistant-stubs/components/matrix/notify.pyi +2 -1
  318. homeassistant-stubs/components/matter/binary_sensor.pyi +1 -1
  319. homeassistant-stubs/components/matter/discovery.pyi +3 -3
  320. homeassistant-stubs/components/matter/entity.pyi +8 -1
  321. homeassistant-stubs/components/matter/event.pyi +0 -2
  322. homeassistant-stubs/components/matter/fan.pyi +2 -2
  323. homeassistant-stubs/components/matter/lock.pyi +1 -0
  324. homeassistant-stubs/components/matter/models.pyi +1 -2
  325. homeassistant-stubs/components/matter/number.pyi +24 -0
  326. homeassistant-stubs/components/matter/sensor.pyi +1 -1
  327. homeassistant-stubs/components/media_player/__init__.pyi +3 -2
  328. homeassistant-stubs/components/media_player/intent.pyi +2 -1
  329. homeassistant-stubs/components/mikrotik/__init__.pyi +2 -1
  330. homeassistant-stubs/components/mikrotik/device_tracker.pyi +2 -3
  331. homeassistant-stubs/components/min_max/sensor.pyi +2 -1
  332. homeassistant-stubs/components/modbus/sensor.pyi +2 -2
  333. homeassistant-stubs/components/monzo/config_flow.pyi +5 -1
  334. homeassistant-stubs/components/monzo/coordinator.pyi +1 -0
  335. homeassistant-stubs/components/motionmount/select.pyi +5 -2
  336. homeassistant-stubs/components/mqtt/async_client.pyi +22 -0
  337. homeassistant-stubs/components/mqtt/client.pyi +13 -28
  338. homeassistant-stubs/components/mqtt/climate.pyi +2 -3
  339. homeassistant-stubs/components/mqtt/cover.pyi +2 -3
  340. homeassistant-stubs/components/mqtt/device_tracker.pyi +2 -3
  341. homeassistant-stubs/components/mqtt/event.pyi +2 -3
  342. homeassistant-stubs/components/mqtt/fan.pyi +2 -3
  343. homeassistant-stubs/components/mqtt/humidifier.pyi +2 -3
  344. homeassistant-stubs/components/mqtt/image.pyi +2 -3
  345. homeassistant-stubs/components/mqtt/lawn_mower.pyi +2 -3
  346. homeassistant-stubs/components/mqtt/light/__init__.pyi +1 -1
  347. homeassistant-stubs/components/mqtt/light/schema_basic.pyi +2 -3
  348. homeassistant-stubs/components/mqtt/light/schema_json.pyi +2 -3
  349. homeassistant-stubs/components/mqtt/light/schema_template.pyi +2 -3
  350. homeassistant-stubs/components/mqtt/mixins.pyi +4 -4
  351. homeassistant-stubs/components/mqtt/models.pyi +2 -3
  352. homeassistant-stubs/components/mqtt/number.pyi +2 -3
  353. homeassistant-stubs/components/mqtt/select.pyi +2 -3
  354. homeassistant-stubs/components/mqtt/sensor.pyi +2 -3
  355. homeassistant-stubs/components/mqtt/siren.pyi +2 -3
  356. homeassistant-stubs/components/mqtt/text.pyi +2 -3
  357. homeassistant-stubs/components/mqtt/update.pyi +2 -3
  358. homeassistant-stubs/components/mqtt/util.pyi +23 -2
  359. homeassistant-stubs/components/mqtt/vacuum.pyi +2 -3
  360. homeassistant-stubs/components/mqtt/valve.pyi +2 -3
  361. homeassistant-stubs/components/mqtt/water_heater.pyi +2 -3
  362. homeassistant-stubs/components/mysensors/config_flow.pyi +1 -0
  363. homeassistant-stubs/components/mysensors/sensor.pyi +1 -1
  364. homeassistant-stubs/components/myuplink/__init__.pyi +4 -1
  365. homeassistant-stubs/components/myuplink/binary_sensor.pyi +2 -4
  366. homeassistant-stubs/components/myuplink/diagnostics.pyi +2 -4
  367. homeassistant-stubs/components/myuplink/number.pyi +2 -4
  368. homeassistant-stubs/components/myuplink/sensor.pyi +3 -5
  369. homeassistant-stubs/components/myuplink/switch.pyi +2 -4
  370. homeassistant-stubs/components/myuplink/update.pyi +2 -4
  371. homeassistant-stubs/components/nam/const.pyi +1 -0
  372. homeassistant-stubs/components/nam/sensor.pyi +1 -1
  373. homeassistant-stubs/components/nanoleaf/__init__.pyi +6 -14
  374. homeassistant-stubs/components/nanoleaf/button.pyi +4 -7
  375. homeassistant-stubs/components/nanoleaf/coordinator.pyi +12 -0
  376. homeassistant-stubs/components/nanoleaf/device_trigger.pyi +1 -0
  377. homeassistant-stubs/components/nanoleaf/diagnostics.pyi +2 -4
  378. homeassistant-stubs/components/nanoleaf/entity.pyi +4 -4
  379. homeassistant-stubs/components/nanoleaf/event.pyi +18 -0
  380. homeassistant-stubs/components/nanoleaf/light.pyi +4 -7
  381. homeassistant-stubs/components/number/__init__.pyi +3 -1
  382. homeassistant-stubs/components/number/const.pyi +2 -1
  383. homeassistant-stubs/components/overkiz/water_heater.pyi +2 -1
  384. homeassistant-stubs/components/overkiz/water_heater_entities/__init__.pyi +2 -0
  385. homeassistant-stubs/components/overkiz/water_heater_entities/atlantic_domestic_hot_water_production_mlb_component.pyi +32 -0
  386. homeassistant-stubs/components/ping/binary_sensor.pyi +2 -8
  387. homeassistant-stubs/components/ping/config_flow.pyi +2 -4
  388. homeassistant-stubs/components/ping/device_tracker.pyi +4 -14
  389. homeassistant-stubs/components/plugwise/button.pyi +20 -0
  390. homeassistant-stubs/components/plugwise/const.pyi +3 -0
  391. homeassistant-stubs/components/plugwise/coordinator.pyi +5 -3
  392. homeassistant-stubs/components/plugwise/number.pyi +2 -4
  393. homeassistant-stubs/components/plugwise/select.pyi +3 -5
  394. homeassistant-stubs/components/prometheus/__init__.pyi +1 -1
  395. homeassistant-stubs/components/proximity/config_flow.pyi +2 -1
  396. homeassistant-stubs/components/radarr/__init__.pyi +14 -2
  397. homeassistant-stubs/components/radarr/binary_sensor.pyi +3 -4
  398. homeassistant-stubs/components/radarr/calendar.pyi +2 -4
  399. homeassistant-stubs/components/radarr/config_flow.pyi +3 -4
  400. homeassistant-stubs/components/radarr/coordinator.pyi +2 -2
  401. homeassistant-stubs/components/radarr/sensor.pyi +2 -4
  402. homeassistant-stubs/components/rainmachine/switch.pyi +1 -0
  403. homeassistant-stubs/components/recorder/const.pyi +3 -1
  404. homeassistant-stubs/components/recorder/core.pyi +2 -2
  405. homeassistant-stubs/components/recorder/db_schema.pyi +3 -1
  406. homeassistant-stubs/components/recorder/purge.pyi +1 -1
  407. homeassistant-stubs/components/recorder/statistics.pyi +7 -4
  408. homeassistant-stubs/components/recorder/table_managers/event_data.pyi +3 -3
  409. homeassistant-stubs/components/recorder/table_managers/event_types.pyi +1 -1
  410. homeassistant-stubs/components/recorder/table_managers/state_attributes.pyi +3 -3
  411. homeassistant-stubs/components/recorder/table_managers/states_meta.pyi +1 -1
  412. homeassistant-stubs/components/recorder/util.pyi +4 -3
  413. homeassistant-stubs/components/remote/__init__.pyi +5 -4
  414. homeassistant-stubs/components/rest/binary_sensor.pyi +2 -1
  415. homeassistant-stubs/components/rest/notify.pyi +2 -1
  416. homeassistant-stubs/components/rest/sensor.pyi +2 -1
  417. homeassistant-stubs/components/rest/switch.pyi +2 -1
  418. homeassistant-stubs/components/rfxtrx/config_flow.pyi +1 -0
  419. homeassistant-stubs/components/roborock/__init__.pyi +30 -0
  420. homeassistant-stubs/components/roborock/binary_sensor.pyi +29 -0
  421. homeassistant-stubs/components/roborock/button.pyi +28 -0
  422. homeassistant-stubs/components/roborock/config_flow.pyi +30 -0
  423. homeassistant-stubs/components/roborock/const.pyi +13 -0
  424. homeassistant-stubs/components/roborock/coordinator.pyi +47 -0
  425. homeassistant-stubs/components/roborock/device.pyi +53 -0
  426. homeassistant-stubs/components/roborock/diagnostics.pyi +13 -0
  427. homeassistant-stubs/components/roborock/image.pyi +37 -0
  428. homeassistant-stubs/components/roborock/models.pyi +27 -0
  429. homeassistant-stubs/components/roborock/number.pyi +35 -0
  430. homeassistant-stubs/components/roborock/select.pyi +37 -0
  431. homeassistant-stubs/components/roborock/sensor.pyi +47 -0
  432. homeassistant-stubs/components/roborock/switch.pyi +37 -0
  433. homeassistant-stubs/components/roborock/time.pyi +38 -0
  434. homeassistant-stubs/components/roborock/vacuum.pyi +39 -0
  435. homeassistant-stubs/components/roku/media_player.pyi +2 -1
  436. homeassistant-stubs/components/schedule/__init__.pyi +5 -5
  437. homeassistant-stubs/components/select/__init__.pyi +3 -1
  438. homeassistant-stubs/components/sensor/__init__.pyi +3 -1
  439. homeassistant-stubs/components/sensor/const.pyi +3 -2
  440. homeassistant-stubs/components/sensor/device_condition.pyi +1 -0
  441. homeassistant-stubs/components/sensor/device_trigger.pyi +1 -0
  442. homeassistant-stubs/components/shelly/__init__.pyi +1 -2
  443. homeassistant-stubs/components/shelly/climate.pyi +3 -0
  444. homeassistant-stubs/components/shelly/const.pyi +0 -1
  445. homeassistant-stubs/components/shelly/coordinator.pyi +3 -2
  446. homeassistant-stubs/components/shelly/switch.pyi +2 -18
  447. homeassistant-stubs/components/shelly/valve.pyi +1 -1
  448. homeassistant-stubs/components/simplisafe/alarm_control_panel.pyi +4 -5
  449. homeassistant-stubs/components/siren/__init__.pyi +4 -3
  450. homeassistant-stubs/components/sql/sensor.pyi +2 -1
  451. homeassistant-stubs/components/starlink/const.pyi +1 -0
  452. homeassistant-stubs/components/starlink/device_tracker.pyi +6 -2
  453. homeassistant-stubs/components/statistics/__init__.pyi +8 -1
  454. homeassistant-stubs/components/statistics/config_flow.pyi +23 -0
  455. homeassistant-stubs/components/statistics/sensor.pyi +7 -2
  456. homeassistant-stubs/components/stream/fmp4utils.pyi +2 -2
  457. homeassistant-stubs/components/stream/worker.pyi +3 -2
  458. homeassistant-stubs/components/streamlabswater/__init__.pyi +1 -6
  459. homeassistant-stubs/components/streamlabswater/config_flow.pyi +0 -1
  460. homeassistant-stubs/components/suez_water/config_flow.pyi +0 -1
  461. homeassistant-stubs/components/suez_water/sensor.pyi +3 -8
  462. homeassistant-stubs/components/switch/__init__.pyi +4 -3
  463. homeassistant-stubs/components/switch/light.pyi +2 -1
  464. homeassistant-stubs/components/switcher_kis/__init__.pyi +3 -0
  465. homeassistant-stubs/components/switcher_kis/switch.pyi +3 -2
  466. homeassistant-stubs/components/synology_dsm/config_flow.pyi +2 -2
  467. homeassistant-stubs/components/synology_dsm/const.pyi +1 -0
  468. homeassistant-stubs/components/synology_dsm/media_source.pyi +2 -1
  469. homeassistant-stubs/components/systemmonitor/config_flow.pyi +0 -2
  470. homeassistant-stubs/components/systemmonitor/sensor.pyi +4 -7
  471. homeassistant-stubs/components/tag/__init__.pyi +4 -5
  472. homeassistant-stubs/components/tami4/__init__.pyi +1 -1
  473. homeassistant-stubs/components/tami4/coordinator.pyi +3 -5
  474. homeassistant-stubs/components/tami4/sensor.pyi +3 -3
  475. homeassistant-stubs/components/tautulli/__init__.pyi +3 -2
  476. homeassistant-stubs/components/tautulli/coordinator.pyi +2 -2
  477. homeassistant-stubs/components/tautulli/sensor.pyi +3 -3
  478. homeassistant-stubs/components/threshold/__init__.pyi +2 -1
  479. homeassistant-stubs/components/threshold/binary_sensor.pyi +11 -3
  480. homeassistant-stubs/components/threshold/config_flow.pyi +8 -0
  481. homeassistant-stubs/components/tibber/__init__.pyi +1 -0
  482. homeassistant-stubs/components/tibber/sensor.pyi +12 -6
  483. homeassistant-stubs/components/tibber/services.pyi +15 -0
  484. homeassistant-stubs/components/time_date/sensor.pyi +3 -3
  485. homeassistant-stubs/components/timer/__init__.pyi +2 -2
  486. homeassistant-stubs/components/todo/__init__.pyi +3 -2
  487. homeassistant-stubs/components/tplink/__init__.pyi +14 -8
  488. homeassistant-stubs/components/tplink/binary_sensor.pyi +22 -0
  489. homeassistant-stubs/components/tplink/button.pyi +22 -0
  490. homeassistant-stubs/components/tplink/climate.pyi +42 -0
  491. homeassistant-stubs/components/tplink/config_flow.pyi +5 -5
  492. homeassistant-stubs/components/tplink/const.pyi +5 -1
  493. homeassistant-stubs/components/tplink/coordinator.pyi +2 -2
  494. homeassistant-stubs/components/tplink/diagnostics.pyi +2 -4
  495. homeassistant-stubs/components/tplink/entity.pyi +49 -7
  496. homeassistant-stubs/components/tplink/fan.pyi +31 -0
  497. homeassistant-stubs/components/tplink/light.pyi +20 -19
  498. homeassistant-stubs/components/tplink/number.pyi +27 -0
  499. homeassistant-stubs/components/tplink/select.pyi +26 -0
  500. homeassistant-stubs/components/tplink/sensor.pyi +12 -23
  501. homeassistant-stubs/components/tplink/switch.pyi +12 -35
  502. homeassistant-stubs/components/tplink_omada/controller.pyi +4 -15
  503. homeassistant-stubs/components/tplink_omada/coordinator.pyi +20 -1
  504. homeassistant-stubs/components/tplink_omada/device_tracker.pyi +36 -0
  505. homeassistant-stubs/components/transmission/__init__.pyi +9 -3
  506. homeassistant-stubs/components/transmission/sensor.pyi +2 -2
  507. homeassistant-stubs/components/transmission/switch.pyi +2 -4
  508. homeassistant-stubs/components/trend/__init__.pyi +2 -1
  509. homeassistant-stubs/components/trend/binary_sensor.pyi +6 -2
  510. homeassistant-stubs/components/tts/notify.pyi +2 -1
  511. homeassistant-stubs/components/unifi/config_flow.pyi +1 -1
  512. homeassistant-stubs/components/unifi/sensor.pyi +2 -1
  513. homeassistant-stubs/components/unifi/services.pyi +1 -0
  514. homeassistant-stubs/components/unifiprotect/__init__.pyi +8 -9
  515. homeassistant-stubs/components/unifiprotect/binary_sensor.pyi +29 -21
  516. homeassistant-stubs/components/unifiprotect/button.pyi +8 -9
  517. homeassistant-stubs/components/unifiprotect/camera.pyi +10 -10
  518. homeassistant-stubs/components/unifiprotect/const.pyi +0 -1
  519. homeassistant-stubs/components/unifiprotect/data.pyi +27 -14
  520. homeassistant-stubs/components/unifiprotect/diagnostics.pyi +2 -4
  521. homeassistant-stubs/components/unifiprotect/entity.pyi +27 -17
  522. homeassistant-stubs/components/unifiprotect/light.pyi +3 -6
  523. homeassistant-stubs/components/unifiprotect/lock.pyi +3 -8
  524. homeassistant-stubs/components/unifiprotect/media_player.pyi +4 -8
  525. homeassistant-stubs/components/unifiprotect/media_source.pyi +2 -3
  526. homeassistant-stubs/components/unifiprotect/migrate.pyi +5 -5
  527. homeassistant-stubs/components/unifiprotect/models.pyi +16 -17
  528. homeassistant-stubs/components/unifiprotect/number.pyi +8 -12
  529. homeassistant-stubs/components/unifiprotect/repairs.pyi +5 -3
  530. homeassistant-stubs/components/unifiprotect/select.pyi +9 -11
  531. homeassistant-stubs/components/unifiprotect/sensor.pyi +25 -23
  532. homeassistant-stubs/components/unifiprotect/services.pyi +0 -4
  533. homeassistant-stubs/components/unifiprotect/switch.pyi +15 -24
  534. homeassistant-stubs/components/unifiprotect/text.pyi +8 -11
  535. homeassistant-stubs/components/unifiprotect/utils.pyi +6 -11
  536. homeassistant-stubs/components/unifiprotect/views.pyi +2 -4
  537. homeassistant-stubs/components/update/__init__.pyi +3 -1
  538. homeassistant-stubs/components/vacuum/__init__.pyi +2 -1
  539. homeassistant-stubs/components/vallox/sensor.pyi +5 -1
  540. homeassistant-stubs/components/valve/__init__.pyi +3 -2
  541. homeassistant-stubs/components/water_heater/__init__.pyi +4 -3
  542. homeassistant-stubs/components/weather/__init__.pyi +4 -5
  543. homeassistant-stubs/components/webhook/__init__.pyi +1 -1
  544. homeassistant-stubs/components/webostv/__init__.pyi +7 -0
  545. homeassistant-stubs/components/websocket_api/__init__.pyi +3 -4
  546. homeassistant-stubs/components/websocket_api/decorators.pyi +2 -1
  547. homeassistant-stubs/components/wemo/entity.pyi +2 -2
  548. homeassistant-stubs/components/wemo/fan.pyi +2 -1
  549. homeassistant-stubs/components/withings/coordinator.pyi +3 -3
  550. homeassistant-stubs/components/withings/sensor.pyi +6 -2
  551. homeassistant-stubs/components/worldclock/sensor.pyi +2 -1
  552. homeassistant-stubs/components/xiaomi_ble/sensor.pyi +1 -1
  553. homeassistant-stubs/components/zone/__init__.pyi +3 -3
  554. homeassistant-stubs/components/zwave_js/__init__.pyi +1 -1
  555. homeassistant-stubs/components/zwave_js/api.pyi +1 -5
  556. homeassistant-stubs/components/zwave_js/config_flow.pyi +8 -1
  557. homeassistant-stubs/components/zwave_js/const.pyi +5 -0
  558. homeassistant-stubs/components/zwave_js/discovery.pyi +4 -4
  559. homeassistant-stubs/components/zwave_js/helpers.pyi +2 -2
  560. homeassistant-stubs/components/zwave_js/sensor.pyi +2 -0
  561. homeassistant-stubs/components/zwave_js/services.pyi +3 -2
  562. homeassistant-stubs/config.pyi +4 -5
  563. homeassistant-stubs/config_entries.pyi +6 -3
  564. homeassistant-stubs/const.pyi +9 -3
  565. homeassistant-stubs/core.pyi +15 -10
  566. homeassistant-stubs/data_entry_flow.pyi +12 -2
  567. homeassistant-stubs/exceptions.pyi +6 -5
  568. homeassistant-stubs/helpers/__init__.pyi +0 -5
  569. homeassistant-stubs/helpers/collection.pyi +14 -11
  570. homeassistant-stubs/helpers/condition.pyi +3 -2
  571. homeassistant-stubs/helpers/config_validation.pyi +5 -4
  572. homeassistant-stubs/helpers/deprecation.pyi +10 -0
  573. homeassistant-stubs/helpers/device.pyi +8 -0
  574. homeassistant-stubs/helpers/device_registry.pyi +14 -2
  575. homeassistant-stubs/helpers/entity.pyi +3 -2
  576. homeassistant-stubs/helpers/entity_component.pyi +3 -4
  577. homeassistant-stubs/helpers/entity_platform.pyi +2 -3
  578. homeassistant-stubs/helpers/event.pyi +10 -4
  579. homeassistant-stubs/helpers/frame.pyi +1 -0
  580. homeassistant-stubs/helpers/http.pyi +1 -1
  581. homeassistant-stubs/helpers/intent.pyi +6 -4
  582. homeassistant-stubs/helpers/llm.pyi +17 -3
  583. homeassistant-stubs/helpers/schema_config_entry_flow.pyi +2 -2
  584. homeassistant-stubs/helpers/script.pyi +3 -2
  585. homeassistant-stubs/helpers/selector.pyi +10 -8
  586. homeassistant-stubs/helpers/service.pyi +6 -3
  587. homeassistant-stubs/helpers/template.pyi +8 -6
  588. homeassistant-stubs/helpers/trace.pyi +3 -2
  589. homeassistant-stubs/helpers/typing.pyi +6 -1
  590. homeassistant-stubs/helpers/update_coordinator.pyi +3 -3
  591. homeassistant-stubs/loader.pyi +1 -2
  592. homeassistant-stubs/requirements.pyi +0 -3
  593. homeassistant-stubs/setup.pyi +4 -3
  594. homeassistant-stubs/util/loop.pyi +5 -1
  595. homeassistant-stubs/util/unit_conversion.pyi +7 -1
  596. {homeassistant_stubs-2024.6.3.dist-info → homeassistant_stubs-2024.7.0.dist-info}/METADATA +2 -2
  597. {homeassistant_stubs-2024.6.3.dist-info → homeassistant_stubs-2024.7.0.dist-info}/RECORD +599 -562
  598. homeassistant-stubs/auth/providers/legacy_api_password.pyi +0 -30
  599. homeassistant-stubs/components/air_quality/group.pyi +0 -5
  600. homeassistant-stubs/components/aladdin_connect/api.pyi +0 -12
  601. homeassistant-stubs/components/aladdin_connect/application_credentials.pyi +0 -5
  602. homeassistant-stubs/components/aladdin_connect/const.pyi +0 -3
  603. homeassistant-stubs/components/aladdin_connect/coordinator.pyi +0 -15
  604. homeassistant-stubs/components/aladdin_connect/cover.pyi +0 -25
  605. homeassistant-stubs/components/aladdin_connect/entity.pyi +0 -12
  606. homeassistant-stubs/components/aladdin_connect/sensor.pyi +0 -27
  607. homeassistant-stubs/components/alarm_control_panel/group.pyi +0 -6
  608. homeassistant-stubs/components/climate/group.pyi +0 -6
  609. homeassistant-stubs/components/cover/group.pyi +0 -6
  610. homeassistant-stubs/components/device_tracker/group.pyi +0 -6
  611. homeassistant-stubs/components/fastdotcom/services.pyi +0 -7
  612. homeassistant-stubs/components/lock/group.pyi +0 -6
  613. homeassistant-stubs/components/media_player/group.pyi +0 -6
  614. homeassistant-stubs/components/sensor/group.pyi +0 -5
  615. homeassistant-stubs/components/vacuum/group.pyi +0 -6
  616. homeassistant-stubs/components/water_heater/group.pyi +0 -6
  617. homeassistant-stubs/components/weather/group.pyi +0 -5
  618. homeassistant-stubs/components/wled/binary_sensor.pyi +0 -20
  619. {homeassistant_stubs-2024.6.3.dist-info → homeassistant_stubs-2024.7.0.dist-info}/LICENSE +0 -0
  620. {homeassistant_stubs-2024.6.3.dist-info → homeassistant_stubs-2024.7.0.dist-info}/WHEEL +0 -0
@@ -1,25 +1,19 @@
1
1
  from . import PingConfigEntry as PingConfigEntry
2
- from .const import CONF_IMPORTED_BY as CONF_IMPORTED_BY, CONF_PING_COUNT as CONF_PING_COUNT, DEFAULT_PING_COUNT as DEFAULT_PING_COUNT, DOMAIN as DOMAIN
2
+ from .const import CONF_IMPORTED_BY as CONF_IMPORTED_BY
3
3
  from .coordinator import PingUpdateCoordinator as PingUpdateCoordinator
4
4
  from .entity import PingEntity as PingEntity
5
5
  from _typeshed import Incomplete
6
6
  from homeassistant.components.binary_sensor import BinarySensorDeviceClass as BinarySensorDeviceClass, BinarySensorEntity as BinarySensorEntity
7
- from homeassistant.config_entries import ConfigEntry as ConfigEntry, SOURCE_IMPORT as SOURCE_IMPORT
8
- from homeassistant.const import CONF_HOST as CONF_HOST, CONF_NAME as CONF_NAME
7
+ from homeassistant.config_entries import ConfigEntry as ConfigEntry
9
8
  from homeassistant.core import HomeAssistant as HomeAssistant
10
9
  from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
11
- from homeassistant.helpers.issue_registry import IssueSeverity as IssueSeverity, async_create_issue as async_create_issue
12
- from homeassistant.helpers.typing import ConfigType as ConfigType, DiscoveryInfoType as DiscoveryInfoType
13
10
  from typing import Any
14
11
 
15
- _LOGGER: Incomplete
16
12
  ATTR_ROUND_TRIP_TIME_AVG: str
17
13
  ATTR_ROUND_TRIP_TIME_MAX: str
18
14
  ATTR_ROUND_TRIP_TIME_MDEV: str
19
15
  ATTR_ROUND_TRIP_TIME_MIN: str
20
- PLATFORM_SCHEMA: Incomplete
21
16
 
22
- async def async_setup_platform(hass: HomeAssistant, config: ConfigType, async_add_entities: AddEntitiesCallback, discovery_info: DiscoveryInfoType | None = None) -> None: ...
23
17
  async def async_setup_entry(hass: HomeAssistant, entry: PingConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
24
18
 
25
19
  class PingBinarySensor(PingEntity, BinarySensorEntity):
@@ -1,9 +1,8 @@
1
- from .const import CONF_IMPORTED_BY as CONF_IMPORTED_BY, CONF_PING_COUNT as CONF_PING_COUNT, DEFAULT_PING_COUNT as DEFAULT_PING_COUNT, DOMAIN as DOMAIN
1
+ from .const import CONF_PING_COUNT as CONF_PING_COUNT, DEFAULT_PING_COUNT as DEFAULT_PING_COUNT, DOMAIN as DOMAIN
2
2
  from _typeshed import Incomplete
3
- from collections.abc import Mapping
4
3
  from homeassistant.components.device_tracker import CONF_CONSIDER_HOME as CONF_CONSIDER_HOME, DEFAULT_CONSIDER_HOME as DEFAULT_CONSIDER_HOME
5
4
  from homeassistant.config_entries import ConfigEntry as ConfigEntry, ConfigFlow as ConfigFlow, ConfigFlowResult as ConfigFlowResult, OptionsFlow as OptionsFlow
6
- from homeassistant.const import CONF_HOST as CONF_HOST, CONF_NAME as CONF_NAME
5
+ from homeassistant.const import CONF_HOST as CONF_HOST
7
6
  from homeassistant.core import callback as callback
8
7
  from homeassistant.helpers import selector as selector
9
8
  from homeassistant.util.network import is_ip_address as is_ip_address
@@ -14,7 +13,6 @@ _LOGGER: Incomplete
14
13
  class PingConfigFlow(ConfigFlow, domain=DOMAIN):
15
14
  VERSION: int
16
15
  async def async_step_user(self, user_input: dict[str, Any] | None = None) -> ConfigFlowResult: ...
17
- async def async_step_import(self, import_info: Mapping[str, Any]) -> ConfigFlowResult: ...
18
16
  @staticmethod
19
17
  def async_get_options_flow(config_entry: ConfigEntry) -> OptionsFlow: ...
20
18
 
@@ -1,24 +1,14 @@
1
1
  from . import PingConfigEntry as PingConfigEntry
2
- from .const import CONF_IMPORTED_BY as CONF_IMPORTED_BY, CONF_PING_COUNT as CONF_PING_COUNT, DOMAIN as DOMAIN
2
+ from .const import CONF_IMPORTED_BY as CONF_IMPORTED_BY
3
3
  from .coordinator import PingUpdateCoordinator as PingUpdateCoordinator
4
4
  from _typeshed import Incomplete
5
5
  from datetime import datetime
6
- from homeassistant.components.device_tracker import AsyncSeeCallback as AsyncSeeCallback, CONF_CONSIDER_HOME as CONF_CONSIDER_HOME, DEFAULT_CONSIDER_HOME as DEFAULT_CONSIDER_HOME, ScannerEntity as ScannerEntity, SourceType as SourceType
7
- from homeassistant.components.device_tracker.legacy import YAML_DEVICES as YAML_DEVICES, remove_device_from_config as remove_device_from_config
8
- from homeassistant.config import load_yaml_config_file as load_yaml_config_file
9
- from homeassistant.config_entries import ConfigEntry as ConfigEntry, SOURCE_IMPORT as SOURCE_IMPORT
10
- from homeassistant.const import CONF_HOST as CONF_HOST, CONF_HOSTS as CONF_HOSTS, CONF_NAME as CONF_NAME, EVENT_HOMEASSISTANT_STARTED as EVENT_HOMEASSISTANT_STARTED
11
- from homeassistant.core import Event as Event, HomeAssistant as HomeAssistant
12
- from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
6
+ from homeassistant.components.device_tracker import CONF_CONSIDER_HOME as CONF_CONSIDER_HOME, DEFAULT_CONSIDER_HOME as DEFAULT_CONSIDER_HOME, ScannerEntity as ScannerEntity, SourceType as SourceType
7
+ from homeassistant.config_entries import ConfigEntry as ConfigEntry
8
+ from homeassistant.core import HomeAssistant as HomeAssistant
13
9
  from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
14
- from homeassistant.helpers.issue_registry import IssueSeverity as IssueSeverity, async_create_issue as async_create_issue
15
- from homeassistant.helpers.typing import ConfigType as ConfigType, DiscoveryInfoType as DiscoveryInfoType
16
10
  from homeassistant.helpers.update_coordinator import CoordinatorEntity as CoordinatorEntity
17
11
 
18
- _LOGGER: Incomplete
19
- PLATFORM_SCHEMA: Incomplete
20
-
21
- async def async_setup_scanner(hass: HomeAssistant, config: ConfigType, async_see: AsyncSeeCallback, discovery_info: DiscoveryInfoType | None = None) -> bool: ...
22
12
  async def async_setup_entry(hass: HomeAssistant, entry: PingConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
23
13
 
24
14
  class PingDeviceTracker(CoordinatorEntity[PingUpdateCoordinator], ScannerEntity):
@@ -0,0 +1,20 @@
1
+ from . import PlugwiseConfigEntry as PlugwiseConfigEntry
2
+ from .const import GATEWAY_ID as GATEWAY_ID, REBOOT as REBOOT
3
+ from .coordinator import PlugwiseDataUpdateCoordinator as PlugwiseDataUpdateCoordinator
4
+ from .entity import PlugwiseEntity as PlugwiseEntity
5
+ from .util import plugwise_command as plugwise_command
6
+ from _typeshed import Incomplete
7
+ from homeassistant.components.button import ButtonDeviceClass as ButtonDeviceClass, ButtonEntity as ButtonEntity
8
+ from homeassistant.const import EntityCategory as EntityCategory
9
+ from homeassistant.core import HomeAssistant as HomeAssistant
10
+ from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
11
+
12
+ async def async_setup_entry(hass: HomeAssistant, entry: PlugwiseConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
13
+
14
+ class PlugwiseButtonEntity(PlugwiseEntity, ButtonEntity):
15
+ _attr_device_class: Incomplete
16
+ _attr_entity_category: Incomplete
17
+ _attr_translation_key: Incomplete
18
+ _attr_unique_id: Incomplete
19
+ def __init__(self, coordinator: PlugwiseDataUpdateCoordinator, device_id: str) -> None: ...
20
+ async def async_press(self) -> None: ...
@@ -10,7 +10,10 @@ FLOW_SMILE: Final[str]
10
10
  FLOW_STRETCH: Final[str]
11
11
  FLOW_TYPE: Final[str]
12
12
  GATEWAY: Final[str]
13
+ GATEWAY_ID: Final[str]
14
+ LOCATION: Final[str]
13
15
  PW_TYPE: Final[str]
16
+ REBOOT: Final[str]
14
17
  SMILE: Final[str]
15
18
  STRETCH: Final[str]
16
19
  STRETCH_USERNAME: Final[str]
@@ -1,4 +1,4 @@
1
- from .const import DEFAULT_PORT as DEFAULT_PORT, DEFAULT_USERNAME as DEFAULT_USERNAME, DOMAIN as DOMAIN, LOGGER as LOGGER
1
+ from .const import DEFAULT_PORT as DEFAULT_PORT, DEFAULT_USERNAME as DEFAULT_USERNAME, DOMAIN as DOMAIN, GATEWAY_ID as GATEWAY_ID, LOGGER as LOGGER
2
2
  from _typeshed import Incomplete
3
3
  from homeassistant.config_entries import ConfigEntry as ConfigEntry
4
4
  from homeassistant.const import CONF_HOST as CONF_HOST, CONF_PASSWORD as CONF_PASSWORD, CONF_PORT as CONF_PORT, CONF_USERNAME as CONF_USERNAME
@@ -13,8 +13,10 @@ class PlugwiseDataUpdateCoordinator(DataUpdateCoordinator[PlugwiseData]):
13
13
  _connected: bool
14
14
  config_entry: ConfigEntry
15
15
  api: Incomplete
16
- device_list: Incomplete
17
- new_devices: bool
16
+ _current_devices: Incomplete
17
+ new_devices: Incomplete
18
18
  def __init__(self, hass: HomeAssistant) -> None: ...
19
19
  async def _connect(self) -> None: ...
20
20
  async def _async_update_data(self) -> PlugwiseData: ...
21
+ def _async_add_remove_devices(self, data: PlugwiseData, entry: ConfigEntry) -> None: ...
22
+ def _async_remove_devices(self, data: PlugwiseData, entry: ConfigEntry) -> None: ...
@@ -2,20 +2,18 @@ from . import PlugwiseConfigEntry as PlugwiseConfigEntry
2
2
  from .const import NumberType as NumberType
3
3
  from .coordinator import PlugwiseDataUpdateCoordinator as PlugwiseDataUpdateCoordinator
4
4
  from .entity import PlugwiseEntity as PlugwiseEntity
5
+ from .util import plugwise_command as plugwise_command
5
6
  from _typeshed import Incomplete
6
- from collections.abc import Awaitable, Callable as Callable
7
7
  from dataclasses import dataclass
8
8
  from homeassistant.components.number import NumberDeviceClass as NumberDeviceClass, NumberEntity as NumberEntity, NumberEntityDescription as NumberEntityDescription, NumberMode as NumberMode
9
9
  from homeassistant.const import EntityCategory as EntityCategory, UnitOfTemperature as UnitOfTemperature
10
10
  from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
11
11
  from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
12
- from plugwise import Smile as Smile
13
12
 
14
13
  @dataclass(frozen=True, kw_only=True)
15
14
  class PlugwiseNumberEntityDescription(NumberEntityDescription):
16
- command: Callable[[Smile, str, str, float], Awaitable[None]]
17
15
  key: NumberType
18
- def __init__(self, *, key, device_class, entity_category, entity_registry_enabled_default, entity_registry_visible_default, force_update, icon, has_entity_name, name, translation_key, translation_placeholders, unit_of_measurement, max_value, min_value, mode, native_max_value, native_min_value, native_step, native_unit_of_measurement, step, command) -> None: ...
16
+ def __init__(self, *, key, device_class, entity_category, entity_registry_enabled_default, entity_registry_visible_default, force_update, icon, has_entity_name, name, translation_key, translation_placeholders, unit_of_measurement, max_value, min_value, mode, native_max_value, native_min_value, native_step, native_unit_of_measurement, step) -> None: ...
19
17
 
20
18
  NUMBER_TYPES: Incomplete
21
19
 
@@ -1,22 +1,20 @@
1
1
  from . import PlugwiseConfigEntry as PlugwiseConfigEntry
2
- from .const import SelectOptionsType as SelectOptionsType, SelectType as SelectType
2
+ from .const import LOCATION as LOCATION, SelectOptionsType as SelectOptionsType, SelectType as SelectType
3
3
  from .coordinator import PlugwiseDataUpdateCoordinator as PlugwiseDataUpdateCoordinator
4
4
  from .entity import PlugwiseEntity as PlugwiseEntity
5
+ from .util import plugwise_command as plugwise_command
5
6
  from _typeshed import Incomplete
6
- from collections.abc import Awaitable, Callable as Callable
7
7
  from dataclasses import dataclass
8
8
  from homeassistant.components.select import SelectEntity as SelectEntity, SelectEntityDescription as SelectEntityDescription
9
9
  from homeassistant.const import EntityCategory as EntityCategory, STATE_ON as STATE_ON
10
10
  from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
11
11
  from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
12
- from plugwise import Smile as Smile
13
12
 
14
13
  @dataclass(frozen=True, kw_only=True)
15
14
  class PlugwiseSelectEntityDescription(SelectEntityDescription):
16
- command: Callable[[Smile, str, str], Awaitable[None]]
17
15
  key: SelectType
18
16
  options_key: SelectOptionsType
19
- def __init__(self, *, key, device_class, entity_category, entity_registry_enabled_default, entity_registry_visible_default, force_update, icon, has_entity_name, name, translation_key, translation_placeholders, unit_of_measurement, options, command, options_key) -> None: ...
17
+ def __init__(self, *, key, device_class, entity_category, entity_registry_enabled_default, entity_registry_visible_default, force_update, icon, has_entity_name, name, translation_key, translation_placeholders, unit_of_measurement, options, options_key) -> None: ...
20
18
 
21
19
  SELECT_TYPES: Incomplete
22
20
 
@@ -3,7 +3,7 @@ from aiohttp import web
3
3
  from collections.abc import Callable as Callable
4
4
  from homeassistant.components.climate import ATTR_CURRENT_TEMPERATURE as ATTR_CURRENT_TEMPERATURE, ATTR_HVAC_ACTION as ATTR_HVAC_ACTION, ATTR_HVAC_MODES as ATTR_HVAC_MODES, ATTR_TARGET_TEMP_HIGH as ATTR_TARGET_TEMP_HIGH, ATTR_TARGET_TEMP_LOW as ATTR_TARGET_TEMP_LOW, HVACAction as HVACAction
5
5
  from homeassistant.components.cover import ATTR_CURRENT_POSITION as ATTR_CURRENT_POSITION, ATTR_CURRENT_TILT_POSITION as ATTR_CURRENT_TILT_POSITION
6
- from homeassistant.components.http import HomeAssistantView as HomeAssistantView
6
+ from homeassistant.components.http import HomeAssistantView as HomeAssistantView, KEY_HASS as KEY_HASS
7
7
  from homeassistant.components.humidifier import ATTR_AVAILABLE_MODES as ATTR_AVAILABLE_MODES, ATTR_HUMIDITY as ATTR_HUMIDITY
8
8
  from homeassistant.components.light import ATTR_BRIGHTNESS as ATTR_BRIGHTNESS
9
9
  from homeassistant.components.sensor import SensorDeviceClass as SensorDeviceClass
@@ -5,12 +5,13 @@ from homeassistant.config_entries import ConfigEntry as ConfigEntry, ConfigFlow
5
5
  from homeassistant.const import CONF_ZONE as CONF_ZONE, UnitOfLength as UnitOfLength
6
6
  from homeassistant.core import State as State, callback as callback
7
7
  from homeassistant.helpers.selector import EntitySelector as EntitySelector, EntitySelectorConfig as EntitySelectorConfig, NumberSelector as NumberSelector, NumberSelectorConfig as NumberSelectorConfig
8
+ from homeassistant.helpers.typing import VolDictType as VolDictType
8
9
  from homeassistant.util import slugify as slugify
9
10
  from typing import Any
10
11
 
11
12
  RESULT_SUCCESS: str
12
13
 
13
- def _base_schema(user_input: dict[str, Any]) -> vol.Schema: ...
14
+ def _base_schema(user_input: dict[str, Any]) -> VolDictType: ...
14
15
 
15
16
  class ProximityConfigFlow(ConfigFlow, domain=DOMAIN):
16
17
  VERSION: int
@@ -1,6 +1,7 @@
1
1
  from .const import DEFAULT_NAME as DEFAULT_NAME, DOMAIN as DOMAIN
2
2
  from .coordinator import CalendarUpdateCoordinator as CalendarUpdateCoordinator, DiskSpaceDataUpdateCoordinator as DiskSpaceDataUpdateCoordinator, HealthDataUpdateCoordinator as HealthDataUpdateCoordinator, MoviesDataUpdateCoordinator as MoviesDataUpdateCoordinator, QueueDataUpdateCoordinator as QueueDataUpdateCoordinator, RadarrDataUpdateCoordinator as RadarrDataUpdateCoordinator, StatusDataUpdateCoordinator as StatusDataUpdateCoordinator, T as T
3
3
  from _typeshed import Incomplete
4
+ from dataclasses import dataclass
4
5
  from homeassistant.config_entries import ConfigEntry as ConfigEntry
5
6
  from homeassistant.const import ATTR_SW_VERSION as ATTR_SW_VERSION, CONF_API_KEY as CONF_API_KEY, CONF_URL as CONF_URL, CONF_VERIFY_SSL as CONF_VERIFY_SSL, Platform as Platform
6
7
  from homeassistant.core import HomeAssistant as HomeAssistant
@@ -10,9 +11,20 @@ from homeassistant.helpers.entity import EntityDescription as EntityDescription
10
11
  from homeassistant.helpers.update_coordinator import CoordinatorEntity as CoordinatorEntity
11
12
 
12
13
  PLATFORMS: Incomplete
14
+ RadarrConfigEntry = ConfigEntry[RadarrData]
13
15
 
14
- async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: ...
15
- async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: ...
16
+ @dataclass(kw_only=True, slots=True)
17
+ class RadarrData:
18
+ calendar: CalendarUpdateCoordinator
19
+ disk_space: DiskSpaceDataUpdateCoordinator
20
+ health: HealthDataUpdateCoordinator
21
+ movie: MoviesDataUpdateCoordinator
22
+ queue: QueueDataUpdateCoordinator
23
+ status: StatusDataUpdateCoordinator
24
+ def __init__(self, *, calendar, disk_space, health, movie, queue, status) -> None: ...
25
+
26
+ async def async_setup_entry(hass: HomeAssistant, entry: RadarrConfigEntry) -> bool: ...
27
+ async def async_unload_entry(hass: HomeAssistant, entry: RadarrConfigEntry) -> bool: ...
16
28
 
17
29
  class RadarrEntity(CoordinatorEntity[RadarrDataUpdateCoordinator[T]]):
18
30
  _attr_has_entity_name: bool
@@ -1,16 +1,15 @@
1
- from . import RadarrEntity as RadarrEntity
2
- from .const import DOMAIN as DOMAIN, HEALTH_ISSUES as HEALTH_ISSUES
1
+ from . import RadarrConfigEntry as RadarrConfigEntry, RadarrEntity as RadarrEntity
2
+ from .const import HEALTH_ISSUES as HEALTH_ISSUES
3
3
  from _typeshed import Incomplete
4
4
  from aiopyarr import Health
5
5
  from homeassistant.components.binary_sensor import BinarySensorDeviceClass as BinarySensorDeviceClass, BinarySensorEntity as BinarySensorEntity, BinarySensorEntityDescription as BinarySensorEntityDescription
6
- from homeassistant.config_entries import ConfigEntry as ConfigEntry
7
6
  from homeassistant.const import EntityCategory as EntityCategory
8
7
  from homeassistant.core import HomeAssistant as HomeAssistant
9
8
  from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
10
9
 
11
10
  BINARY_SENSOR_TYPE: Incomplete
12
11
 
13
- async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
12
+ async def async_setup_entry(hass: HomeAssistant, entry: RadarrConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
14
13
 
15
14
  class RadarrBinarySensor(RadarrEntity[list[Health]], BinarySensorEntity):
16
15
  @property
@@ -1,17 +1,15 @@
1
- from . import RadarrEntity as RadarrEntity
2
- from .const import DOMAIN as DOMAIN
1
+ from . import RadarrConfigEntry as RadarrConfigEntry, RadarrEntity as RadarrEntity
3
2
  from .coordinator import CalendarUpdateCoordinator as CalendarUpdateCoordinator, RadarrEvent as RadarrEvent
4
3
  from _typeshed import Incomplete
5
4
  from datetime import datetime
6
5
  from homeassistant.components.calendar import CalendarEntity as CalendarEntity, CalendarEvent as CalendarEvent
7
- from homeassistant.config_entries import ConfigEntry as ConfigEntry
8
6
  from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
9
7
  from homeassistant.helpers.entity import EntityDescription as EntityDescription
10
8
  from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
11
9
 
12
10
  CALENDAR_TYPE: Incomplete
13
11
 
14
- async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
12
+ async def async_setup_entry(hass: HomeAssistant, entry: RadarrConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
15
13
 
16
14
  class RadarrCalendarEntity(RadarrEntity, CalendarEntity):
17
15
  coordinator: CalendarUpdateCoordinator
@@ -1,7 +1,7 @@
1
+ from . import RadarrConfigEntry as RadarrConfigEntry
1
2
  from .const import DEFAULT_NAME as DEFAULT_NAME, DEFAULT_URL as DEFAULT_URL, DOMAIN as DOMAIN
2
- from _typeshed import Incomplete
3
3
  from collections.abc import Mapping
4
- from homeassistant.config_entries import ConfigEntry as ConfigEntry, ConfigFlow as ConfigFlow, ConfigFlowResult as ConfigFlowResult
4
+ from homeassistant.config_entries import ConfigFlow as ConfigFlow, ConfigFlowResult as ConfigFlowResult
5
5
  from homeassistant.const import CONF_API_KEY as CONF_API_KEY, CONF_URL as CONF_URL, CONF_VERIFY_SSL as CONF_VERIFY_SSL
6
6
  from homeassistant.core import HomeAssistant as HomeAssistant
7
7
  from homeassistant.helpers.aiohttp_client import async_get_clientsession as async_get_clientsession
@@ -9,8 +9,7 @@ from typing import Any
9
9
 
10
10
  class RadarrConfigFlow(ConfigFlow, domain=DOMAIN):
11
11
  VERSION: int
12
- entry: Incomplete
13
- def __init__(self) -> None: ...
12
+ entry: RadarrConfigEntry | None
14
13
  async def async_step_reauth(self, _: Mapping[str, Any]) -> ConfigFlowResult: ...
15
14
  async def async_step_reauth_confirm(self, user_input: dict[str, str] | None = None) -> ConfigFlowResult: ...
16
15
  async def async_step_user(self, user_input: dict[str, Any] | None = None) -> ConfigFlowResult: ...
@@ -1,4 +1,5 @@
1
1
  import abc
2
+ from . import RadarrConfigEntry as RadarrConfigEntry
2
3
  from .const import DEFAULT_MAX_RECORDS as DEFAULT_MAX_RECORDS, DOMAIN as DOMAIN, LOGGER as LOGGER
3
4
  from _typeshed import Incomplete
4
5
  from abc import ABC, abstractmethod
@@ -8,7 +9,6 @@ from aiopyarr.radarr_client import RadarrClient as RadarrClient
8
9
  from dataclasses import dataclass
9
10
  from datetime import date, datetime
10
11
  from homeassistant.components.calendar import CalendarEvent as CalendarEvent
11
- from homeassistant.config_entries import ConfigEntry as ConfigEntry
12
12
  from homeassistant.core import HomeAssistant as HomeAssistant
13
13
  from homeassistant.exceptions import ConfigEntryAuthFailed as ConfigEntryAuthFailed
14
14
  from homeassistant.helpers.update_coordinator import DataUpdateCoordinator as DataUpdateCoordinator, UpdateFailed as UpdateFailed
@@ -26,7 +26,7 @@ class RadarrEvent(CalendarEvent, RadarrEventMixIn):
26
26
  def __init__(self, release_type, start, end, summary, description, location, uid, recurrence_id, rrule) -> None: ...
27
27
 
28
28
  class RadarrDataUpdateCoordinator(DataUpdateCoordinator[T], ABC, Generic[T], metaclass=abc.ABCMeta):
29
- config_entry: ConfigEntry
29
+ config_entry: RadarrConfigEntry
30
30
  _update_interval: Incomplete
31
31
  api_client: Incomplete
32
32
  host_configuration: Incomplete
@@ -1,13 +1,11 @@
1
1
  import dataclasses
2
- from . import RadarrEntity as RadarrEntity
3
- from .const import DOMAIN as DOMAIN
2
+ from . import RadarrConfigEntry as RadarrConfigEntry, RadarrEntity as RadarrEntity
4
3
  from .coordinator import RadarrDataUpdateCoordinator as RadarrDataUpdateCoordinator, T as T
5
4
  from _typeshed import Incomplete
6
5
  from aiopyarr import Diskspace as Diskspace, RootFolder as RootFolder
7
6
  from collections.abc import Callable as Callable
8
7
  from datetime import datetime
9
8
  from homeassistant.components.sensor import SensorDeviceClass as SensorDeviceClass, SensorEntity as SensorEntity, SensorEntityDescription as SensorEntityDescription, SensorStateClass as SensorStateClass
10
- from homeassistant.config_entries import ConfigEntry as ConfigEntry
11
9
  from homeassistant.const import EntityCategory as EntityCategory, UnitOfInformation as UnitOfInformation
12
10
  from homeassistant.core import HomeAssistant as HomeAssistant
13
11
  from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
@@ -30,7 +28,7 @@ SENSOR_TYPES: dict[str, RadarrSensorEntityDescription[Any]]
30
28
  BYTE_SIZES: Incomplete
31
29
  PARALLEL_UPDATES: int
32
30
 
33
- async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
31
+ async def async_setup_entry(hass: HomeAssistant, entry: RadarrConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
34
32
 
35
33
  class RadarrSensor(RadarrEntity[T], SensorEntity):
36
34
  coordinator: RadarrDataUpdateCoordinator[T]
@@ -12,6 +12,7 @@ from homeassistant.core import HomeAssistant as HomeAssistant, callback as callb
12
12
  from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
13
13
  from homeassistant.helpers import entity_platform as entity_platform
14
14
  from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
15
+ from homeassistant.helpers.typing import VolDictType as VolDictType
15
16
  from typing import Any, Concatenate
16
17
 
17
18
  ATTR_ACTIVITY_TYPE: str
@@ -1,9 +1,11 @@
1
+ from .core import Recorder as Recorder
1
2
  from _typeshed import Incomplete
2
3
  from enum import StrEnum
3
4
  from homeassistant.const import ATTR_ATTRIBUTION as ATTR_ATTRIBUTION, ATTR_RESTORED as ATTR_RESTORED, ATTR_SUPPORTED_FEATURES as ATTR_SUPPORTED_FEATURES, EVENT_RECORDER_5MIN_STATISTICS_GENERATED as EVENT_RECORDER_5MIN_STATISTICS_GENERATED, EVENT_RECORDER_HOURLY_STATISTICS_GENERATED as EVENT_RECORDER_HOURLY_STATISTICS_GENERATED
4
5
  from homeassistant.helpers.json import JSON_DUMP as JSON_DUMP
6
+ from homeassistant.util.hass_dict import HassKey as HassKey
5
7
 
6
- DATA_INSTANCE: str
8
+ DATA_INSTANCE: HassKey[Recorder]
7
9
  SQLITE_URL_PREFIX: str
8
10
  MARIADB_URL_PREFIX: str
9
11
  MARIADB_PYMYSQL_URL_PREFIX: str
@@ -4,7 +4,7 @@ from . import migration as migration, statistics as statistics
4
4
  from .const import DB_WORKER_PREFIX as DB_WORKER_PREFIX, DOMAIN as DOMAIN, ESTIMATED_QUEUE_ITEM_SIZE as ESTIMATED_QUEUE_ITEM_SIZE, KEEPALIVE_TIME as KEEPALIVE_TIME, LAST_REPORTED_SCHEMA_VERSION as LAST_REPORTED_SCHEMA_VERSION, LEGACY_STATES_EVENT_ID_INDEX_SCHEMA_VERSION as LEGACY_STATES_EVENT_ID_INDEX_SCHEMA_VERSION, MARIADB_PYMYSQL_URL_PREFIX as MARIADB_PYMYSQL_URL_PREFIX, MARIADB_URL_PREFIX as MARIADB_URL_PREFIX, MAX_QUEUE_BACKLOG_MIN_VALUE as MAX_QUEUE_BACKLOG_MIN_VALUE, MYSQLDB_PYMYSQL_URL_PREFIX as MYSQLDB_PYMYSQL_URL_PREFIX, MYSQLDB_URL_PREFIX as MYSQLDB_URL_PREFIX, QUEUE_PERCENTAGE_ALLOWED_AVAILABLE_MEMORY as QUEUE_PERCENTAGE_ALLOWED_AVAILABLE_MEMORY, SQLITE_MAX_BIND_VARS as SQLITE_MAX_BIND_VARS, SQLITE_URL_PREFIX as SQLITE_URL_PREFIX, STATISTICS_ROWS_SCHEMA_VERSION as STATISTICS_ROWS_SCHEMA_VERSION, SupportedDialect as SupportedDialect
5
5
  from .db_schema import Base as Base, EventData as EventData, EventTypes as EventTypes, Events as Events, LEGACY_STATES_ENTITY_ID_LAST_UPDATED_INDEX as LEGACY_STATES_ENTITY_ID_LAST_UPDATED_INDEX, LEGACY_STATES_EVENT_ID_INDEX as LEGACY_STATES_EVENT_ID_INDEX, SCHEMA_VERSION as SCHEMA_VERSION, StateAttributes as StateAttributes, States as States, StatesMeta as StatesMeta, Statistics as Statistics, StatisticsShortTerm as StatisticsShortTerm, TABLE_STATES as TABLE_STATES
6
6
  from .executor import DBInterruptibleThreadPoolExecutor as DBInterruptibleThreadPoolExecutor
7
- from .migration import EntityIDMigration as EntityIDMigration, EventTypeIDMigration as EventTypeIDMigration, EventsContextIDMigration as EventsContextIDMigration, StatesContextIDMigration as StatesContextIDMigration
7
+ from .migration import BaseRunTimeMigration as BaseRunTimeMigration, EntityIDMigration as EntityIDMigration, EventTypeIDMigration as EventTypeIDMigration, EventsContextIDMigration as EventsContextIDMigration, StatesContextIDMigration as StatesContextIDMigration
8
8
  from .models import DatabaseEngine as DatabaseEngine, StatisticData as StatisticData, StatisticMetaData as StatisticMetaData, UnsupportedDialect as UnsupportedDialect
9
9
  from .pool import MutexPool as MutexPool, POOL_SIZE as POOL_SIZE, RecorderPool as RecorderPool
10
10
  from .queries import get_migration_changes as get_migration_changes
@@ -101,7 +101,7 @@ class Recorder(threading.Thread):
101
101
  _dialect_name: Incomplete
102
102
  enabled: bool
103
103
  max_bind_vars: Incomplete
104
- def __init__(self, hass: HomeAssistant, auto_purge: bool, auto_repack: bool, keep_days: int, commit_interval: int, uri: str, db_max_retries: int, db_retry_wait: int, entity_filter: Callable[[str], bool], exclude_event_types: set[EventType[Any] | str]) -> None: ...
104
+ def __init__(self, hass: HomeAssistant, auto_purge: bool, auto_repack: bool, keep_days: int, commit_interval: int, uri: str, db_max_retries: int, db_retry_wait: int, entity_filter: Callable[[str], bool] | None, exclude_event_types: set[EventType[Any] | str]) -> None: ...
105
105
  @property
106
106
  def backlog(self) -> int: ...
107
107
  @cached_property
@@ -3,7 +3,8 @@ from .models import StatisticData as StatisticData, StatisticDataTimestamp as St
3
3
  from _typeshed import Incomplete
4
4
  from collections.abc import Callable as Callable
5
5
  from datetime import datetime, timedelta
6
- from homeassistant.const import MAX_LENGTH_EVENT_EVENT_TYPE as MAX_LENGTH_EVENT_EVENT_TYPE, MAX_LENGTH_STATE_ENTITY_ID as MAX_LENGTH_STATE_ENTITY_ID, MAX_LENGTH_STATE_STATE as MAX_LENGTH_STATE_STATE
6
+ from homeassistant.components.sensor import ATTR_STATE_CLASS as ATTR_STATE_CLASS
7
+ from homeassistant.const import ATTR_DEVICE_CLASS as ATTR_DEVICE_CLASS, ATTR_FRIENDLY_NAME as ATTR_FRIENDLY_NAME, ATTR_UNIT_OF_MEASUREMENT as ATTR_UNIT_OF_MEASUREMENT, MATCH_ALL as MATCH_ALL, MAX_LENGTH_EVENT_EVENT_TYPE as MAX_LENGTH_EVENT_EVENT_TYPE, MAX_LENGTH_STATE_ENTITY_ID as MAX_LENGTH_STATE_ENTITY_ID, MAX_LENGTH_STATE_STATE as MAX_LENGTH_STATE_STATE
7
8
  from homeassistant.core import Context as Context, Event as Event, EventOrigin as EventOrigin, EventStateChangedData as EventStateChangedData, State as State
8
9
  from homeassistant.helpers.json import JSON_DUMP as JSON_DUMP, json_bytes as json_bytes, json_bytes_strip_null as json_bytes_strip_null
9
10
  from homeassistant.util.json import JSON_DECODE_EXCEPTIONS as JSON_DECODE_EXCEPTIONS, json_loads as json_loads, json_loads_object as json_loads_object
@@ -48,6 +49,7 @@ MYSQL_COLLATE: str
48
49
  MYSQL_DEFAULT_CHARSET: str
49
50
  MYSQL_ENGINE: str
50
51
  _DEFAULT_TABLE_ARGS: Incomplete
52
+ _MATCH_ALL_KEEP: Incomplete
51
53
 
52
54
  class UnusedDateTime(DateTime): ...
53
55
  class Unused(CHAR): ...
@@ -41,4 +41,4 @@ def _purge_old_entity_ids(instance: Recorder, session: Session) -> None: ...
41
41
  def _purge_filtered_data(instance: Recorder, session: Session) -> bool: ...
42
42
  def _purge_filtered_states(instance: Recorder, session: Session, metadata_ids_to_purge: list[str], database_engine: DatabaseEngine, purge_before_timestamp: float) -> bool: ...
43
43
  def _purge_filtered_events(instance: Recorder, session: Session, excluded_event_type_ids: list[int], purge_before_timestamp: float) -> bool: ...
44
- def purge_entity_data(instance: Recorder, entity_filter: Callable[[str], bool], purge_before: datetime) -> bool: ...
44
+ def purge_entity_data(instance: Recorder, entity_filter: Callable[[str], bool] | None, purge_before: datetime) -> bool: ...
@@ -12,7 +12,7 @@ from homeassistant.core import HomeAssistant as HomeAssistant, callback as callb
12
12
  from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
13
13
  from homeassistant.helpers.singleton import singleton as singleton
14
14
  from homeassistant.helpers.typing import UNDEFINED as UNDEFINED, UndefinedType as UndefinedType
15
- from homeassistant.util.unit_conversion import BaseUnitConverter as BaseUnitConverter, DataRateConverter as DataRateConverter, DistanceConverter as DistanceConverter, DurationConverter as DurationConverter, ElectricCurrentConverter as ElectricCurrentConverter, ElectricPotentialConverter as ElectricPotentialConverter, EnergyConverter as EnergyConverter, InformationConverter as InformationConverter, MassConverter as MassConverter, PowerConverter as PowerConverter, PressureConverter as PressureConverter, SpeedConverter as SpeedConverter, TemperatureConverter as TemperatureConverter, UnitlessRatioConverter as UnitlessRatioConverter, VolumeConverter as VolumeConverter, VolumeFlowRateConverter as VolumeFlowRateConverter
15
+ from homeassistant.util.unit_conversion import BaseUnitConverter as BaseUnitConverter, ConductivityConverter as ConductivityConverter, DataRateConverter as DataRateConverter, DistanceConverter as DistanceConverter, DurationConverter as DurationConverter, ElectricCurrentConverter as ElectricCurrentConverter, ElectricPotentialConverter as ElectricPotentialConverter, EnergyConverter as EnergyConverter, InformationConverter as InformationConverter, MassConverter as MassConverter, PowerConverter as PowerConverter, PressureConverter as PressureConverter, SpeedConverter as SpeedConverter, TemperatureConverter as TemperatureConverter, UnitlessRatioConverter as UnitlessRatioConverter, VolumeConverter as VolumeConverter, VolumeFlowRateConverter as VolumeFlowRateConverter
16
16
  from sqlalchemy import Select as Select
17
17
  from sqlalchemy.engine.row import Row
18
18
  from sqlalchemy.orm.session import Session as Session
@@ -53,7 +53,7 @@ class StatisticsRow(BaseStatisticsRow, total=False):
53
53
 
54
54
  def _get_unit_class(unit: str | None) -> str | None: ...
55
55
  def get_display_unit(hass: HomeAssistant, statistic_id: str, statistic_unit: str | None) -> str | None: ...
56
- def _get_statistic_to_display_unit_converter(statistic_unit: str | None, state_unit: str | None, requested_units: dict[str, str] | None) -> Callable[[float | None], float | None] | None: ...
56
+ def _get_statistic_to_display_unit_converter(statistic_unit: str | None, state_unit: str | None, requested_units: dict[str, str] | None, allow_none: bool = True) -> Callable[[float | None], float | None] | Callable[[float], float] | None: ...
57
57
  def _get_display_to_statistic_unit_converter(display_unit: str | None, statistic_unit: str | None) -> Callable[[float], float] | None: ...
58
58
  def _get_unit_converter(from_unit: str, to_unit: str) -> Callable[[float | None], float | None] | None: ...
59
59
  def can_convert_units(from_unit: str | None, to_unit: str | None) -> bool: ...
@@ -132,8 +132,11 @@ def _latest_short_term_statistics_by_ids_stmt(ids: Iterable[int]) -> StatementLa
132
132
  def get_latest_short_term_statistics_with_session(hass: HomeAssistant, session: Session, statistic_ids: set[str], types: set[Literal['last_reset', 'max', 'mean', 'min', 'state', 'sum']], metadata: dict[str, tuple[int, StatisticMetaData]] | None = None) -> dict[str, list[StatisticsRow]]: ...
133
133
  def _generate_statistics_at_time_stmt(table: type[StatisticsBase], metadata_ids: set[int], start_time_ts: float, types: set[Literal['last_reset', 'max', 'mean', 'min', 'state', 'sum']]) -> StatementLambdaElement: ...
134
134
  def _statistics_at_time(session: Session, metadata_ids: set[int], table: type[StatisticsBase], start_time: datetime, types: set[Literal['last_reset', 'max', 'mean', 'min', 'state', 'sum']]) -> Sequence[Row] | None: ...
135
- def _fast_build_sum_list(stats_list: list[Row], table_duration_seconds: float, convert: Callable | None, start_ts_idx: int, sum_idx: int) -> list[StatisticsRow]: ...
136
- def _sorted_statistics_to_dict(hass: HomeAssistant, session: Session, stats: Sequence[Row[Any]], statistic_ids: set[str] | None, _metadata: dict[str, tuple[int, StatisticMetaData]], convert_units: bool, table: type[StatisticsBase], start_time: datetime | None, units: dict[str, str] | None, types: set[Literal['last_reset', 'max', 'mean', 'min', 'state', 'sum']]) -> dict[str, list[StatisticsRow]]: ...
135
+ def _build_sum_converted_stats(db_rows: list[Row], table_duration_seconds: float, start_ts_idx: int, sum_idx: int, convert: Callable[[float | None], float | None] | Callable[[float], float]) -> list[StatisticsRow]: ...
136
+ def _build_sum_stats(db_rows: list[Row], table_duration_seconds: float, start_ts_idx: int, sum_idx: int) -> list[StatisticsRow]: ...
137
+ def _build_stats(db_rows: list[Row], table_duration_seconds: float, start_ts_idx: int, mean_idx: int | None, min_idx: int | None, max_idx: int | None, last_reset_ts_idx: int | None, state_idx: int | None, sum_idx: int | None) -> list[StatisticsRow]: ...
138
+ def _build_converted_stats(db_rows: list[Row], table_duration_seconds: float, start_ts_idx: int, mean_idx: int | None, min_idx: int | None, max_idx: int | None, last_reset_ts_idx: int | None, state_idx: int | None, sum_idx: int | None, convert: Callable[[float | None], float | None] | Callable[[float], float]) -> list[StatisticsRow]: ...
139
+ def _sorted_statistics_to_dict(hass: HomeAssistant, stats: Sequence[Row[Any]], statistic_ids: set[str] | None, _metadata: dict[str, tuple[int, StatisticMetaData]], convert_units: bool, table: type[StatisticsBase], units: dict[str, str] | None, types: set[Literal['last_reset', 'max', 'mean', 'min', 'state', 'sum']]) -> dict[str, list[StatisticsRow]]: ...
137
140
  def validate_statistics(hass: HomeAssistant) -> dict[str, list[ValidationIssue]]: ...
138
141
  def _statistics_exists(session: Session, table: type[StatisticsBase], metadata_id: int, start: datetime) -> int | None: ...
139
142
  def _async_import_statistics(hass: HomeAssistant, metadata: StatisticMetaData, statistics: Iterable[StatisticData]) -> None: ...
@@ -4,9 +4,9 @@ from ..db_schema import EventData as EventData
4
4
  from ..queries import get_shared_event_datas as get_shared_event_datas
5
5
  from ..util import execute_stmt_lambda_element as execute_stmt_lambda_element
6
6
  from _typeshed import Incomplete
7
- from collections.abc import Iterable
7
+ from collections.abc import Collection, Iterable
8
8
  from homeassistant.core import Event as Event
9
- from homeassistant.util.collection import chunked as chunked
9
+ from homeassistant.util.collection import chunked_or_all as chunked_or_all
10
10
  from homeassistant.util.json import JSON_ENCODE_EXCEPTIONS as JSON_ENCODE_EXCEPTIONS
11
11
  from sqlalchemy.orm.session import Session as Session
12
12
 
@@ -20,7 +20,7 @@ class EventDataManager(BaseLRUTableManager[EventData]):
20
20
  def load(self, events: list[Event], session: Session) -> None: ...
21
21
  def get(self, shared_data: str, data_hash: int, session: Session) -> int | None: ...
22
22
  def get_many(self, shared_data_data_hashs: Iterable[tuple[str, int]], session: Session) -> dict[str, int | None]: ...
23
- def _load_from_hashes(self, hashes: Iterable[int], session: Session) -> dict[str, int | None]: ...
23
+ def _load_from_hashes(self, hashes: Collection[int], session: Session) -> dict[str, int | None]: ...
24
24
  def add_pending(self, db_event_data: EventData) -> None: ...
25
25
  def post_commit_pending(self) -> None: ...
26
26
  def evict_purged(self, data_ids: set[int]) -> None: ...
@@ -7,7 +7,7 @@ from ..util import execute_stmt_lambda_element as execute_stmt_lambda_element
7
7
  from _typeshed import Incomplete
8
8
  from collections.abc import Iterable
9
9
  from homeassistant.core import Event as Event
10
- from homeassistant.util.collection import chunked as chunked
10
+ from homeassistant.util.collection import chunked_or_all as chunked_or_all
11
11
  from homeassistant.util.event_type import EventType as EventType
12
12
  from sqlalchemy.orm.session import Session as Session
13
13
  from typing import Any
@@ -4,9 +4,9 @@ from ..db_schema import StateAttributes as StateAttributes
4
4
  from ..queries import get_shared_attributes as get_shared_attributes
5
5
  from ..util import execute_stmt_lambda_element as execute_stmt_lambda_element
6
6
  from _typeshed import Incomplete
7
- from collections.abc import Iterable
7
+ from collections.abc import Collection, Iterable
8
8
  from homeassistant.core import Event as Event, EventStateChangedData as EventStateChangedData
9
- from homeassistant.util.collection import chunked as chunked
9
+ from homeassistant.util.collection import chunked_or_all as chunked_or_all
10
10
  from homeassistant.util.json import JSON_ENCODE_EXCEPTIONS as JSON_ENCODE_EXCEPTIONS
11
11
  from sqlalchemy.orm.session import Session as Session
12
12
 
@@ -20,7 +20,7 @@ class StateAttributesManager(BaseLRUTableManager[StateAttributes]):
20
20
  def load(self, events: list[Event[EventStateChangedData]], session: Session) -> None: ...
21
21
  def get(self, shared_attr: str, data_hash: int, session: Session) -> int | None: ...
22
22
  def get_many(self, shared_attrs_data_hashes: Iterable[tuple[str, int]], session: Session) -> dict[str, int | None]: ...
23
- def _load_from_hashes(self, hashes: Iterable[int], session: Session) -> dict[str, int | None]: ...
23
+ def _load_from_hashes(self, hashes: Collection[int], session: Session) -> dict[str, int | None]: ...
24
24
  def add_pending(self, db_state_attributes: StateAttributes) -> None: ...
25
25
  def post_commit_pending(self) -> None: ...
26
26
  def evict_purged(self, attributes_ids: set[int]) -> None: ...
@@ -5,7 +5,7 @@ from ..queries import find_all_states_metadata_ids as find_all_states_metadata_i
5
5
  from ..util import execute_stmt_lambda_element as execute_stmt_lambda_element
6
6
  from collections.abc import Iterable
7
7
  from homeassistant.core import Event as Event, EventStateChangedData as EventStateChangedData
8
- from homeassistant.util.collection import chunked as chunked
8
+ from homeassistant.util.collection import chunked_or_all as chunked_or_all
9
9
  from sqlalchemy.orm.session import Session as Session
10
10
 
11
11
  CACHE_SIZE: int
@@ -4,7 +4,7 @@ from .db_schema import RecorderRuns as RecorderRuns, TABLES_TO_CHECK as TABLES_T
4
4
  from .models import DatabaseEngine as DatabaseEngine, DatabaseOptimizer as DatabaseOptimizer, StatisticPeriod as StatisticPeriod, UnsupportedDialect as UnsupportedDialect, process_timestamp as process_timestamp
5
5
  from _typeshed import Incomplete
6
6
  from awesomeversion import AwesomeVersion
7
- from collections.abc import Callable, Generator, Sequence
7
+ from collections.abc import Callable, Sequence
8
8
  from datetime import date, datetime
9
9
  from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
10
10
  from sqlalchemy.engine import Result as Result, Row as Row
@@ -15,6 +15,7 @@ from sqlalchemy.orm.session import Session as Session
15
15
  from sqlalchemy.sql.lambdas import StatementLambdaElement as StatementLambdaElement
16
16
  from sqlite3.dbapi2 import Cursor as SQLiteCursor
17
17
  from typing import Any, NoReturn
18
+ from typing_extensions import Generator
18
19
 
19
20
  _LOGGER: Incomplete
20
21
  RETRIES: int
@@ -46,7 +47,7 @@ FIRST_POSSIBLE_SUNDAY: int
46
47
  SUNDAY_WEEKDAY: int
47
48
  DAYS_IN_WEEK: int
48
49
 
49
- def session_scope(*, hass: HomeAssistant | None = None, session: Session | None = None, exception_filter: Callable[[Exception], bool] | None = None, read_only: bool = False) -> Generator[Session, None, None]: ...
50
+ def session_scope(*, hass: HomeAssistant | None = None, session: Session | None = None, exception_filter: Callable[[Exception], bool] | None = None, read_only: bool = False) -> Generator[Session]: ...
50
51
  def execute(qry: Query, to_native: bool = False, validate_entity_ids: bool = True) -> list[Row]: ...
51
52
  def execute_stmt_lambda_element(session: Session, stmt: StatementLambdaElement, start_time: datetime | None = None, end_time: datetime | None = None, yield_per: int = ..., orm_rows: bool = True) -> Sequence[Row] | Result: ...
52
53
  def validate_or_move_away_sqlite_database(dburl: str) -> bool: ...
@@ -74,7 +75,7 @@ _FuncType: Incomplete
74
75
  def retryable_database_job(description: str) -> Callable[[_FuncType[_RecorderT, _P, bool]], _FuncType[_RecorderT, _P, bool]]: ...
75
76
  def database_job_retry_wrapper(description: str, attempts: int = 5) -> Callable[[_FuncType[_RecorderT, _P, None]], _FuncType[_RecorderT, _P, None]]: ...
76
77
  def periodic_db_cleanups(instance: Recorder) -> None: ...
77
- def write_lock_db_sqlite(instance: Recorder) -> Generator[None, None, None]: ...
78
+ def write_lock_db_sqlite(instance: Recorder) -> Generator[None]: ...
78
79
  def async_migration_in_progress(hass: HomeAssistant) -> bool: ...
79
80
  def async_migration_is_live(hass: HomeAssistant) -> bool: ...
80
81
  def second_sunday(year: int, month: int) -> date: ...
@@ -5,7 +5,6 @@ from functools import cached_property as cached_property
5
5
  from homeassistant.config_entries import ConfigEntry as ConfigEntry
6
6
  from homeassistant.const import ATTR_COMMAND as ATTR_COMMAND, SERVICE_TOGGLE as SERVICE_TOGGLE, SERVICE_TURN_OFF as SERVICE_TURN_OFF, SERVICE_TURN_ON as SERVICE_TURN_ON, STATE_ON as STATE_ON
7
7
  from homeassistant.core import HomeAssistant as HomeAssistant
8
- from homeassistant.helpers.config_validation import PLATFORM_SCHEMA as PLATFORM_SCHEMA, PLATFORM_SCHEMA_BASE as PLATFORM_SCHEMA_BASE, make_entity_service_schema as make_entity_service_schema
9
8
  from homeassistant.helpers.deprecation import DeprecatedConstantEnum as DeprecatedConstantEnum, all_with_deprecated_constants as all_with_deprecated_constants, check_if_deprecated_constant as check_if_deprecated_constant, dir_with_deprecated_constants as dir_with_deprecated_constants
10
9
  from homeassistant.helpers.entity import ToggleEntity as ToggleEntity, ToggleEntityDescription as ToggleEntityDescription
11
10
  from homeassistant.helpers.entity_component import EntityComponent as EntityComponent
@@ -14,6 +13,11 @@ from homeassistant.loader import bind_hass as bind_hass
14
13
  from typing import Any
15
14
 
16
15
  _LOGGER: Incomplete
16
+ DOMAIN: str
17
+ ENTITY_ID_FORMAT: Incomplete
18
+ PLATFORM_SCHEMA: Incomplete
19
+ PLATFORM_SCHEMA_BASE: Incomplete
20
+ SCAN_INTERVAL: Incomplete
17
21
  ATTR_ACTIVITY: str
18
22
  ATTR_ACTIVITY_LIST: str
19
23
  ATTR_CURRENT_ACTIVITY: str
@@ -24,9 +28,6 @@ ATTR_DELAY_SECS: str
24
28
  ATTR_HOLD_SECS: str
25
29
  ATTR_ALTERNATIVE: str
26
30
  ATTR_TIMEOUT: str
27
- DOMAIN: str
28
- SCAN_INTERVAL: Incomplete
29
- ENTITY_ID_FORMAT: Incomplete
30
31
  MIN_TIME_BETWEEN_SCANS: Incomplete
31
32
  SERVICE_SEND_COMMAND: str
32
33
  SERVICE_LEARN_COMMAND: str
@@ -4,7 +4,7 @@ from .data import RestData as RestData
4
4
  from .entity import RestEntity as RestEntity
5
5
  from .schema import BINARY_SENSOR_SCHEMA as BINARY_SENSOR_SCHEMA, RESOURCE_SCHEMA as RESOURCE_SCHEMA
6
6
  from _typeshed import Incomplete
7
- from homeassistant.components.binary_sensor import BinarySensorEntity as BinarySensorEntity, PLATFORM_SCHEMA as PLATFORM_SCHEMA
7
+ from homeassistant.components.binary_sensor import BinarySensorEntity as BinarySensorEntity
8
8
  from homeassistant.const import CONF_DEVICE_CLASS as CONF_DEVICE_CLASS, CONF_FORCE_UPDATE as CONF_FORCE_UPDATE, CONF_ICON as CONF_ICON, CONF_NAME as CONF_NAME, CONF_RESOURCE as CONF_RESOURCE, CONF_RESOURCE_TEMPLATE as CONF_RESOURCE_TEMPLATE, CONF_UNIQUE_ID as CONF_UNIQUE_ID, CONF_VALUE_TEMPLATE as CONF_VALUE_TEMPLATE
9
9
  from homeassistant.core import HomeAssistant as HomeAssistant
10
10
  from homeassistant.exceptions import PlatformNotReady as PlatformNotReady
@@ -15,6 +15,7 @@ from homeassistant.helpers.typing import ConfigType as ConfigType, DiscoveryInfo
15
15
  from homeassistant.helpers.update_coordinator import DataUpdateCoordinator as DataUpdateCoordinator
16
16
 
17
17
  _LOGGER: Incomplete
18
+ PLATFORM_SCHEMA: Incomplete
18
19
  TRIGGER_ENTITY_OPTIONS: Incomplete
19
20
 
20
21
  async def async_setup_platform(hass: HomeAssistant, config: ConfigType, async_add_entities: AddEntitiesCallback, discovery_info: DiscoveryInfoType | None = None) -> None: ...