homeassistant-stubs 2024.6.4__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 (618) 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 +3 -0
  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/systemmonitor/config_flow.pyi +0 -2
  468. homeassistant-stubs/components/systemmonitor/sensor.pyi +4 -7
  469. homeassistant-stubs/components/tag/__init__.pyi +4 -5
  470. homeassistant-stubs/components/tami4/__init__.pyi +1 -1
  471. homeassistant-stubs/components/tami4/coordinator.pyi +3 -5
  472. homeassistant-stubs/components/tami4/sensor.pyi +3 -3
  473. homeassistant-stubs/components/tautulli/__init__.pyi +3 -2
  474. homeassistant-stubs/components/tautulli/coordinator.pyi +2 -2
  475. homeassistant-stubs/components/tautulli/sensor.pyi +3 -3
  476. homeassistant-stubs/components/threshold/__init__.pyi +2 -1
  477. homeassistant-stubs/components/threshold/binary_sensor.pyi +11 -3
  478. homeassistant-stubs/components/threshold/config_flow.pyi +8 -0
  479. homeassistant-stubs/components/tibber/__init__.pyi +1 -0
  480. homeassistant-stubs/components/tibber/sensor.pyi +12 -6
  481. homeassistant-stubs/components/tibber/services.pyi +15 -0
  482. homeassistant-stubs/components/time_date/sensor.pyi +3 -3
  483. homeassistant-stubs/components/timer/__init__.pyi +2 -2
  484. homeassistant-stubs/components/todo/__init__.pyi +3 -2
  485. homeassistant-stubs/components/tplink/__init__.pyi +14 -8
  486. homeassistant-stubs/components/tplink/binary_sensor.pyi +22 -0
  487. homeassistant-stubs/components/tplink/button.pyi +22 -0
  488. homeassistant-stubs/components/tplink/climate.pyi +42 -0
  489. homeassistant-stubs/components/tplink/config_flow.pyi +5 -5
  490. homeassistant-stubs/components/tplink/const.pyi +5 -1
  491. homeassistant-stubs/components/tplink/coordinator.pyi +2 -2
  492. homeassistant-stubs/components/tplink/diagnostics.pyi +2 -4
  493. homeassistant-stubs/components/tplink/entity.pyi +49 -7
  494. homeassistant-stubs/components/tplink/fan.pyi +31 -0
  495. homeassistant-stubs/components/tplink/light.pyi +20 -19
  496. homeassistant-stubs/components/tplink/number.pyi +27 -0
  497. homeassistant-stubs/components/tplink/select.pyi +26 -0
  498. homeassistant-stubs/components/tplink/sensor.pyi +12 -23
  499. homeassistant-stubs/components/tplink/switch.pyi +12 -35
  500. homeassistant-stubs/components/tplink_omada/controller.pyi +4 -15
  501. homeassistant-stubs/components/tplink_omada/coordinator.pyi +20 -1
  502. homeassistant-stubs/components/tplink_omada/device_tracker.pyi +36 -0
  503. homeassistant-stubs/components/transmission/__init__.pyi +9 -3
  504. homeassistant-stubs/components/transmission/sensor.pyi +2 -2
  505. homeassistant-stubs/components/transmission/switch.pyi +2 -4
  506. homeassistant-stubs/components/trend/__init__.pyi +2 -1
  507. homeassistant-stubs/components/trend/binary_sensor.pyi +6 -2
  508. homeassistant-stubs/components/tts/notify.pyi +2 -1
  509. homeassistant-stubs/components/unifi/config_flow.pyi +1 -1
  510. homeassistant-stubs/components/unifi/sensor.pyi +2 -1
  511. homeassistant-stubs/components/unifi/services.pyi +1 -0
  512. homeassistant-stubs/components/unifiprotect/__init__.pyi +8 -9
  513. homeassistant-stubs/components/unifiprotect/binary_sensor.pyi +29 -21
  514. homeassistant-stubs/components/unifiprotect/button.pyi +8 -9
  515. homeassistant-stubs/components/unifiprotect/camera.pyi +10 -10
  516. homeassistant-stubs/components/unifiprotect/const.pyi +0 -1
  517. homeassistant-stubs/components/unifiprotect/data.pyi +27 -14
  518. homeassistant-stubs/components/unifiprotect/diagnostics.pyi +2 -4
  519. homeassistant-stubs/components/unifiprotect/entity.pyi +27 -17
  520. homeassistant-stubs/components/unifiprotect/light.pyi +3 -6
  521. homeassistant-stubs/components/unifiprotect/lock.pyi +3 -8
  522. homeassistant-stubs/components/unifiprotect/media_player.pyi +4 -8
  523. homeassistant-stubs/components/unifiprotect/media_source.pyi +2 -3
  524. homeassistant-stubs/components/unifiprotect/migrate.pyi +5 -5
  525. homeassistant-stubs/components/unifiprotect/models.pyi +16 -17
  526. homeassistant-stubs/components/unifiprotect/number.pyi +8 -12
  527. homeassistant-stubs/components/unifiprotect/repairs.pyi +5 -3
  528. homeassistant-stubs/components/unifiprotect/select.pyi +9 -11
  529. homeassistant-stubs/components/unifiprotect/sensor.pyi +25 -23
  530. homeassistant-stubs/components/unifiprotect/services.pyi +0 -4
  531. homeassistant-stubs/components/unifiprotect/switch.pyi +15 -24
  532. homeassistant-stubs/components/unifiprotect/text.pyi +8 -11
  533. homeassistant-stubs/components/unifiprotect/utils.pyi +6 -11
  534. homeassistant-stubs/components/unifiprotect/views.pyi +2 -4
  535. homeassistant-stubs/components/update/__init__.pyi +3 -1
  536. homeassistant-stubs/components/vacuum/__init__.pyi +2 -1
  537. homeassistant-stubs/components/vallox/sensor.pyi +5 -1
  538. homeassistant-stubs/components/valve/__init__.pyi +3 -2
  539. homeassistant-stubs/components/water_heater/__init__.pyi +4 -3
  540. homeassistant-stubs/components/weather/__init__.pyi +4 -5
  541. homeassistant-stubs/components/webhook/__init__.pyi +1 -1
  542. homeassistant-stubs/components/webostv/__init__.pyi +7 -0
  543. homeassistant-stubs/components/websocket_api/__init__.pyi +3 -4
  544. homeassistant-stubs/components/websocket_api/decorators.pyi +2 -1
  545. homeassistant-stubs/components/wemo/entity.pyi +2 -2
  546. homeassistant-stubs/components/wemo/fan.pyi +2 -1
  547. homeassistant-stubs/components/withings/coordinator.pyi +3 -3
  548. homeassistant-stubs/components/withings/sensor.pyi +6 -2
  549. homeassistant-stubs/components/worldclock/sensor.pyi +2 -1
  550. homeassistant-stubs/components/xiaomi_ble/sensor.pyi +1 -1
  551. homeassistant-stubs/components/zone/__init__.pyi +3 -3
  552. homeassistant-stubs/components/zwave_js/__init__.pyi +1 -1
  553. homeassistant-stubs/components/zwave_js/api.pyi +1 -5
  554. homeassistant-stubs/components/zwave_js/config_flow.pyi +8 -1
  555. homeassistant-stubs/components/zwave_js/const.pyi +5 -0
  556. homeassistant-stubs/components/zwave_js/discovery.pyi +4 -4
  557. homeassistant-stubs/components/zwave_js/helpers.pyi +2 -2
  558. homeassistant-stubs/components/zwave_js/sensor.pyi +2 -0
  559. homeassistant-stubs/components/zwave_js/services.pyi +3 -2
  560. homeassistant-stubs/config.pyi +4 -5
  561. homeassistant-stubs/config_entries.pyi +6 -3
  562. homeassistant-stubs/const.pyi +9 -3
  563. homeassistant-stubs/core.pyi +15 -10
  564. homeassistant-stubs/data_entry_flow.pyi +12 -2
  565. homeassistant-stubs/exceptions.pyi +6 -5
  566. homeassistant-stubs/helpers/__init__.pyi +0 -5
  567. homeassistant-stubs/helpers/collection.pyi +14 -11
  568. homeassistant-stubs/helpers/condition.pyi +3 -2
  569. homeassistant-stubs/helpers/config_validation.pyi +5 -4
  570. homeassistant-stubs/helpers/deprecation.pyi +10 -0
  571. homeassistant-stubs/helpers/device.pyi +8 -0
  572. homeassistant-stubs/helpers/device_registry.pyi +14 -2
  573. homeassistant-stubs/helpers/entity.pyi +3 -2
  574. homeassistant-stubs/helpers/entity_component.pyi +3 -4
  575. homeassistant-stubs/helpers/entity_platform.pyi +2 -3
  576. homeassistant-stubs/helpers/event.pyi +10 -4
  577. homeassistant-stubs/helpers/frame.pyi +1 -0
  578. homeassistant-stubs/helpers/http.pyi +1 -1
  579. homeassistant-stubs/helpers/intent.pyi +6 -4
  580. homeassistant-stubs/helpers/llm.pyi +17 -3
  581. homeassistant-stubs/helpers/schema_config_entry_flow.pyi +2 -2
  582. homeassistant-stubs/helpers/script.pyi +3 -2
  583. homeassistant-stubs/helpers/selector.pyi +10 -8
  584. homeassistant-stubs/helpers/service.pyi +6 -3
  585. homeassistant-stubs/helpers/template.pyi +8 -6
  586. homeassistant-stubs/helpers/trace.pyi +3 -2
  587. homeassistant-stubs/helpers/typing.pyi +6 -1
  588. homeassistant-stubs/helpers/update_coordinator.pyi +3 -3
  589. homeassistant-stubs/loader.pyi +1 -2
  590. homeassistant-stubs/requirements.pyi +0 -3
  591. homeassistant-stubs/setup.pyi +4 -3
  592. homeassistant-stubs/util/loop.pyi +5 -1
  593. homeassistant-stubs/util/unit_conversion.pyi +7 -1
  594. {homeassistant_stubs-2024.6.4.dist-info → homeassistant_stubs-2024.7.0.dist-info}/METADATA +2 -2
  595. {homeassistant_stubs-2024.6.4.dist-info → homeassistant_stubs-2024.7.0.dist-info}/RECORD +597 -560
  596. homeassistant-stubs/auth/providers/legacy_api_password.pyi +0 -30
  597. homeassistant-stubs/components/air_quality/group.pyi +0 -5
  598. homeassistant-stubs/components/aladdin_connect/api.pyi +0 -12
  599. homeassistant-stubs/components/aladdin_connect/application_credentials.pyi +0 -5
  600. homeassistant-stubs/components/aladdin_connect/const.pyi +0 -3
  601. homeassistant-stubs/components/aladdin_connect/coordinator.pyi +0 -15
  602. homeassistant-stubs/components/aladdin_connect/cover.pyi +0 -25
  603. homeassistant-stubs/components/aladdin_connect/entity.pyi +0 -12
  604. homeassistant-stubs/components/aladdin_connect/sensor.pyi +0 -27
  605. homeassistant-stubs/components/alarm_control_panel/group.pyi +0 -6
  606. homeassistant-stubs/components/climate/group.pyi +0 -6
  607. homeassistant-stubs/components/cover/group.pyi +0 -6
  608. homeassistant-stubs/components/device_tracker/group.pyi +0 -6
  609. homeassistant-stubs/components/fastdotcom/services.pyi +0 -7
  610. homeassistant-stubs/components/lock/group.pyi +0 -6
  611. homeassistant-stubs/components/media_player/group.pyi +0 -6
  612. homeassistant-stubs/components/sensor/group.pyi +0 -5
  613. homeassistant-stubs/components/vacuum/group.pyi +0 -6
  614. homeassistant-stubs/components/water_heater/group.pyi +0 -6
  615. homeassistant-stubs/components/weather/group.pyi +0 -5
  616. homeassistant-stubs/components/wled/binary_sensor.pyi +0 -20
  617. {homeassistant_stubs-2024.6.4.dist-info → homeassistant_stubs-2024.7.0.dist-info}/LICENSE +0 -0
  618. {homeassistant_stubs-2024.6.4.dist-info → homeassistant_stubs-2024.7.0.dist-info}/WHEEL +0 -0
@@ -2,7 +2,7 @@ from . import PLATFORMS as PLATFORMS
2
2
  from .const import CONF_ENTITY_IDS as CONF_ENTITY_IDS, CONF_ROUND_DIGITS as CONF_ROUND_DIGITS, DOMAIN as DOMAIN
3
3
  from _typeshed import Incomplete
4
4
  from datetime import datetime
5
- from homeassistant.components.sensor import PLATFORM_SCHEMA as PLATFORM_SCHEMA, SensorEntity as SensorEntity, SensorStateClass as SensorStateClass
5
+ from homeassistant.components.sensor import SensorEntity as SensorEntity, SensorStateClass as SensorStateClass
6
6
  from homeassistant.config_entries import ConfigEntry as ConfigEntry
7
7
  from homeassistant.const import ATTR_UNIT_OF_MEASUREMENT as ATTR_UNIT_OF_MEASUREMENT, CONF_NAME as CONF_NAME, CONF_TYPE as CONF_TYPE, CONF_UNIQUE_ID as CONF_UNIQUE_ID, STATE_UNAVAILABLE as STATE_UNAVAILABLE, STATE_UNKNOWN as STATE_UNKNOWN
8
8
  from homeassistant.core import Event as Event, EventStateChangedData as EventStateChangedData, HomeAssistant as HomeAssistant, callback as callback
@@ -26,6 +26,7 @@ ATTR_SUM: str
26
26
  ICON: str
27
27
  SENSOR_TYPES: Incomplete
28
28
  SENSOR_TYPE_TO_ATTR: Incomplete
29
+ PLATFORM_SCHEMA: Incomplete
29
30
 
30
31
  async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
31
32
  async def async_setup_platform(hass: HomeAssistant, config: ConfigType, async_add_entities: AddEntitiesCallback, discovery_info: DiscoveryInfoType | None = None) -> None: ...
@@ -31,7 +31,7 @@ class ModbusRegisterSensor(BaseStructPlatform, RestoreSensor, SensorEntity):
31
31
  _attr_available: bool
32
32
  async def async_update(self, now: datetime | None = None) -> None: ...
33
33
 
34
- class SlaveSensor(CoordinatorEntity[DataUpdateCoordinator[list[int] | None]], RestoreSensor, SensorEntity):
34
+ class SlaveSensor(CoordinatorEntity[DataUpdateCoordinator[list[float] | None]], RestoreSensor, SensorEntity):
35
35
  _idx: Incomplete
36
36
  _attr_name: Incomplete
37
37
  _attr_unique_id: Incomplete
@@ -39,7 +39,7 @@ class SlaveSensor(CoordinatorEntity[DataUpdateCoordinator[list[int] | None]], Re
39
39
  _attr_state_class: Incomplete
40
40
  _attr_device_class: Incomplete
41
41
  _attr_available: bool
42
- def __init__(self, coordinator: DataUpdateCoordinator[list[int] | None], idx: int, entry: dict[str, Any]) -> None: ...
42
+ def __init__(self, coordinator: DataUpdateCoordinator[list[float] | None], idx: int, entry: dict[str, Any]) -> None: ...
43
43
  _attr_native_value: Incomplete
44
44
  async def async_added_to_hass(self) -> None: ...
45
45
  def _handle_coordinator_update(self) -> None: ...
@@ -1,6 +1,7 @@
1
1
  import logging
2
2
  from .const import DOMAIN as DOMAIN
3
- from homeassistant.config_entries import ConfigFlowResult as ConfigFlowResult
3
+ from collections.abc import Mapping
4
+ from homeassistant.config_entries import ConfigEntry as ConfigEntry, ConfigFlowResult as ConfigFlowResult
4
5
  from homeassistant.const import CONF_TOKEN as CONF_TOKEN
5
6
  from homeassistant.helpers import config_entry_oauth2_flow as config_entry_oauth2_flow
6
7
  from typing import Any
@@ -8,7 +9,10 @@ from typing import Any
8
9
  class MonzoFlowHandler(config_entry_oauth2_flow.AbstractOAuth2FlowHandler, domain=DOMAIN):
9
10
  DOMAIN = DOMAIN
10
11
  oauth_data: dict[str, Any]
12
+ reauth_entry: ConfigEntry | None
11
13
  @property
12
14
  def logger(self) -> logging.Logger: ...
13
15
  async def async_step_await_approval_confirmation(self, user_input: dict[str, Any] | None = None) -> ConfigFlowResult: ...
14
16
  async def async_oauth_create_entry(self, data: dict[str, Any]) -> ConfigFlowResult: ...
17
+ async def async_step_reauth(self, entry_data: Mapping[str, Any]) -> ConfigFlowResult: ...
18
+ async def async_step_reauth_confirm(self, user_input: dict[str, Any] | None = None) -> ConfigFlowResult: ...
@@ -3,6 +3,7 @@ from .const import DOMAIN as DOMAIN
3
3
  from _typeshed import Incomplete
4
4
  from dataclasses import dataclass
5
5
  from homeassistant.core import HomeAssistant as HomeAssistant
6
+ from homeassistant.exceptions import ConfigEntryAuthFailed as ConfigEntryAuthFailed
6
7
  from homeassistant.helpers.update_coordinator import DataUpdateCoordinator as DataUpdateCoordinator
7
8
  from typing import Any
8
9
 
@@ -11,10 +11,13 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_e
11
11
 
12
12
  class MotionMountPresets(MotionMountEntity, SelectEntity):
13
13
  _attr_translation_key: str
14
- _attr_current_option: str | None
15
14
  _attr_unique_id: Incomplete
15
+ _presets: Incomplete
16
16
  def __init__(self, mm: motionmount.MotionMount, config_entry: ConfigEntry) -> None: ...
17
17
  _attr_options: Incomplete
18
- def _update_options(self, presets: dict[int, str]) -> None: ...
18
+ def _update_options(self, presets: list[motionmount.Preset]) -> None: ...
19
19
  async def async_update(self) -> None: ...
20
+ _attr_current_option: Incomplete
21
+ @property
22
+ def current_option(self) -> str | None: ...
20
23
  async def async_select_option(self, option: str) -> None: ...
@@ -0,0 +1,22 @@
1
+ from _typeshed import Incomplete
2
+ from paho.mqtt.client import Client as MQTTClient
3
+ from types import TracebackType
4
+ from typing import Self
5
+
6
+ _MQTT_LOCK_COUNT: int
7
+
8
+ class NullLock:
9
+ def __enter__(self) -> Self: ...
10
+ def __exit__(self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: TracebackType | None) -> None: ...
11
+ def acquire(self, blocking: bool = False, timeout: int = -1) -> None: ...
12
+ def release(self) -> None: ...
13
+
14
+ class AsyncMQTTClient(MQTTClient):
15
+ _in_callback_mutex: Incomplete
16
+ _callback_mutex: Incomplete
17
+ _msgtime_mutex: Incomplete
18
+ _out_message_mutex: Incomplete
19
+ _in_message_mutex: Incomplete
20
+ _reconnect_delay_mutex: Incomplete
21
+ _mid_generate_mutex: Incomplete
22
+ def setup(self) -> None: ...
@@ -1,10 +1,11 @@
1
1
  import asyncio
2
2
  import paho.mqtt.client as mqtt
3
+ from .async_client import AsyncMQTTClient as AsyncMQTTClient
3
4
  from .const import CONF_BIRTH_MESSAGE as CONF_BIRTH_MESSAGE, CONF_BROKER as CONF_BROKER, CONF_CERTIFICATE as CONF_CERTIFICATE, CONF_CLIENT_CERT as CONF_CLIENT_CERT, CONF_CLIENT_KEY as CONF_CLIENT_KEY, CONF_KEEPALIVE as CONF_KEEPALIVE, CONF_TLS_INSECURE as CONF_TLS_INSECURE, CONF_TRANSPORT as CONF_TRANSPORT, CONF_WILL_MESSAGE as CONF_WILL_MESSAGE, CONF_WS_HEADERS as CONF_WS_HEADERS, CONF_WS_PATH as CONF_WS_PATH, DEFAULT_BIRTH as DEFAULT_BIRTH, DEFAULT_ENCODING as DEFAULT_ENCODING, DEFAULT_KEEPALIVE as DEFAULT_KEEPALIVE, DEFAULT_PORT as DEFAULT_PORT, DEFAULT_PROTOCOL as DEFAULT_PROTOCOL, DEFAULT_QOS as DEFAULT_QOS, DEFAULT_TRANSPORT as DEFAULT_TRANSPORT, DEFAULT_WILL as DEFAULT_WILL, DEFAULT_WS_HEADERS as DEFAULT_WS_HEADERS, DEFAULT_WS_PATH as DEFAULT_WS_PATH, DOMAIN as DOMAIN, MQTT_CONNECTION_STATE as MQTT_CONNECTION_STATE, PROTOCOL_31 as PROTOCOL_31, PROTOCOL_5 as PROTOCOL_5, TRANSPORT_WEBSOCKETS as TRANSPORT_WEBSOCKETS
4
5
  from .models import DATA_MQTT as DATA_MQTT, MessageCallbackType as MessageCallbackType, MqttData as MqttData, PublishMessage as PublishMessage, PublishPayloadType as PublishPayloadType, ReceiveMessage as ReceiveMessage
5
- from .util import get_file_path as get_file_path, mqtt_config_entry_enabled as mqtt_config_entry_enabled
6
+ from .util import EnsureJobAfterCooldown as EnsureJobAfterCooldown, get_file_path as get_file_path, mqtt_config_entry_enabled as mqtt_config_entry_enabled
6
7
  from _typeshed import Incomplete
7
- from collections.abc import AsyncGenerator, Callable as Callable, Coroutine, Iterable
8
+ from collections.abc import Callable as Callable, Coroutine, Iterable
8
9
  from dataclasses import dataclass
9
10
  from homeassistant.config_entries import ConfigEntry as ConfigEntry
10
11
  from homeassistant.const import CONF_CLIENT_ID as CONF_CLIENT_ID, CONF_PASSWORD as CONF_PASSWORD, CONF_PORT as CONF_PORT, CONF_PROTOCOL as CONF_PROTOCOL, CONF_USERNAME as CONF_USERNAME, EVENT_HOMEASSISTANT_STOP as EVENT_HOMEASSISTANT_STOP
@@ -16,10 +17,10 @@ from homeassistant.helpers.start import async_at_started as async_at_started
16
17
  from homeassistant.helpers.typing import ConfigType as ConfigType
17
18
  from homeassistant.loader import bind_hass as bind_hass
18
19
  from homeassistant.setup import SetupPhases as SetupPhases, async_pause_setup as async_pause_setup
19
- from homeassistant.util.async_ import create_eager_task as create_eager_task
20
20
  from homeassistant.util.collection import chunked_or_all as chunked_or_all
21
21
  from homeassistant.util.logging import catch_log_exception as catch_log_exception, log_exception as log_exception
22
22
  from typing import Any
23
+ from typing_extensions import AsyncGenerator
23
24
 
24
25
  _LOGGER: Incomplete
25
26
  MIN_BUFFER_SIZE: int
@@ -53,30 +54,15 @@ class Subscription:
53
54
  def __init__(self, topic, is_simple_match, complex_matcher, job, qos, encoding) -> None: ...
54
55
 
55
56
  class MqttClientSetup:
56
- _client: Incomplete
57
+ _client: AsyncMQTTClient
58
+ _config: Incomplete
57
59
  def __init__(self, config: ConfigType) -> None: ...
60
+ def setup(self) -> None: ...
58
61
  @property
59
- def client(self) -> mqtt.Client: ...
60
-
61
- class EnsureJobAfterCooldown:
62
- _loop: Incomplete
63
- _timeout: Incomplete
64
- _callback: Incomplete
65
- _task: Incomplete
66
- _timer: Incomplete
67
- _next_execute_time: float
68
- def __init__(self, timeout: float, callback_job: Callable[[], Coroutine[Any, None, None]]) -> None: ...
69
- def set_timeout(self, timeout: float) -> None: ...
70
- async def _async_job(self) -> None: ...
71
- def _async_task_done(self, task: asyncio.Task) -> None: ...
72
- def async_execute(self) -> asyncio.Task: ...
73
- def _async_cancel_timer(self) -> None: ...
74
- def async_schedule(self) -> None: ...
75
- def _async_timer_reached(self) -> None: ...
76
- async def async_cleanup(self) -> None: ...
62
+ def client(self) -> AsyncMQTTClient: ...
77
63
 
78
64
  class MQTT:
79
- _mqttc: mqtt.Client
65
+ _mqttc: AsyncMQTTClient
80
66
  _last_subscribe: float
81
67
  _mqtt_data: MqttData
82
68
  hass: Incomplete
@@ -92,7 +78,7 @@ class MQTT:
92
78
  _connection_lock: Incomplete
93
79
  _pending_operations: Incomplete
94
80
  _subscribe_debouncer: Incomplete
95
- _misc_task: Incomplete
81
+ _misc_timer: Incomplete
96
82
  _reconnect_task: Incomplete
97
83
  _should_reconnect: bool
98
84
  _available_future: Incomplete
@@ -108,11 +94,10 @@ class MQTT:
108
94
  @property
109
95
  def subscriptions(self) -> list[Subscription]: ...
110
96
  def cleanup(self) -> None: ...
111
- async def _async_connect_in_executor(self) -> AsyncGenerator[None, None]: ...
97
+ async def _async_connect_in_executor(self) -> AsyncGenerator[None]: ...
112
98
  async def async_init_client(self) -> None: ...
113
- async def _misc_loop(self) -> None: ...
114
99
  def _async_reader_callback(self, client: mqtt.Client) -> None: ...
115
- def _async_start_misc_loop(self) -> None: ...
100
+ def _async_start_misc_periodic(self) -> None: ...
116
101
  def _increase_socket_buffer_size(self, sock: SocketType) -> None: ...
117
102
  def _on_socket_open(self, client: mqtt.Client, userdata: Any, sock: SocketType) -> None: ...
118
103
  def _async_on_socket_open(self, client: mqtt.Client, userdata: Any, sock: SocketType) -> None: ...
@@ -127,7 +112,7 @@ class MQTT:
127
112
  def _async_connection_result(self, connected: bool) -> None: ...
128
113
  def _async_cancel_reconnect(self) -> None: ...
129
114
  async def _reconnect_loop(self) -> None: ...
130
- async def async_disconnect(self) -> None: ...
115
+ async def async_disconnect(self, disconnect_paho_client: bool = False) -> None: ...
131
116
  def async_restore_tracked_subscriptions(self, subscriptions: list[Subscription]) -> None: ...
132
117
  def _async_track_subscription(self, subscription: Subscription) -> None: ...
133
118
  def _async_untrack_subscription(self, subscription: Subscription) -> None: ...
@@ -1,5 +1,4 @@
1
1
  import abc
2
- import voluptuous as vol
3
2
  from . import subscription as subscription
4
3
  from .config import DEFAULT_RETAIN as DEFAULT_RETAIN, MQTT_BASE_SCHEMA as MQTT_BASE_SCHEMA
5
4
  from .const import CONF_ACTION_TEMPLATE as CONF_ACTION_TEMPLATE, CONF_ACTION_TOPIC as CONF_ACTION_TOPIC, CONF_CURRENT_HUMIDITY_TEMPLATE as CONF_CURRENT_HUMIDITY_TEMPLATE, CONF_CURRENT_HUMIDITY_TOPIC as CONF_CURRENT_HUMIDITY_TOPIC, CONF_CURRENT_TEMP_TEMPLATE as CONF_CURRENT_TEMP_TEMPLATE, CONF_CURRENT_TEMP_TOPIC as CONF_CURRENT_TEMP_TOPIC, CONF_MODE_COMMAND_TEMPLATE as CONF_MODE_COMMAND_TEMPLATE, CONF_MODE_COMMAND_TOPIC as CONF_MODE_COMMAND_TOPIC, CONF_MODE_LIST as CONF_MODE_LIST, CONF_MODE_STATE_TEMPLATE as CONF_MODE_STATE_TEMPLATE, CONF_MODE_STATE_TOPIC as CONF_MODE_STATE_TOPIC, CONF_POWER_COMMAND_TEMPLATE as CONF_POWER_COMMAND_TEMPLATE, CONF_POWER_COMMAND_TOPIC as CONF_POWER_COMMAND_TOPIC, CONF_PRECISION as CONF_PRECISION, CONF_RETAIN as CONF_RETAIN, CONF_TEMP_COMMAND_TEMPLATE as CONF_TEMP_COMMAND_TEMPLATE, CONF_TEMP_COMMAND_TOPIC as CONF_TEMP_COMMAND_TOPIC, CONF_TEMP_INITIAL as CONF_TEMP_INITIAL, CONF_TEMP_MAX as CONF_TEMP_MAX, CONF_TEMP_MIN as CONF_TEMP_MIN, CONF_TEMP_STATE_TEMPLATE as CONF_TEMP_STATE_TEMPLATE, CONF_TEMP_STATE_TOPIC as CONF_TEMP_STATE_TOPIC, DEFAULT_OPTIMISTIC as DEFAULT_OPTIMISTIC, PAYLOAD_NONE as PAYLOAD_NONE
@@ -17,7 +16,7 @@ from homeassistant.const import ATTR_TEMPERATURE as ATTR_TEMPERATURE, CONF_NAME
17
16
  from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
18
17
  from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
19
18
  from homeassistant.helpers.template import Template as Template
20
- from homeassistant.helpers.typing import ConfigType as ConfigType
19
+ from homeassistant.helpers.typing import ConfigType as ConfigType, VolSchemaType as VolSchemaType
21
20
  from homeassistant.util.unit_conversion import TemperatureConverter as TemperatureConverter
22
21
  from typing import Any
23
22
 
@@ -103,7 +102,7 @@ class MqttClimate(MqttTemperatureControlEntity, ClimateEntity):
103
102
  _attr_target_temperature_high: float | None
104
103
  _enable_turn_on_off_backwards_compatibility: bool
105
104
  @staticmethod
106
- def config_schema() -> vol.Schema: ...
105
+ def config_schema() -> VolSchemaType: ...
107
106
  _attr_hvac_modes: Incomplete
108
107
  _attr_temperature_unit: Incomplete
109
108
  _attr_min_temp: Incomplete
@@ -1,4 +1,3 @@
1
- import voluptuous as vol
2
1
  from . import subscription as subscription
3
2
  from .config import MQTT_BASE_SCHEMA as MQTT_BASE_SCHEMA
4
3
  from .const import CONF_COMMAND_TOPIC as CONF_COMMAND_TOPIC, CONF_PAYLOAD_CLOSE as CONF_PAYLOAD_CLOSE, CONF_PAYLOAD_OPEN as CONF_PAYLOAD_OPEN, CONF_PAYLOAD_STOP as CONF_PAYLOAD_STOP, CONF_POSITION_CLOSED as CONF_POSITION_CLOSED, CONF_POSITION_OPEN as CONF_POSITION_OPEN, CONF_RETAIN as CONF_RETAIN, CONF_STATE_CLOSED as CONF_STATE_CLOSED, CONF_STATE_CLOSING as CONF_STATE_CLOSING, CONF_STATE_OPEN as CONF_STATE_OPEN, CONF_STATE_OPENING as CONF_STATE_OPENING, CONF_STATE_TOPIC as CONF_STATE_TOPIC, DEFAULT_OPTIMISTIC as DEFAULT_OPTIMISTIC, DEFAULT_PAYLOAD_CLOSE as DEFAULT_PAYLOAD_CLOSE, DEFAULT_PAYLOAD_OPEN as DEFAULT_PAYLOAD_OPEN, DEFAULT_POSITION_CLOSED as DEFAULT_POSITION_CLOSED, DEFAULT_POSITION_OPEN as DEFAULT_POSITION_OPEN, DEFAULT_RETAIN as DEFAULT_RETAIN, PAYLOAD_NONE as PAYLOAD_NONE
@@ -14,7 +13,7 @@ from homeassistant.const import CONF_DEVICE_CLASS as CONF_DEVICE_CLASS, CONF_NAM
14
13
  from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
15
14
  from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
16
15
  from homeassistant.helpers.service_info.mqtt import ReceivePayloadType as ReceivePayloadType
17
- from homeassistant.helpers.typing import ConfigType as ConfigType
16
+ from homeassistant.helpers.typing import ConfigType as ConfigType, VolSchemaType as VolSchemaType
18
17
  from homeassistant.util.json import JSON_DECODE_EXCEPTIONS as JSON_DECODE_EXCEPTIONS, json_loads as json_loads
19
18
  from homeassistant.util.percentage import percentage_to_ranged_value as percentage_to_ranged_value, ranged_value_to_percentage as ranged_value_to_percentage
20
19
  from typing import Any
@@ -67,7 +66,7 @@ class MqttCover(MqttEntity, CoverEntity):
67
66
  _pos_range: tuple[int, int]
68
67
  _tilt_range: tuple[int, int]
69
68
  @staticmethod
70
- def config_schema() -> vol.Schema: ...
69
+ def config_schema() -> VolSchemaType: ...
71
70
  _attr_assumed_state: Incomplete
72
71
  _value_template: Incomplete
73
72
  _set_position_template: Incomplete
@@ -1,4 +1,3 @@
1
- import voluptuous as vol
2
1
  from . import subscription as subscription
3
2
  from .config import MQTT_BASE_SCHEMA as MQTT_BASE_SCHEMA
4
3
  from .const import CONF_PAYLOAD_RESET as CONF_PAYLOAD_RESET, CONF_STATE_TOPIC as CONF_STATE_TOPIC
@@ -14,7 +13,7 @@ from homeassistant.config_entries import ConfigEntry as ConfigEntry
14
13
  from homeassistant.const import ATTR_GPS_ACCURACY as ATTR_GPS_ACCURACY, ATTR_LATITUDE as ATTR_LATITUDE, ATTR_LONGITUDE as ATTR_LONGITUDE, CONF_NAME as CONF_NAME, CONF_VALUE_TEMPLATE as CONF_VALUE_TEMPLATE, STATE_HOME as STATE_HOME, STATE_NOT_HOME as STATE_NOT_HOME
15
14
  from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
16
15
  from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
17
- from homeassistant.helpers.typing import ConfigType as ConfigType
16
+ from homeassistant.helpers.typing import ConfigType as ConfigType, VolSchemaType as VolSchemaType
18
17
 
19
18
  _LOGGER: Incomplete
20
19
  CONF_PAYLOAD_HOME: str
@@ -37,7 +36,7 @@ class MqttDeviceTracker(MqttEntity, TrackerEntity):
37
36
  _location_name: str | None
38
37
  _value_template: Callable[[ReceivePayloadType], ReceivePayloadType]
39
38
  @staticmethod
40
- def config_schema() -> vol.Schema: ...
39
+ def config_schema() -> VolSchemaType: ...
41
40
  def _setup_from_config(self, config: ConfigType) -> None: ...
42
41
  def _tracker_message_received(self, msg: ReceiveMessage) -> None: ...
43
42
  def _prepare_subscribe_topics(self) -> None: ...
@@ -1,4 +1,3 @@
1
- import voluptuous as vol
2
1
  from . import subscription as subscription
3
2
  from .config import MQTT_RO_SCHEMA as MQTT_RO_SCHEMA
4
3
  from .const import CONF_STATE_TOPIC as CONF_STATE_TOPIC, PAYLOAD_EMPTY_JSON as PAYLOAD_EMPTY_JSON, PAYLOAD_NONE as PAYLOAD_NONE
@@ -13,7 +12,7 @@ from homeassistant.config_entries import ConfigEntry as ConfigEntry
13
12
  from homeassistant.const import CONF_DEVICE_CLASS as CONF_DEVICE_CLASS, CONF_NAME as CONF_NAME, CONF_VALUE_TEMPLATE as CONF_VALUE_TEMPLATE
14
13
  from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
15
14
  from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
16
- from homeassistant.helpers.typing import ConfigType as ConfigType
15
+ from homeassistant.helpers.typing import ConfigType as ConfigType, VolSchemaType as VolSchemaType
17
16
  from homeassistant.util.json import JSON_DECODE_EXCEPTIONS as JSON_DECODE_EXCEPTIONS, json_loads_object as json_loads_object
18
17
 
19
18
  _LOGGER: Incomplete
@@ -34,7 +33,7 @@ class MqttEvent(MqttEntity, EventEntity):
34
33
  _attributes_extra_blocked = MQTT_EVENT_ATTRIBUTES_BLOCKED
35
34
  _template: Callable[[ReceivePayloadType, PayloadSentinel], ReceivePayloadType]
36
35
  @staticmethod
37
- def config_schema() -> vol.Schema: ...
36
+ def config_schema() -> VolSchemaType: ...
38
37
  _attr_device_class: Incomplete
39
38
  _attr_event_types: Incomplete
40
39
  def _setup_from_config(self, config: ConfigType) -> None: ...
@@ -1,4 +1,3 @@
1
- import voluptuous as vol
2
1
  from . import subscription as subscription
3
2
  from .config import MQTT_RW_SCHEMA as MQTT_RW_SCHEMA
4
3
  from .const import CONF_COMMAND_TEMPLATE as CONF_COMMAND_TEMPLATE, CONF_COMMAND_TOPIC as CONF_COMMAND_TOPIC, CONF_STATE_TOPIC as CONF_STATE_TOPIC, CONF_STATE_VALUE_TEMPLATE as CONF_STATE_VALUE_TEMPLATE, PAYLOAD_NONE as PAYLOAD_NONE
@@ -15,7 +14,7 @@ from homeassistant.const import CONF_NAME as CONF_NAME, CONF_OPTIMISTIC as CONF_
15
14
  from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
16
15
  from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
17
16
  from homeassistant.helpers.template import Template as Template
18
- from homeassistant.helpers.typing import ConfigType as ConfigType
17
+ from homeassistant.helpers.typing import ConfigType as ConfigType, VolSchemaType as VolSchemaType
19
18
  from homeassistant.util.percentage import percentage_to_ranged_value as percentage_to_ranged_value, ranged_value_to_percentage as ranged_value_to_percentage
20
19
  from homeassistant.util.scaling import int_states_in_range as int_states_in_range
21
20
  from typing import Any
@@ -82,7 +81,7 @@ class MqttFan(MqttEntity, FanEntity):
82
81
  _payload: dict[str, Any]
83
82
  _speed_range: tuple[int, int]
84
83
  @staticmethod
85
- def config_schema() -> vol.Schema: ...
84
+ def config_schema() -> VolSchemaType: ...
86
85
  _attr_preset_modes: Incomplete
87
86
  _attr_speed_count: Incomplete
88
87
  _attr_assumed_state: Incomplete
@@ -1,4 +1,3 @@
1
- import voluptuous as vol
2
1
  from . import subscription as subscription
3
2
  from .config import MQTT_RW_SCHEMA as MQTT_RW_SCHEMA
4
3
  from .const import CONF_ACTION_TEMPLATE as CONF_ACTION_TEMPLATE, CONF_ACTION_TOPIC as CONF_ACTION_TOPIC, CONF_COMMAND_TEMPLATE as CONF_COMMAND_TEMPLATE, CONF_COMMAND_TOPIC as CONF_COMMAND_TOPIC, CONF_CURRENT_HUMIDITY_TEMPLATE as CONF_CURRENT_HUMIDITY_TEMPLATE, CONF_CURRENT_HUMIDITY_TOPIC as CONF_CURRENT_HUMIDITY_TOPIC, CONF_STATE_TOPIC as CONF_STATE_TOPIC, CONF_STATE_VALUE_TEMPLATE as CONF_STATE_VALUE_TEMPLATE, PAYLOAD_NONE as PAYLOAD_NONE
@@ -15,7 +14,7 @@ from homeassistant.const import CONF_NAME as CONF_NAME, CONF_OPTIMISTIC as CONF_
15
14
  from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
16
15
  from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
17
16
  from homeassistant.helpers.template import Template as Template
18
- from homeassistant.helpers.typing import ConfigType as ConfigType
17
+ from homeassistant.helpers.typing import ConfigType as ConfigType, VolSchemaType as VolSchemaType
19
18
  from typing import Any
20
19
 
21
20
  CONF_AVAILABLE_MODES_LIST: str
@@ -62,7 +61,7 @@ class MqttHumidifier(MqttEntity, HumidifierEntity):
62
61
  _payload: dict[str, str]
63
62
  _topic: dict[str, Any]
64
63
  @staticmethod
65
- def config_schema() -> vol.Schema: ...
64
+ def config_schema() -> VolSchemaType: ...
66
65
  _attr_device_class: Incomplete
67
66
  _attr_min_humidity: Incomplete
68
67
  _attr_max_humidity: Incomplete
@@ -1,5 +1,4 @@
1
1
  import httpx
2
- import voluptuous as vol
3
2
  from . import subscription as subscription
4
3
  from .config import MQTT_BASE_SCHEMA as MQTT_BASE_SCHEMA
5
4
  from .mixins import MqttEntity as MqttEntity, async_setup_entity_entry_helper as async_setup_entity_entry_helper
@@ -16,7 +15,7 @@ from homeassistant.core import HomeAssistant as HomeAssistant, callback as callb
16
15
  from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
17
16
  from homeassistant.helpers.httpx_client import get_async_client as get_async_client
18
17
  from homeassistant.helpers.service_info.mqtt import ReceivePayloadType as ReceivePayloadType
19
- from homeassistant.helpers.typing import ConfigType as ConfigType, DiscoveryInfoType as DiscoveryInfoType
18
+ from homeassistant.helpers.typing import ConfigType as ConfigType, DiscoveryInfoType as DiscoveryInfoType, VolSchemaType as VolSchemaType
20
19
  from typing import Any
21
20
 
22
21
  _LOGGER: Incomplete
@@ -45,7 +44,7 @@ class MqttImage(MqttEntity, ImageEntity):
45
44
  _topic: dict[str, Any]
46
45
  def __init__(self, hass: HomeAssistant, config: ConfigType, config_entry: ConfigEntry, discovery_data: DiscoveryInfoType | None) -> None: ...
47
46
  @staticmethod
48
- def config_schema() -> vol.Schema: ...
47
+ def config_schema() -> VolSchemaType: ...
49
48
  _attr_content_type: Incomplete
50
49
  _attr_image_url: Incomplete
51
50
  def _setup_from_config(self, config: ConfigType) -> None: ...
@@ -1,4 +1,3 @@
1
- import voluptuous as vol
2
1
  from . import subscription as subscription
3
2
  from .config import MQTT_BASE_SCHEMA as MQTT_BASE_SCHEMA
4
3
  from .const import CONF_RETAIN as CONF_RETAIN, DEFAULT_OPTIMISTIC as DEFAULT_OPTIMISTIC, DEFAULT_RETAIN as DEFAULT_RETAIN
@@ -15,7 +14,7 @@ from homeassistant.const import CONF_NAME as CONF_NAME, CONF_OPTIMISTIC as CONF_
15
14
  from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
16
15
  from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
17
16
  from homeassistant.helpers.restore_state import RestoreEntity as RestoreEntity
18
- from homeassistant.helpers.typing import ConfigType as ConfigType
17
+ from homeassistant.helpers.typing import ConfigType as ConfigType, VolSchemaType as VolSchemaType
19
18
 
20
19
  _LOGGER: Incomplete
21
20
  CONF_ACTIVITY_STATE_TOPIC: str
@@ -45,7 +44,7 @@ class MqttLawnMower(MqttEntity, LawnMowerEntity, RestoreEntity):
45
44
  _command_topics: dict[str, str]
46
45
  _value_template: Callable[[ReceivePayloadType], ReceivePayloadType]
47
46
  @staticmethod
48
- def config_schema() -> vol.Schema: ...
47
+ def config_schema() -> VolSchemaType: ...
49
48
  _attr_assumed_state: Incomplete
50
49
  _attr_supported_features: Incomplete
51
50
  def _setup_from_config(self, config: ConfigType) -> None: ...
@@ -8,7 +8,7 @@ from homeassistant.components import light as light
8
8
  from homeassistant.config_entries import ConfigEntry as ConfigEntry
9
9
  from homeassistant.core import HomeAssistant as HomeAssistant
10
10
  from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
11
- from homeassistant.helpers.typing import ConfigType as ConfigType
11
+ from homeassistant.helpers.typing import ConfigType as ConfigType, VolSchemaType as VolSchemaType
12
12
  from typing import Any
13
13
 
14
14
  def validate_mqtt_light_discovery(config_value: dict[str, Any]) -> ConfigType: ...
@@ -1,4 +1,3 @@
1
- import voluptuous as vol
2
1
  from .. import subscription as subscription
3
2
  from ..config import MQTT_RW_SCHEMA as MQTT_RW_SCHEMA
4
3
  from ..const import CONF_COMMAND_TOPIC as CONF_COMMAND_TOPIC, CONF_STATE_TOPIC as CONF_STATE_TOPIC, CONF_STATE_VALUE_TEMPLATE as CONF_STATE_VALUE_TEMPLATE, PAYLOAD_NONE as PAYLOAD_NONE
@@ -13,7 +12,7 @@ from homeassistant.components.light import ATTR_BRIGHTNESS as ATTR_BRIGHTNESS, A
13
12
  from homeassistant.const import CONF_NAME as CONF_NAME, CONF_OPTIMISTIC as CONF_OPTIMISTIC, CONF_PAYLOAD_OFF as CONF_PAYLOAD_OFF, CONF_PAYLOAD_ON as CONF_PAYLOAD_ON, STATE_ON as STATE_ON
14
13
  from homeassistant.core import callback as callback
15
14
  from homeassistant.helpers.restore_state import RestoreEntity as RestoreEntity
16
- from homeassistant.helpers.typing import ConfigType as ConfigType
15
+ from homeassistant.helpers.typing import ConfigType as ConfigType, VolSchemaType as VolSchemaType
17
16
  from typing import Any
18
17
 
19
18
  _LOGGER: Incomplete
@@ -90,7 +89,7 @@ class MqttLight(MqttEntity, LightEntity, RestoreEntity):
90
89
  _optimistic_rgbww_color: bool
91
90
  _optimistic_xy_color: bool
92
91
  @staticmethod
93
- def config_schema() -> vol.Schema: ...
92
+ def config_schema() -> VolSchemaType: ...
94
93
  _attr_min_mireds: Incomplete
95
94
  _attr_max_mireds: Incomplete
96
95
  _attr_effect_list: Incomplete
@@ -1,4 +1,3 @@
1
- import voluptuous as vol
2
1
  from .. import subscription as subscription
3
2
  from ..config import DEFAULT_QOS as DEFAULT_QOS, DEFAULT_RETAIN as DEFAULT_RETAIN, MQTT_RW_SCHEMA as MQTT_RW_SCHEMA
4
3
  from ..const import CONF_COMMAND_TOPIC as CONF_COMMAND_TOPIC, CONF_QOS as CONF_QOS, CONF_RETAIN as CONF_RETAIN, CONF_STATE_TOPIC as CONF_STATE_TOPIC
@@ -16,7 +15,7 @@ from homeassistant.core import async_get_hass as async_get_hass, callback as cal
16
15
  from homeassistant.helpers.issue_registry import IssueSeverity as IssueSeverity, async_create_issue as async_create_issue
17
16
  from homeassistant.helpers.json import json_dumps as json_dumps
18
17
  from homeassistant.helpers.restore_state import RestoreEntity as RestoreEntity
19
- from homeassistant.helpers.typing import ConfigType as ConfigType
18
+ from homeassistant.helpers.typing import ConfigType as ConfigType, VolSchemaType as VolSchemaType
20
19
  from homeassistant.util.json import json_loads_object as json_loads_object
21
20
  from typing import Any
22
21
 
@@ -58,7 +57,7 @@ class MqttLightJson(MqttEntity, LightEntity, RestoreEntity):
58
57
  _optimistic: bool
59
58
  _deprecated_color_handling: bool
60
59
  @staticmethod
61
- def config_schema() -> vol.Schema: ...
60
+ def config_schema() -> VolSchemaType: ...
62
61
  _attr_max_mireds: Incomplete
63
62
  _attr_min_mireds: Incomplete
64
63
  _attr_effect_list: Incomplete
@@ -1,4 +1,3 @@
1
- import voluptuous as vol
2
1
  from .. import subscription as subscription
3
2
  from ..config import MQTT_RW_SCHEMA as MQTT_RW_SCHEMA
4
3
  from ..const import CONF_COMMAND_TOPIC as CONF_COMMAND_TOPIC, CONF_STATE_TOPIC as CONF_STATE_TOPIC, PAYLOAD_NONE as PAYLOAD_NONE
@@ -13,7 +12,7 @@ from homeassistant.components.light import ATTR_BRIGHTNESS as ATTR_BRIGHTNESS, A
13
12
  from homeassistant.const import CONF_NAME as CONF_NAME, CONF_OPTIMISTIC as CONF_OPTIMISTIC, CONF_STATE_TEMPLATE as CONF_STATE_TEMPLATE, STATE_OFF as STATE_OFF, STATE_ON as STATE_ON
14
13
  from homeassistant.core import callback as callback
15
14
  from homeassistant.helpers.restore_state import RestoreEntity as RestoreEntity
16
- from homeassistant.helpers.typing import ConfigType as ConfigType, TemplateVarsType as TemplateVarsType
15
+ from homeassistant.helpers.typing import ConfigType as ConfigType, TemplateVarsType as TemplateVarsType, VolSchemaType as VolSchemaType
17
16
  from typing import Any
18
17
 
19
18
  _LOGGER: Incomplete
@@ -45,7 +44,7 @@ class MqttLightTemplate(MqttEntity, LightEntity, RestoreEntity):
45
44
  _fixed_color_mode: ColorMode | str | None
46
45
  _topics: dict[str, str | None]
47
46
  @staticmethod
48
- def config_schema() -> vol.Schema: ...
47
+ def config_schema() -> VolSchemaType: ...
49
48
  _attr_max_mireds: Incomplete
50
49
  _attr_min_mireds: Incomplete
51
50
  _attr_effect_list: Incomplete
@@ -22,7 +22,7 @@ from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEnti
22
22
  from homeassistant.helpers.event import async_track_device_registry_updated_event as async_track_device_registry_updated_event, async_track_entity_registry_updated_event as async_track_entity_registry_updated_event
23
23
  from homeassistant.helpers.issue_registry import IssueSeverity as IssueSeverity, async_create_issue as async_create_issue
24
24
  from homeassistant.helpers.service_info.mqtt import ReceivePayloadType as ReceivePayloadType
25
- from homeassistant.helpers.typing import ConfigType as ConfigType, DiscoveryInfoType as DiscoveryInfoType, UNDEFINED as UNDEFINED, UndefinedType as UndefinedType
25
+ from homeassistant.helpers.typing import ConfigType as ConfigType, DiscoveryInfoType as DiscoveryInfoType, UNDEFINED as UNDEFINED, UndefinedType as UndefinedType, VolSchemaType as VolSchemaType
26
26
  from homeassistant.util.json import json_loads as json_loads
27
27
  from typing import Any, Protocol
28
28
 
@@ -32,7 +32,7 @@ MQTT_ATTRIBUTES_BLOCKED: Incomplete
32
32
  class SetupEntity(Protocol):
33
33
  async def __call__(self, hass: HomeAssistant, async_add_entities: AddEntitiesCallback, config: ConfigType, config_entry: ConfigEntry, discovery_data: DiscoveryInfoType | None = None) -> None: ...
34
34
 
35
- def async_handle_schema_error(discovery_payload: MQTTDiscoveryPayload, err: vol.MultipleInvalid) -> None: ...
35
+ def async_handle_schema_error(discovery_payload: MQTTDiscoveryPayload, err: vol.Invalid) -> None: ...
36
36
  def _handle_discovery_failure(hass: HomeAssistant, discovery_payload: MQTTDiscoveryPayload) -> None: ...
37
37
  def _verify_mqtt_config_entry_enabled_for_discovery(hass: HomeAssistant, domain: str, discovery_payload: MQTTDiscoveryPayload) -> bool: ...
38
38
 
@@ -40,7 +40,7 @@ class _SetupNonEntityHelperCallbackProtocol(Protocol):
40
40
  async def __call__(self, config: ConfigType, discovery_data: DiscoveryInfoType) -> None: ...
41
41
 
42
42
  def async_setup_non_entity_entry_helper(hass: HomeAssistant, domain: str, async_setup: _SetupNonEntityHelperCallbackProtocol, discovery_schema: vol.Schema) -> None: ...
43
- def async_setup_entity_entry_helper(hass: HomeAssistant, entry: ConfigEntry, entity_class: type[MqttEntity] | None, domain: str, async_add_entities: AddEntitiesCallback, discovery_schema: vol.Schema, platform_schema_modern: vol.Schema, schema_class_mapping: dict[str, type[MqttEntity]] | None = None) -> None: ...
43
+ def async_setup_entity_entry_helper(hass: HomeAssistant, entry: ConfigEntry, entity_class: type[MqttEntity] | None, domain: str, async_add_entities: AddEntitiesCallback, discovery_schema: VolSchemaType, platform_schema_modern: VolSchemaType, schema_class_mapping: dict[str, type[MqttEntity]] | None = None) -> None: ...
44
44
  def init_entity_id_from_config(hass: HomeAssistant, entity: Entity, config: ConfigType, entity_id_format: str) -> None: ...
45
45
 
46
46
  class MqttAttributesMixin(Entity):
@@ -154,7 +154,7 @@ class MqttEntity(MqttAttributesMixin, MqttAvailabilityMixin, MqttDiscoveryUpdate
154
154
  async def async_publish_with_config(self, topic: str, payload: PublishPayloadType) -> None: ...
155
155
  @staticmethod
156
156
  @abstractmethod
157
- def config_schema() -> vol.Schema: ...
157
+ def config_schema() -> VolSchemaType: ...
158
158
  _attr_name: Incomplete
159
159
  def _set_entity_name(self, config: ConfigType) -> None: ...
160
160
  _attr_entity_category: Incomplete
@@ -1,5 +1,4 @@
1
1
  import asyncio
2
- import voluptuous as vol
3
2
  from .client import MQTT as MQTT, Subscription as Subscription
4
3
  from .const import DOMAIN as DOMAIN, TEMPLATE_ERRORS as TEMPLATE_ERRORS
5
4
  from .debug_info import TimestampedPublishMessage as TimestampedPublishMessage
@@ -17,7 +16,7 @@ from homeassistant.exceptions import ServiceValidationError as ServiceValidation
17
16
  from homeassistant.helpers import template as template
18
17
  from homeassistant.helpers.entity import Entity as Entity
19
18
  from homeassistant.helpers.service_info.mqtt import ReceivePayloadType as ReceivePayloadType
20
- from homeassistant.helpers.typing import ConfigType as ConfigType, DiscoveryInfoType as DiscoveryInfoType, TemplateVarsType as TemplateVarsType
19
+ from homeassistant.helpers.typing import ConfigType as ConfigType, DiscoveryInfoType as DiscoveryInfoType, TemplateVarsType as TemplateVarsType, VolSchemaType as VolSchemaType
21
20
  from homeassistant.util.hass_dict import HassKey as HassKey
22
21
  from paho.mqtt.client import MQTTMessage as MQTTMessage
23
22
  from typing import TypedDict
@@ -124,7 +123,7 @@ class MqttData:
124
123
  platforms_loaded: set[Platform | str] = ...
125
124
  reload_dispatchers: list[CALLBACK_TYPE] = ...
126
125
  reload_handlers: dict[str, CALLBACK_TYPE] = ...
127
- reload_schema: dict[str, vol.Schema] = ...
126
+ reload_schema: dict[str, VolSchemaType] = ...
128
127
  state_write_requests: EntityTopicState = ...
129
128
  subscriptions_to_restore: list[Subscription] = ...
130
129
  tags: dict[str, dict[str, MQTTTagScanner]] = ...
@@ -1,4 +1,3 @@
1
- import voluptuous as vol
2
1
  from . import subscription as subscription
3
2
  from .config import MQTT_RW_SCHEMA as MQTT_RW_SCHEMA
4
3
  from .const import CONF_COMMAND_TEMPLATE as CONF_COMMAND_TEMPLATE, CONF_COMMAND_TOPIC as CONF_COMMAND_TOPIC, CONF_PAYLOAD_RESET as CONF_PAYLOAD_RESET, CONF_STATE_TOPIC as CONF_STATE_TOPIC
@@ -13,7 +12,7 @@ from homeassistant.config_entries import ConfigEntry as ConfigEntry
13
12
  from homeassistant.const import CONF_DEVICE_CLASS as CONF_DEVICE_CLASS, CONF_MODE as CONF_MODE, CONF_NAME as CONF_NAME, CONF_OPTIMISTIC as CONF_OPTIMISTIC, CONF_UNIT_OF_MEASUREMENT as CONF_UNIT_OF_MEASUREMENT, CONF_VALUE_TEMPLATE as CONF_VALUE_TEMPLATE
14
13
  from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
15
14
  from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
16
- from homeassistant.helpers.typing import ConfigType as ConfigType
15
+ from homeassistant.helpers.typing import ConfigType as ConfigType, VolSchemaType as VolSchemaType
17
16
 
18
17
  _LOGGER: Incomplete
19
18
  CONF_MIN: str
@@ -39,7 +38,7 @@ class MqttNumber(MqttEntity, RestoreNumber):
39
38
  _command_template: Callable[[PublishPayloadType], PublishPayloadType]
40
39
  _value_template: Callable[[ReceivePayloadType], ReceivePayloadType]
41
40
  @staticmethod
42
- def config_schema() -> vol.Schema: ...
41
+ def config_schema() -> VolSchemaType: ...
43
42
  _config: Incomplete
44
43
  _attr_assumed_state: Incomplete
45
44
  _attr_device_class: Incomplete
@@ -1,4 +1,3 @@
1
- import voluptuous as vol
2
1
  from . import subscription as subscription
3
2
  from .config import MQTT_RW_SCHEMA as MQTT_RW_SCHEMA
4
3
  from .const import CONF_COMMAND_TEMPLATE as CONF_COMMAND_TEMPLATE, CONF_COMMAND_TOPIC as CONF_COMMAND_TOPIC, CONF_STATE_TOPIC as CONF_STATE_TOPIC
@@ -14,7 +13,7 @@ from homeassistant.const import CONF_NAME as CONF_NAME, CONF_OPTIMISTIC as CONF_
14
13
  from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
15
14
  from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
16
15
  from homeassistant.helpers.restore_state import RestoreEntity as RestoreEntity
17
- from homeassistant.helpers.typing import ConfigType as ConfigType
16
+ from homeassistant.helpers.typing import ConfigType as ConfigType, VolSchemaType as VolSchemaType
18
17
 
19
18
  _LOGGER: Incomplete
20
19
  CONF_OPTIONS: str
@@ -34,7 +33,7 @@ class MqttSelect(MqttEntity, SelectEntity, RestoreEntity):
34
33
  _value_template: Callable[[ReceivePayloadType], ReceivePayloadType]
35
34
  _optimistic: bool
36
35
  @staticmethod
37
- def config_schema() -> vol.Schema: ...
36
+ def config_schema() -> VolSchemaType: ...
38
37
  _attr_assumed_state: Incomplete
39
38
  _attr_options: Incomplete
40
39
  def _setup_from_config(self, config: ConfigType) -> None: ...
@@ -1,4 +1,3 @@
1
- import voluptuous as vol
2
1
  from . import subscription as subscription
3
2
  from .config import MQTT_RO_SCHEMA as MQTT_RO_SCHEMA
4
3
  from .const import CONF_STATE_TOPIC as CONF_STATE_TOPIC, PAYLOAD_NONE as PAYLOAD_NONE
@@ -16,7 +15,7 @@ from homeassistant.const import CONF_DEVICE_CLASS as CONF_DEVICE_CLASS, CONF_FOR
16
15
  from homeassistant.core import CALLBACK_TYPE as CALLBACK_TYPE, HomeAssistant as HomeAssistant, State as State, callback as callback
17
16
  from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
18
17
  from homeassistant.helpers.event import async_call_later as async_call_later
19
- from homeassistant.helpers.typing import ConfigType as ConfigType
18
+ from homeassistant.helpers.typing import ConfigType as ConfigType, VolSchemaType as VolSchemaType
20
19
 
21
20
  _LOGGER: Incomplete
22
21
  CONF_EXPIRE_AFTER: str
@@ -48,7 +47,7 @@ class MqttSensor(MqttEntity, RestoreSensor):
48
47
  async def mqtt_async_added_to_hass(self) -> None: ...
49
48
  async def async_will_remove_from_hass(self) -> None: ...
50
49
  @staticmethod
51
- def config_schema() -> vol.Schema: ...
50
+ def config_schema() -> VolSchemaType: ...
52
51
  _attr_device_class: Incomplete
53
52
  _attr_force_update: Incomplete
54
53
  _attr_suggested_display_precision: Incomplete
@@ -1,4 +1,3 @@
1
- import voluptuous as vol
2
1
  from . import subscription as subscription
3
2
  from .config import MQTT_RW_SCHEMA as MQTT_RW_SCHEMA
4
3
  from .const import CONF_COMMAND_TEMPLATE as CONF_COMMAND_TEMPLATE, CONF_COMMAND_TOPIC as CONF_COMMAND_TOPIC, CONF_STATE_TOPIC as CONF_STATE_TOPIC, CONF_STATE_VALUE_TEMPLATE as CONF_STATE_VALUE_TEMPLATE, PAYLOAD_EMPTY_JSON as PAYLOAD_EMPTY_JSON, PAYLOAD_NONE as PAYLOAD_NONE
@@ -15,7 +14,7 @@ from homeassistant.core import HomeAssistant as HomeAssistant, callback as callb
15
14
  from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
16
15
  from homeassistant.helpers.json import json_dumps as json_dumps
17
16
  from homeassistant.helpers.template import Template as Template
18
- from homeassistant.helpers.typing import ConfigType as ConfigType, TemplateVarsType as TemplateVarsType
17
+ from homeassistant.helpers.typing import ConfigType as ConfigType, TemplateVarsType as TemplateVarsType, VolSchemaType as VolSchemaType
19
18
  from homeassistant.util.json import JSON_DECODE_EXCEPTIONS as JSON_DECODE_EXCEPTIONS, json_loads_object as json_loads_object
20
19
  from typing import Any
21
20
 
@@ -50,7 +49,7 @@ class MqttSiren(MqttEntity, SirenEntity):
50
49
  _state_off: str
51
50
  _optimistic: bool
52
51
  @staticmethod
53
- def config_schema() -> vol.Schema: ...
52
+ def config_schema() -> VolSchemaType: ...
54
53
  _attr_available_tones: Incomplete
55
54
  _attr_supported_features: Incomplete
56
55
  _attr_assumed_state: Incomplete