homeassistant-stubs 2023.3.6__py3-none-any.whl → 2023.4.0b1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (333) hide show
  1. homeassistant-stubs/auth/__init__.pyi +1 -1
  2. homeassistant-stubs/auth/jwt_wrapper.pyi +14 -0
  3. homeassistant-stubs/auth/permissions/models.pyi +3 -3
  4. homeassistant-stubs/bootstrap.pyi +1 -1
  5. homeassistant-stubs/components/aladdin_connect/config_flow.pyi +0 -2
  6. homeassistant-stubs/components/aladdin_connect/cover.pyi +5 -7
  7. homeassistant-stubs/components/alarm_control_panel/device_action.pyi +0 -1
  8. homeassistant-stubs/components/alarm_control_panel/device_condition.pyi +1 -1
  9. homeassistant-stubs/components/alarm_control_panel/device_trigger.pyi +0 -1
  10. homeassistant-stubs/components/amazon_polly/tts.pyi +2 -2
  11. homeassistant-stubs/components/amcrest/camera.pyi +0 -1
  12. homeassistant-stubs/components/awair/sensor.pyi +2 -1
  13. homeassistant-stubs/components/backup/manager.pyi +2 -1
  14. homeassistant-stubs/components/bayesian/issues.pyi +0 -1
  15. homeassistant-stubs/components/bluetooth/wrappers.pyi +1 -0
  16. homeassistant-stubs/components/bmw_connected_drive/config_flow.pyi +3 -0
  17. homeassistant-stubs/components/bmw_connected_drive/coordinator.pyi +1 -0
  18. homeassistant-stubs/components/braviatv/media_player.pyi +2 -2
  19. homeassistant-stubs/components/button/device_action.pyi +0 -1
  20. homeassistant-stubs/components/button/device_trigger.pyi +0 -1
  21. homeassistant-stubs/components/calendar/__init__.pyi +8 -4
  22. homeassistant-stubs/components/calendar/const.pyi +2 -2
  23. homeassistant-stubs/components/calendar/trigger.pyi +25 -8
  24. homeassistant-stubs/components/camera/__init__.pyi +1 -1
  25. homeassistant-stubs/components/cover/device_action.pyi +0 -1
  26. homeassistant-stubs/components/cover/device_condition.pyi +1 -1
  27. homeassistant-stubs/components/cover/device_trigger.pyi +0 -1
  28. homeassistant-stubs/components/demo/sensor.pyi +2 -1
  29. homeassistant-stubs/components/demo/stt.pyi +2 -2
  30. homeassistant-stubs/components/device_automation/condition.pyi +2 -4
  31. homeassistant-stubs/components/device_tracker/device_condition.pyi +1 -1
  32. homeassistant-stubs/components/device_tracker/device_trigger.pyi +0 -1
  33. homeassistant-stubs/components/devolo_home_network/device_tracker.pyi +0 -1
  34. homeassistant-stubs/components/devolo_home_network/entity.pyi +1 -0
  35. homeassistant-stubs/components/dlna_dmr/config_flow.pyi +0 -1
  36. homeassistant-stubs/components/dlna_dmr/media_player.pyi +1 -2
  37. homeassistant-stubs/components/dormakaba_dkey/__init__.pyi +1 -1
  38. homeassistant-stubs/components/dormakaba_dkey/config_flow.pyi +5 -1
  39. homeassistant-stubs/components/efergy/sensor.pyi +2 -2
  40. homeassistant-stubs/components/emulated_hue/hue_api.pyi +1 -0
  41. homeassistant-stubs/components/energy/types.pyi +2 -2
  42. homeassistant-stubs/components/energy/websocket_api.pyi +1 -0
  43. homeassistant-stubs/components/esphome/bluetooth/client.pyi +3 -1
  44. homeassistant-stubs/components/esphome/entry_data.pyi +1 -0
  45. homeassistant-stubs/components/esphome/media_player.pyi +1 -1
  46. homeassistant-stubs/components/fan/device_condition.pyi +1 -1
  47. homeassistant-stubs/components/filesize/__init__.pyi +1 -2
  48. homeassistant-stubs/components/fitbit/sensor.pyi +1 -1
  49. homeassistant-stubs/components/fritz/binary_sensor.pyi +7 -11
  50. homeassistant-stubs/components/fritz/common.pyi +25 -3
  51. homeassistant-stubs/components/fritz/sensor.pyi +6 -15
  52. homeassistant-stubs/components/fritzbox/sensor.pyi +0 -1
  53. homeassistant-stubs/components/fronius/coordinator.pyi +2 -3
  54. homeassistant-stubs/components/fronius/sensor.pyi +13 -8
  55. homeassistant-stubs/components/fully_kiosk/media_player.pyi +3 -3
  56. homeassistant-stubs/components/fully_kiosk/sensor.pyi +3 -3
  57. homeassistant-stubs/components/gios/__init__.pyi +3 -3
  58. homeassistant-stubs/components/gios/const.pyi +0 -2
  59. homeassistant-stubs/components/gios/sensor.pyi +10 -13
  60. homeassistant-stubs/components/google/__init__.pyi +1 -1
  61. homeassistant-stubs/components/google/calendar.pyi +1 -1
  62. homeassistant-stubs/components/google/const.pyi +1 -0
  63. homeassistant-stubs/components/group/media_player.pyi +4 -3
  64. homeassistant-stubs/components/group/notify.pyi +1 -1
  65. homeassistant-stubs/components/group/sensor.pyi +2 -0
  66. homeassistant-stubs/components/guardian/util.pyi +0 -1
  67. homeassistant-stubs/components/history/websocket_api.pyi +2 -1
  68. homeassistant-stubs/components/homeassistant_alerts/__init__.pyi +4 -2
  69. homeassistant-stubs/components/homeassistant_hardware/silabs_multiprotocol_addon.pyi +7 -2
  70. homeassistant-stubs/components/homeassistant_sky_connect/__init__.pyi +2 -8
  71. homeassistant-stubs/components/homeassistant_yellow/__init__.pyi +3 -7
  72. homeassistant-stubs/components/homekit/__init__.pyi +6 -6
  73. homeassistant-stubs/components/homekit/config_flow.pyi +2 -2
  74. homeassistant-stubs/components/homekit/type_triggers.pyi +0 -1
  75. homeassistant-stubs/components/http/__init__.pyi +18 -1
  76. homeassistant-stubs/components/http/auth.pyi +1 -0
  77. homeassistant-stubs/components/http/security_filter.pyi +1 -0
  78. homeassistant-stubs/components/huawei_lte/__init__.pyi +1 -1
  79. homeassistant-stubs/components/huawei_lte/device_tracker.pyi +0 -1
  80. homeassistant-stubs/components/isy994/lock.pyi +8 -3
  81. homeassistant-stubs/components/isy994/services.pyi +6 -0
  82. homeassistant-stubs/components/jellyfin/coordinator.pyi +4 -2
  83. homeassistant-stubs/components/jellyfin/media_player.pyi +3 -3
  84. homeassistant-stubs/components/knx/__init__.pyi +3 -2
  85. homeassistant-stubs/components/knx/device.pyi +18 -0
  86. homeassistant-stubs/components/knx/light.pyi +2 -2
  87. homeassistant-stubs/components/knx/sensor.pyi +33 -2
  88. homeassistant-stubs/components/kraken/sensor.pyi +0 -1
  89. homeassistant-stubs/components/lametric/__init__.pyi +1 -2
  90. homeassistant-stubs/components/lidarr/const.pyi +0 -2
  91. homeassistant-stubs/components/lifx/__init__.pyi +2 -2
  92. homeassistant-stubs/components/light/intent.pyi +1 -1
  93. homeassistant-stubs/components/litejet/__init__.pyi +14 -0
  94. homeassistant-stubs/components/litejet/config_flow.pyi +18 -0
  95. homeassistant-stubs/components/litejet/const.pyi +8 -0
  96. homeassistant-stubs/components/litejet/diagnostics.pyi +7 -0
  97. homeassistant-stubs/components/litejet/light.pyi +39 -0
  98. homeassistant-stubs/components/litejet/scene.pyi +32 -0
  99. homeassistant-stubs/components/litejet/switch.pyi +37 -0
  100. homeassistant-stubs/components/litejet/trigger.pyi +16 -0
  101. homeassistant-stubs/components/litterrobot/select.pyi +11 -6
  102. homeassistant-stubs/components/lock/device_action.pyi +0 -1
  103. homeassistant-stubs/components/lock/device_condition.pyi +1 -1
  104. homeassistant-stubs/components/lock/device_trigger.pyi +0 -1
  105. homeassistant-stubs/components/logbook/__init__.pyi +3 -3
  106. homeassistant-stubs/components/logbook/const.pyi +0 -2
  107. homeassistant-stubs/components/logbook/helpers.pyi +1 -1
  108. homeassistant-stubs/components/logbook/models.pyi +25 -7
  109. homeassistant-stubs/components/logbook/processor.pyi +8 -7
  110. homeassistant-stubs/components/logbook/queries/__init__.pyi +3 -1
  111. homeassistant-stubs/components/logbook/queries/all.pyi +4 -4
  112. homeassistant-stubs/components/logbook/queries/common.pyi +2 -2
  113. homeassistant-stubs/components/logbook/queries/devices.pyi +1 -1
  114. homeassistant-stubs/components/logbook/queries/entities.pyi +6 -6
  115. homeassistant-stubs/components/logbook/queries/entities_and_devices.pyi +5 -5
  116. homeassistant-stubs/components/logbook/websocket_api.pyi +2 -2
  117. homeassistant-stubs/components/logger/helpers.pyi +1 -1
  118. homeassistant-stubs/components/logger/websocket_api.pyi +1 -1
  119. homeassistant-stubs/components/matter/binary_sensor.pyi +5 -1
  120. homeassistant-stubs/components/matter/entity.pyi +5 -1
  121. homeassistant-stubs/components/matter/lock.pyi +44 -0
  122. homeassistant-stubs/components/matter/models.pyi +2 -9
  123. homeassistant-stubs/components/matter/sensor.pyi +5 -1
  124. homeassistant-stubs/components/media_player/__init__.pyi +2 -2
  125. homeassistant-stubs/components/media_player/device_condition.pyi +1 -1
  126. homeassistant-stubs/components/media_player/device_trigger.pyi +0 -1
  127. homeassistant-stubs/components/metoffice/__init__.pyi +0 -2
  128. homeassistant-stubs/components/metoffice/sensor.pyi +2 -1
  129. homeassistant-stubs/components/mikrotik/const.pyi +2 -0
  130. homeassistant-stubs/components/mikrotik/device_tracker.pyi +0 -1
  131. homeassistant-stubs/components/mikrotik/hub.pyi +2 -1
  132. homeassistant-stubs/components/modbus/__init__.pyi +1 -1
  133. homeassistant-stubs/components/modbus/climate.pyi +3 -1
  134. homeassistant-stubs/components/modbus/const.pyi +1 -0
  135. homeassistant-stubs/components/modbus/modbus.pyi +1 -1
  136. homeassistant-stubs/components/modem_callerid/button.pyi +2 -2
  137. homeassistant-stubs/components/modem_callerid/sensor.pyi +2 -2
  138. homeassistant-stubs/components/moon/config_flow.pyi +0 -2
  139. homeassistant-stubs/components/moon/sensor.pyi +2 -7
  140. homeassistant-stubs/components/mqtt/__init__.pyi +5 -7
  141. homeassistant-stubs/components/mqtt/client.pyi +24 -2
  142. homeassistant-stubs/components/mqtt/config_integration.pyi +1 -1
  143. homeassistant-stubs/components/mqtt/const.pyi +0 -1
  144. homeassistant-stubs/components/mqtt/models.pyi +2 -1
  145. homeassistant-stubs/components/mysensors/__init__.pyi +4 -9
  146. homeassistant-stubs/components/mysensors/const.pyi +1 -3
  147. homeassistant-stubs/components/mysensors/device.pyi +1 -1
  148. homeassistant-stubs/components/mysensors/light.pyi +1 -1
  149. homeassistant-stubs/components/mysensors/switch.pyi +6 -20
  150. homeassistant-stubs/components/nam/__init__.pyi +0 -2
  151. homeassistant-stubs/components/nam/sensor.pyi +0 -1
  152. homeassistant-stubs/components/netatmo/device_trigger.pyi +0 -1
  153. homeassistant-stubs/components/nissan_leaf/sensor.pyi +2 -3
  154. homeassistant-stubs/components/notify/legacy.pyi +2 -2
  155. homeassistant-stubs/components/number/const.pyi +2 -0
  156. homeassistant-stubs/components/number/device_action.pyi +0 -1
  157. homeassistant-stubs/components/otbr/__init__.pyi +3 -0
  158. homeassistant-stubs/components/otbr/config_flow.pyi +3 -2
  159. homeassistant-stubs/components/otbr/util.pyi +6 -0
  160. homeassistant-stubs/components/otbr/websocket_api.pyi +7 -3
  161. homeassistant-stubs/components/overkiz/climate_entities/__init__.pyi +1 -0
  162. homeassistant-stubs/components/overkiz/climate_entities/atlantic_electrical_heater.pyi +2 -0
  163. homeassistant-stubs/components/overkiz/climate_entities/atlantic_electrical_heater_with_adjustable_temperature_setpoint.pyi +2 -0
  164. homeassistant-stubs/components/overkiz/climate_entities/atlantic_electrical_towel_dryer.pyi +2 -0
  165. homeassistant-stubs/components/overkiz/climate_entities/atlantic_heat_recovery_ventilation.pyi +2 -0
  166. homeassistant-stubs/components/overkiz/climate_entities/atlantic_pass_apc_heating_zone.pyi +2 -0
  167. homeassistant-stubs/components/overkiz/climate_entities/somfy_thermostat.pyi +2 -2
  168. homeassistant-stubs/components/overkiz/climate_entities/valve_heating_temperature_interface.pyi +37 -0
  169. homeassistant-stubs/components/overkiz/const.pyi +2 -1
  170. homeassistant-stubs/components/overkiz/sensor.pyi +3 -1
  171. homeassistant-stubs/components/overkiz/switch.pyi +2 -2
  172. homeassistant-stubs/components/pi_hole/sensor.pyi +2 -2
  173. homeassistant-stubs/components/rainmachine/util.pyi +0 -1
  174. homeassistant-stubs/components/recorder/__init__.pyi +3 -3
  175. homeassistant-stubs/components/recorder/auto_repairs/__init__.pyi +0 -0
  176. homeassistant-stubs/components/recorder/auto_repairs/events/__init__.pyi +0 -0
  177. homeassistant-stubs/components/recorder/auto_repairs/events/schema.pyi +6 -0
  178. homeassistant-stubs/components/recorder/auto_repairs/schema.pyi +23 -0
  179. homeassistant-stubs/components/recorder/auto_repairs/states/schema.pyi +9 -0
  180. homeassistant-stubs/components/recorder/auto_repairs/statistics/__init__.pyi +0 -0
  181. homeassistant-stubs/components/recorder/auto_repairs/statistics/duplicates.pyi +19 -0
  182. homeassistant-stubs/components/recorder/auto_repairs/statistics/schema.pyi +9 -0
  183. homeassistant-stubs/components/recorder/const.pyi +10 -0
  184. homeassistant-stubs/components/recorder/core.pyi +33 -29
  185. homeassistant-stubs/components/recorder/db_schema.pyi +36 -6
  186. homeassistant-stubs/components/recorder/entity_registry.pyi +10 -0
  187. homeassistant-stubs/components/recorder/filters.pyi +13 -11
  188. homeassistant-stubs/components/recorder/history/__init__.pyi +13 -0
  189. homeassistant-stubs/components/recorder/history/common.pyi +4 -0
  190. homeassistant-stubs/components/recorder/history/const.pyi +9 -0
  191. homeassistant-stubs/components/recorder/{history.pyi → history/legacy.pyi} +9 -14
  192. homeassistant-stubs/components/recorder/history/modern.pyi +41 -0
  193. homeassistant-stubs/components/recorder/migration.pyi +34 -6
  194. homeassistant-stubs/components/recorder/models/__init__.pyi +5 -0
  195. homeassistant-stubs/components/recorder/models/context.pyi +6 -0
  196. homeassistant-stubs/components/recorder/models/database.pyi +14 -0
  197. homeassistant-stubs/components/recorder/models/legacy.pyi +39 -0
  198. homeassistant-stubs/components/recorder/models/state.pyi +43 -0
  199. homeassistant-stubs/components/recorder/models/state_attributes.pyi +9 -0
  200. homeassistant-stubs/components/recorder/models/statistics.pyi +50 -0
  201. homeassistant-stubs/components/recorder/models/time.pyi +20 -0
  202. homeassistant-stubs/components/recorder/purge.pyi +9 -12
  203. homeassistant-stubs/components/recorder/queries.pyi +19 -3
  204. homeassistant-stubs/components/recorder/services.pyi +1 -1
  205. homeassistant-stubs/components/recorder/statistics.pyi +40 -42
  206. homeassistant-stubs/components/recorder/table_managers/__init__.pyi +20 -0
  207. homeassistant-stubs/components/recorder/table_managers/event_data.pyi +26 -0
  208. homeassistant-stubs/components/recorder/table_managers/event_types.pyi +20 -0
  209. homeassistant-stubs/components/recorder/{run_history.pyi → table_managers/recorder_runs.pyi} +3 -3
  210. homeassistant-stubs/components/recorder/table_managers/state_attributes.pyi +29 -0
  211. homeassistant-stubs/components/recorder/table_managers/states.pyi +14 -0
  212. homeassistant-stubs/components/recorder/table_managers/states_meta.pyi +23 -0
  213. homeassistant-stubs/components/recorder/table_managers/statistics_meta.pyi +35 -0
  214. homeassistant-stubs/components/recorder/tasks.pyi +39 -4
  215. homeassistant-stubs/components/recorder/util.pyi +2 -1
  216. homeassistant-stubs/components/recorder/websocket_api.pyi +2 -2
  217. homeassistant-stubs/components/renault/renault_vehicle.pyi +1 -0
  218. homeassistant-stubs/components/rest/__init__.pyi +1 -1
  219. homeassistant-stubs/components/rest/const.pyi +2 -0
  220. homeassistant-stubs/components/rest/data.pyi +3 -2
  221. homeassistant-stubs/components/rest/schema.pyi +1 -1
  222. homeassistant-stubs/components/ridwell/calendar.pyi +22 -0
  223. homeassistant-stubs/components/ridwell/coordinator.pyi +2 -2
  224. homeassistant-stubs/components/ridwell/entity.pyi +2 -4
  225. homeassistant-stubs/components/ridwell/sensor.pyi +2 -1
  226. homeassistant-stubs/components/ridwell/switch.pyi +4 -0
  227. homeassistant-stubs/components/roku/media_player.pyi +4 -4
  228. homeassistant-stubs/components/samsungtv/device_trigger.pyi +19 -0
  229. homeassistant-stubs/components/samsungtv/helpers.pyi +8 -0
  230. homeassistant-stubs/components/samsungtv/media_player.pyi +7 -2
  231. homeassistant-stubs/components/samsungtv/trigger.pyi +12 -0
  232. homeassistant-stubs/components/samsungtv/triggers/__init__.pyi +0 -0
  233. homeassistant-stubs/components/samsungtv/triggers/turn_on.pyi +14 -0
  234. homeassistant-stubs/components/scrape/config_flow.pyi +1 -1
  235. homeassistant-stubs/components/scrape/const.pyi +2 -0
  236. homeassistant-stubs/components/scrape/sensor.pyi +3 -6
  237. homeassistant-stubs/components/select/device_action.pyi +0 -1
  238. homeassistant-stubs/components/select/device_condition.pyi +1 -1
  239. homeassistant-stubs/components/select/device_trigger.pyi +0 -1
  240. homeassistant-stubs/components/sensor/const.pyi +2 -0
  241. homeassistant-stubs/components/sensor/recorder.pyi +3 -1
  242. homeassistant-stubs/components/sfr_box/__init__.pyi +1 -1
  243. homeassistant-stubs/components/sfr_box/binary_sensor.pyi +3 -1
  244. homeassistant-stubs/components/sfr_box/models.pyi +4 -2
  245. homeassistant-stubs/components/sfr_box/sensor.pyi +2 -1
  246. homeassistant-stubs/components/sleepiq/entity.pyi +0 -1
  247. homeassistant-stubs/components/statistics/sensor.pyi +2 -2
  248. homeassistant-stubs/components/sun/__init__.pyi +1 -1
  249. homeassistant-stubs/components/sun/sensor.pyi +36 -0
  250. homeassistant-stubs/components/switcher_kis/__init__.pyi +1 -1
  251. homeassistant-stubs/components/switcher_kis/button.pyi +0 -1
  252. homeassistant-stubs/components/switcher_kis/climate.pyi +0 -1
  253. homeassistant-stubs/components/switcher_kis/cover.pyi +0 -1
  254. homeassistant-stubs/components/switcher_kis/sensor.pyi +0 -1
  255. homeassistant-stubs/components/switcher_kis/switch.pyi +1 -1
  256. homeassistant-stubs/components/synology_dsm/sensor.pyi +5 -4
  257. homeassistant-stubs/components/threshold/__init__.pyi +7 -0
  258. homeassistant-stubs/components/threshold/binary_sensor.pyi +55 -0
  259. homeassistant-stubs/components/threshold/config_flow.pyi +19 -0
  260. homeassistant-stubs/components/threshold/const.pyi +5 -0
  261. homeassistant-stubs/components/tibber/config_flow.pyi +3 -0
  262. homeassistant-stubs/components/tibber/sensor.pyi +2 -1
  263. homeassistant-stubs/components/tplink/light.pyi +1 -1
  264. homeassistant-stubs/components/tplink_omada/__init__.pyi +1 -0
  265. homeassistant-stubs/components/tplink_omada/controller.pyi +21 -0
  266. homeassistant-stubs/components/tplink_omada/coordinator.pyi +3 -4
  267. homeassistant-stubs/components/tplink_omada/entity.pyi +6 -4
  268. homeassistant-stubs/components/tplink_omada/switch.pyi +4 -6
  269. homeassistant-stubs/components/tplink_omada/update.pyi +43 -0
  270. homeassistant-stubs/components/tradfri/sensor.pyi +0 -1
  271. homeassistant-stubs/components/tts/__init__.pyi +2 -1
  272. homeassistant-stubs/components/unifi/__init__.pyi +33 -0
  273. homeassistant-stubs/components/unifi/config_flow.pyi +46 -0
  274. homeassistant-stubs/components/unifi/const.pyi +30 -0
  275. homeassistant-stubs/components/unifi/controller.pyi +77 -0
  276. homeassistant-stubs/components/unifi/device_tracker.pyi +70 -0
  277. homeassistant-stubs/components/unifi/diagnostics.pyi +19 -0
  278. homeassistant-stubs/components/unifi/entity.pyi +58 -0
  279. homeassistant-stubs/components/unifi/errors.pyi +8 -0
  280. homeassistant-stubs/components/unifi/sensor.pyi +37 -0
  281. homeassistant-stubs/components/unifi/services.pyi +17 -0
  282. homeassistant-stubs/components/unifi/switch.pyi +55 -0
  283. homeassistant-stubs/components/unifi/update.pyi +1 -1
  284. homeassistant-stubs/components/unifiprotect/select.pyi +2 -2
  285. homeassistant-stubs/components/vacuum/device_action.pyi +0 -1
  286. homeassistant-stubs/components/vacuum/device_condition.pyi +1 -1
  287. homeassistant-stubs/components/vacuum/device_trigger.pyi +0 -1
  288. homeassistant-stubs/components/velbus/__init__.pyi +0 -2
  289. homeassistant-stubs/components/velbus/light.pyi +1 -1
  290. homeassistant-stubs/components/velbus/select.pyi +21 -0
  291. homeassistant-stubs/components/water_heater/device_action.pyi +0 -1
  292. homeassistant-stubs/components/weather/__init__.pyi +2 -23
  293. homeassistant-stubs/components/weather/const.pyi +25 -0
  294. homeassistant-stubs/components/weather/websocket_api.pyi +7 -0
  295. homeassistant-stubs/components/webostv/trigger.pyi +3 -3
  296. homeassistant-stubs/components/webostv/triggers/__init__.pyi +0 -5
  297. homeassistant-stubs/components/websocket_api/commands.pyi +2 -2
  298. homeassistant-stubs/components/websocket_api/connection.pyi +7 -1
  299. homeassistant-stubs/components/zwave_js/__init__.pyi +4 -4
  300. homeassistant-stubs/components/zwave_js/api.pyi +0 -1
  301. homeassistant-stubs/components/zwave_js/device_action.pyi +0 -1
  302. homeassistant-stubs/components/zwave_js/device_trigger.pyi +0 -1
  303. homeassistant-stubs/components/zwave_js/diagnostics.pyi +2 -1
  304. homeassistant-stubs/components/zwave_js/discovery.pyi +1 -1
  305. homeassistant-stubs/components/zwave_js/update.pyi +18 -8
  306. homeassistant-stubs/config_entries.pyi +4 -1
  307. homeassistant-stubs/core.pyi +4 -3
  308. homeassistant-stubs/helpers/condition.pyi +11 -3
  309. homeassistant-stubs/helpers/config_validation.pyi +1 -1
  310. homeassistant-stubs/helpers/debounce.pyi +1 -0
  311. homeassistant-stubs/helpers/device_registry.pyi +1 -1
  312. homeassistant-stubs/helpers/entity.pyi +1 -0
  313. homeassistant-stubs/helpers/entity_platform.pyi +2 -1
  314. homeassistant-stubs/helpers/entity_registry.pyi +9 -1
  315. homeassistant-stubs/helpers/event.pyi +3 -1
  316. homeassistant-stubs/helpers/httpx_client.pyi +1 -0
  317. homeassistant-stubs/helpers/integration_platform.pyi +3 -3
  318. homeassistant-stubs/helpers/script.pyi +5 -3
  319. homeassistant-stubs/helpers/selector.pyi +29 -12
  320. homeassistant-stubs/helpers/service.pyi +11 -0
  321. homeassistant-stubs/helpers/template.pyi +24 -3
  322. homeassistant-stubs/scripts/check_config.pyi +0 -1
  323. homeassistant-stubs/util/ssl.pyi +8 -0
  324. homeassistant-stubs/util/ulid.pyi +2 -1
  325. homeassistant-stubs/util/yaml/dumper.pyi +1 -1
  326. homeassistant-stubs/util/yaml/loader.pyi +4 -5
  327. homeassistant-stubs/util/yaml/objects.pyi +1 -0
  328. {homeassistant_stubs-2023.3.6.dist-info → homeassistant_stubs-2023.4.0b1.dist-info}/METADATA +2 -2
  329. {homeassistant_stubs-2023.3.6.dist-info → homeassistant_stubs-2023.4.0b1.dist-info}/RECORD +331 -265
  330. homeassistant-stubs/components/mysensors/notify.pyi +0 -23
  331. homeassistant-stubs/components/recorder/models.pyi +0 -148
  332. {homeassistant_stubs-2023.3.6.dist-info → homeassistant_stubs-2023.4.0b1.dist-info}/LICENSE +0 -0
  333. {homeassistant_stubs-2023.3.6.dist-info → homeassistant_stubs-2023.4.0b1.dist-info}/WHEEL +0 -0
@@ -2,6 +2,7 @@ from .const import DOMAIN as DOMAIN
2
2
  from .coordinator import RidwellDataUpdateCoordinator as RidwellDataUpdateCoordinator
3
3
  from .entity import RidwellEntity as RidwellEntity
4
4
  from _typeshed import Incomplete
5
+ from aioridwell.model import RidwellAccount as RidwellAccount
5
6
  from homeassistant.components.switch import SwitchEntity as SwitchEntity, SwitchEntityDescription as SwitchEntityDescription
6
7
  from homeassistant.config_entries import ConfigEntry as ConfigEntry
7
8
  from homeassistant.core import HomeAssistant as HomeAssistant
@@ -15,6 +16,9 @@ SWITCH_DESCRIPTION: Incomplete
15
16
  async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
16
17
 
17
18
  class RidwellSwitch(RidwellEntity, SwitchEntity):
19
+ _attr_unique_id: Incomplete
20
+ entity_description: Incomplete
21
+ def __init__(self, coordinator: RidwellDataUpdateCoordinator, account: RidwellAccount, description: SwitchEntityDescription) -> None: ...
18
22
  @property
19
23
  def is_on(self) -> bool: ...
20
24
  async def async_turn_off(self, **kwargs: Any) -> None: ...
@@ -52,10 +52,10 @@ class RokuMediaPlayer(RokuEntity, MediaPlayerEntity):
52
52
  @property
53
53
  def source(self) -> Union[str, None]: ...
54
54
  @property
55
- def source_list(self) -> list: ...
55
+ def source_list(self) -> list[str]: ...
56
56
  async def search(self, keyword: str) -> None: ...
57
- async def async_get_browse_image(self, media_content_type: str, media_content_id: str, media_image_id: Union[str, None] = ...) -> tuple[Union[bytes, None], Union[str, None]]: ...
58
- async def async_browse_media(self, media_content_type: Union[str, None] = ..., media_content_id: Union[str, None] = ...) -> BrowseMedia: ...
57
+ async def async_get_browse_image(self, media_content_type: Union[MediaType, str], media_content_id: str, media_image_id: Union[str, None] = ...) -> tuple[Union[bytes, None], Union[str, None]]: ...
58
+ async def async_browse_media(self, media_content_type: Union[MediaType, str, None] = ..., media_content_id: Union[str, None] = ...) -> BrowseMedia: ...
59
59
  async def async_turn_on(self) -> None: ...
60
60
  async def async_turn_off(self) -> None: ...
61
61
  async def async_media_pause(self) -> None: ...
@@ -66,5 +66,5 @@ class RokuMediaPlayer(RokuEntity, MediaPlayerEntity):
66
66
  async def async_mute_volume(self, mute: bool) -> None: ...
67
67
  async def async_volume_up(self) -> None: ...
68
68
  async def async_volume_down(self) -> None: ...
69
- async def async_play_media(self, media_type: str, media_id: str, **kwargs: Any) -> None: ...
69
+ async def async_play_media(self, media_type: Union[MediaType, str], media_id: str, **kwargs: Any) -> None: ...
70
70
  async def async_select_source(self, source: str) -> None: ...
@@ -0,0 +1,19 @@
1
+ from . import trigger as trigger
2
+ from .const import DOMAIN as DOMAIN
3
+ from .helpers import async_get_client_by_device_entry as async_get_client_by_device_entry, async_get_device_entry_by_device_id as async_get_device_entry_by_device_id
4
+ from .triggers.turn_on import async_get_turn_on_trigger as async_get_turn_on_trigger
5
+ from _typeshed import Incomplete
6
+ from homeassistant.components.device_automation import DEVICE_TRIGGER_BASE_SCHEMA as DEVICE_TRIGGER_BASE_SCHEMA
7
+ from homeassistant.components.device_automation.exceptions import InvalidDeviceAutomationConfig as InvalidDeviceAutomationConfig
8
+ from homeassistant.const import CONF_DEVICE_ID as CONF_DEVICE_ID, CONF_PLATFORM as CONF_PLATFORM, CONF_TYPE as CONF_TYPE
9
+ from homeassistant.core import CALLBACK_TYPE as CALLBACK_TYPE, HomeAssistant as HomeAssistant
10
+ from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
11
+ from homeassistant.helpers.trigger import TriggerActionType as TriggerActionType, TriggerInfo as TriggerInfo
12
+ from homeassistant.helpers.typing import ConfigType as ConfigType
13
+
14
+ TRIGGER_TYPES: Incomplete
15
+ TRIGGER_SCHEMA: Incomplete
16
+
17
+ async def async_validate_trigger_config(hass: HomeAssistant, config: ConfigType) -> ConfigType: ...
18
+ async def async_get_triggers(_hass: HomeAssistant, device_id: str) -> list[dict[str, str]]: ...
19
+ async def async_attach_trigger(hass: HomeAssistant, config: ConfigType, action: TriggerActionType, trigger_info: TriggerInfo) -> CALLBACK_TYPE: ...
@@ -0,0 +1,8 @@
1
+ from .bridge import SamsungTVBridge as SamsungTVBridge
2
+ from .const import DOMAIN as DOMAIN
3
+ from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
4
+ from homeassistant.helpers.device_registry import DeviceEntry as DeviceEntry
5
+
6
+ def async_get_device_entry_by_device_id(hass: HomeAssistant, device_id: str) -> DeviceEntry: ...
7
+ def async_get_device_id_from_entity_id(hass: HomeAssistant, entity_id: str) -> str: ...
8
+ def async_get_client_by_device_entry(hass: HomeAssistant, device: DeviceEntry) -> SamsungTVBridge: ...
@@ -1,5 +1,6 @@
1
1
  from .bridge import SamsungTVBridge as SamsungTVBridge, SamsungTVWSBridge as SamsungTVWSBridge
2
2
  from .const import CONF_MANUFACTURER as CONF_MANUFACTURER, CONF_ON_ACTION as CONF_ON_ACTION, CONF_SSDP_RENDERING_CONTROL_LOCATION as CONF_SSDP_RENDERING_CONTROL_LOCATION, DEFAULT_NAME as DEFAULT_NAME, DOMAIN as DOMAIN, LOGGER as LOGGER
3
+ from .triggers.turn_on import async_get_turn_on_trigger as async_get_turn_on_trigger
3
4
  from _typeshed import Incomplete
4
5
  from async_upnp_client.client import UpnpDevice as UpnpDevice, UpnpService as UpnpService, UpnpStateVariable as UpnpStateVariable
5
6
  from collections.abc import Sequence
@@ -9,10 +10,10 @@ from homeassistant.const import CONF_HOST as CONF_HOST, CONF_MAC as CONF_MAC, CO
9
10
  from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
10
11
  from homeassistant.helpers import entity_component as entity_component
11
12
  from homeassistant.helpers.aiohttp_client import async_get_clientsession as async_get_clientsession
12
- from homeassistant.helpers.device_registry import CONNECTION_NETWORK_MAC as CONNECTION_NETWORK_MAC
13
13
  from homeassistant.helpers.entity import DeviceInfo as DeviceInfo
14
14
  from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
15
15
  from homeassistant.helpers.script import Script as Script
16
+ from homeassistant.helpers.trigger import PluggableAction as PluggableAction
16
17
  from typing import Any
17
18
 
18
19
  SOURCES: Incomplete
@@ -28,6 +29,7 @@ class SamsungTVDevice(MediaPlayerEntity):
28
29
  _host: Incomplete
29
30
  _mac: Incomplete
30
31
  _ssdp_rendering_control_location: Incomplete
32
+ _turn_on: Incomplete
31
33
  _on_script: Incomplete
32
34
  _playing: bool
33
35
  _attr_name: Incomplete
@@ -44,6 +46,8 @@ class SamsungTVDevice(MediaPlayerEntity):
44
46
  _dmr_device: Incomplete
45
47
  _upnp_server: Incomplete
46
48
  def __init__(self, bridge: SamsungTVBridge, config_entry: ConfigEntry, on_script: Union[Script, None]) -> None: ...
49
+ @property
50
+ def supported_features(self) -> MediaPlayerEntityFeature: ...
47
51
  def _update_sources(self) -> None: ...
48
52
  def _app_list_callback(self, app_list: dict[str, str]) -> None: ...
49
53
  def access_denied(self) -> None: ...
@@ -62,6 +66,7 @@ class SamsungTVDevice(MediaPlayerEntity):
62
66
  def _power_off_in_progress(self) -> bool: ...
63
67
  @property
64
68
  def available(self) -> bool: ...
69
+ async def async_added_to_hass(self) -> None: ...
65
70
  async def async_turn_off(self) -> None: ...
66
71
  async def async_set_volume_level(self, volume: float) -> None: ...
67
72
  async def async_volume_up(self) -> None: ...
@@ -72,7 +77,7 @@ class SamsungTVDevice(MediaPlayerEntity):
72
77
  async def async_media_pause(self) -> None: ...
73
78
  async def async_media_next_track(self) -> None: ...
74
79
  async def async_media_previous_track(self) -> None: ...
75
- async def async_play_media(self, media_type: str, media_id: str, **kwargs: Any) -> None: ...
80
+ async def async_play_media(self, media_type: Union[MediaType, str], media_id: str, **kwargs: Any) -> None: ...
76
81
  def _wake_on_lan(self) -> None: ...
77
82
  async def async_turn_on(self) -> None: ...
78
83
  async def async_select_source(self, source: str) -> None: ...
@@ -0,0 +1,12 @@
1
+ from .triggers import turn_on as turn_on
2
+ from _typeshed import Incomplete
3
+ from homeassistant.const import CONF_PLATFORM as CONF_PLATFORM
4
+ from homeassistant.core import CALLBACK_TYPE as CALLBACK_TYPE, HomeAssistant as HomeAssistant
5
+ from homeassistant.helpers.trigger import TriggerActionType as TriggerActionType, TriggerInfo as TriggerInfo, TriggerProtocol as TriggerProtocol
6
+ from homeassistant.helpers.typing import ConfigType as ConfigType
7
+
8
+ TRIGGERS: Incomplete
9
+
10
+ def _get_trigger_platform(config: ConfigType) -> TriggerProtocol: ...
11
+ async def async_validate_trigger_config(hass: HomeAssistant, config: ConfigType) -> ConfigType: ...
12
+ async def async_attach_trigger(hass: HomeAssistant, config: ConfigType, action: TriggerActionType, trigger_info: TriggerInfo) -> CALLBACK_TYPE: ...
@@ -0,0 +1,14 @@
1
+ from ..const import DOMAIN as DOMAIN
2
+ from ..helpers import async_get_device_entry_by_device_id as async_get_device_entry_by_device_id, async_get_device_id_from_entity_id as async_get_device_id_from_entity_id
3
+ from _typeshed import Incomplete
4
+ from homeassistant.const import ATTR_DEVICE_ID as ATTR_DEVICE_ID, ATTR_ENTITY_ID as ATTR_ENTITY_ID, CONF_DEVICE_ID as CONF_DEVICE_ID, CONF_DOMAIN as CONF_DOMAIN, CONF_PLATFORM as CONF_PLATFORM, CONF_TYPE as CONF_TYPE
5
+ from homeassistant.core import CALLBACK_TYPE as CALLBACK_TYPE, HomeAssistant as HomeAssistant, callback as callback
6
+ from homeassistant.helpers.trigger import PluggableAction as PluggableAction, TriggerActionType as TriggerActionType, TriggerInfo as TriggerInfo
7
+ from homeassistant.helpers.typing import ConfigType as ConfigType
8
+
9
+ PLATFORM_TYPE: Incomplete
10
+ TRIGGER_TYPE_TURN_ON: str
11
+ TRIGGER_SCHEMA: Incomplete
12
+
13
+ def async_get_turn_on_trigger(device_id: str) -> dict[str, str]: ...
14
+ async def async_attach_trigger(hass: HomeAssistant, config: ConfigType, action: TriggerActionType, trigger_info: TriggerInfo, *, platform_type: str = ...) -> Union[CALLBACK_TYPE, None]: ...
@@ -1,6 +1,6 @@
1
1
  import voluptuous as vol
2
2
  from . import COMBINED_SCHEMA as COMBINED_SCHEMA
3
- from .const import CONF_INDEX as CONF_INDEX, CONF_SELECT as CONF_SELECT, DEFAULT_NAME as DEFAULT_NAME, DEFAULT_VERIFY_SSL as DEFAULT_VERIFY_SSL, DOMAIN as DOMAIN
3
+ from .const import CONF_ENCODING as CONF_ENCODING, CONF_INDEX as CONF_INDEX, CONF_SELECT as CONF_SELECT, DEFAULT_ENCODING as DEFAULT_ENCODING, DEFAULT_NAME as DEFAULT_NAME, DEFAULT_VERIFY_SSL as DEFAULT_VERIFY_SSL, DOMAIN as DOMAIN
4
4
  from _typeshed import Incomplete
5
5
  from collections.abc import Mapping
6
6
  from homeassistant.components.rest import create_rest_data_from_config as create_rest_data_from_config
@@ -2,9 +2,11 @@ from _typeshed import Incomplete
2
2
  from homeassistant.const import Platform as Platform
3
3
 
4
4
  DOMAIN: str
5
+ DEFAULT_ENCODING: str
5
6
  DEFAULT_NAME: str
6
7
  DEFAULT_VERIFY_SSL: bool
7
8
  DEFAULT_SCAN_INTERVAL: Incomplete
8
9
  PLATFORMS: Incomplete
10
+ CONF_ENCODING: str
9
11
  CONF_SELECT: str
10
12
  CONF_INDEX: str
@@ -1,15 +1,13 @@
1
- from .const import CONF_INDEX as CONF_INDEX, CONF_SELECT as CONF_SELECT, DEFAULT_NAME as DEFAULT_NAME, DEFAULT_SCAN_INTERVAL as DEFAULT_SCAN_INTERVAL, DEFAULT_VERIFY_SSL as DEFAULT_VERIFY_SSL, DOMAIN as DOMAIN
1
+ from .const import CONF_INDEX as CONF_INDEX, CONF_SELECT as CONF_SELECT, DOMAIN as DOMAIN
2
2
  from .coordinator import ScrapeCoordinator as ScrapeCoordinator
3
3
  from _typeshed import Incomplete
4
- from homeassistant.components.rest import RESOURCE_SCHEMA as RESOURCE_SCHEMA, create_rest_data_from_config as create_rest_data_from_config
5
- from homeassistant.components.sensor import CONF_STATE_CLASS as CONF_STATE_CLASS, DEVICE_CLASSES_SCHEMA as DEVICE_CLASSES_SCHEMA, STATE_CLASSES_SCHEMA as STATE_CLASSES_SCHEMA, SensorDeviceClass as SensorDeviceClass
4
+ from homeassistant.components.sensor import SensorDeviceClass as SensorDeviceClass
6
5
  from homeassistant.components.sensor.helpers import async_parse_date_datetime as async_parse_date_datetime
7
6
  from homeassistant.config_entries import ConfigEntry as ConfigEntry
8
- from homeassistant.const import CONF_ATTRIBUTE as CONF_ATTRIBUTE, CONF_AUTHENTICATION as CONF_AUTHENTICATION, CONF_DEVICE_CLASS as CONF_DEVICE_CLASS, CONF_HEADERS as CONF_HEADERS, CONF_NAME as CONF_NAME, CONF_PASSWORD as CONF_PASSWORD, CONF_RESOURCE as CONF_RESOURCE, CONF_SCAN_INTERVAL as CONF_SCAN_INTERVAL, CONF_UNIQUE_ID as CONF_UNIQUE_ID, CONF_UNIT_OF_MEASUREMENT as CONF_UNIT_OF_MEASUREMENT, CONF_USERNAME as CONF_USERNAME, CONF_VALUE_TEMPLATE as CONF_VALUE_TEMPLATE, CONF_VERIFY_SSL as CONF_VERIFY_SSL, HTTP_BASIC_AUTHENTICATION as HTTP_BASIC_AUTHENTICATION, HTTP_DIGEST_AUTHENTICATION as HTTP_DIGEST_AUTHENTICATION
7
+ from homeassistant.const import CONF_ATTRIBUTE as CONF_ATTRIBUTE, CONF_NAME as CONF_NAME, CONF_UNIQUE_ID as CONF_UNIQUE_ID, CONF_VALUE_TEMPLATE as CONF_VALUE_TEMPLATE
9
8
  from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
10
9
  from homeassistant.exceptions import PlatformNotReady as PlatformNotReady
11
10
  from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
12
- from homeassistant.helpers.issue_registry import IssueSeverity as IssueSeverity, async_create_issue as async_create_issue
13
11
  from homeassistant.helpers.template import Template as Template
14
12
  from homeassistant.helpers.template_entity import TEMPLATE_SENSOR_BASE_SCHEMA as TEMPLATE_SENSOR_BASE_SCHEMA, TemplateSensor as TemplateSensor
15
13
  from homeassistant.helpers.typing import ConfigType as ConfigType, DiscoveryInfoType as DiscoveryInfoType
@@ -17,7 +15,6 @@ from homeassistant.helpers.update_coordinator import CoordinatorEntity as Coordi
17
15
  from typing import Any
18
16
 
19
17
  _LOGGER: Incomplete
20
- PLATFORM_SCHEMA: Incomplete
21
18
 
22
19
  async def async_setup_platform(hass: HomeAssistant, config: ConfigType, async_add_entities: AddEntitiesCallback, discovery_info: Union[DiscoveryInfoType, None] = ...) -> None: ...
23
20
  async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
@@ -4,7 +4,6 @@ from _typeshed import Incomplete
4
4
  from homeassistant.const import ATTR_ENTITY_ID as ATTR_ENTITY_ID, CONF_DEVICE_ID as CONF_DEVICE_ID, CONF_DOMAIN as CONF_DOMAIN, CONF_ENTITY_ID as CONF_ENTITY_ID, CONF_TYPE as CONF_TYPE
5
5
  from homeassistant.core import Context as Context, HomeAssistant as HomeAssistant
6
6
  from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
7
- from homeassistant.helpers import entity_registry as entity_registry
8
7
  from homeassistant.helpers.entity import get_capability as get_capability
9
8
  from homeassistant.helpers.typing import ConfigType as ConfigType, TemplateVarsType as TemplateVarsType
10
9
 
@@ -4,7 +4,7 @@ from _typeshed import Incomplete
4
4
  from homeassistant.const import CONF_CONDITION as CONF_CONDITION, CONF_DEVICE_ID as CONF_DEVICE_ID, CONF_DOMAIN as CONF_DOMAIN, CONF_ENTITY_ID as CONF_ENTITY_ID, CONF_FOR as CONF_FOR, CONF_TYPE as CONF_TYPE
5
5
  from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
6
6
  from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
7
- from homeassistant.helpers import condition as condition, entity_registry as entity_registry
7
+ from homeassistant.helpers import condition as condition
8
8
  from homeassistant.helpers.config_validation import DEVICE_CONDITION_BASE_SCHEMA as DEVICE_CONDITION_BASE_SCHEMA
9
9
  from homeassistant.helpers.entity import get_capability as get_capability
10
10
  from homeassistant.helpers.typing import ConfigType as ConfigType, TemplateVarsType as TemplateVarsType
@@ -6,7 +6,6 @@ from homeassistant.components.homeassistant.triggers.state import CONF_FOR as CO
6
6
  from homeassistant.const import CONF_DEVICE_ID as CONF_DEVICE_ID, CONF_DOMAIN as CONF_DOMAIN, CONF_ENTITY_ID as CONF_ENTITY_ID, CONF_PLATFORM as CONF_PLATFORM, CONF_TYPE as CONF_TYPE
7
7
  from homeassistant.core import CALLBACK_TYPE as CALLBACK_TYPE, HomeAssistant as HomeAssistant
8
8
  from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
9
- from homeassistant.helpers import entity_registry as entity_registry
10
9
  from homeassistant.helpers.entity import get_capability as get_capability
11
10
  from homeassistant.helpers.trigger import TriggerActionType as TriggerActionType, TriggerInfo as TriggerInfo
12
11
  from homeassistant.helpers.typing import ConfigType as ConfigType
@@ -26,6 +26,7 @@ class SensorDeviceClass(StrEnum):
26
26
  DATA_SIZE: str
27
27
  DISTANCE: str
28
28
  ENERGY: str
29
+ ENERGY_STORAGE: str
29
30
  FREQUENCY: str
30
31
  GAS: str
31
32
  HUMIDITY: str
@@ -54,6 +55,7 @@ class SensorDeviceClass(StrEnum):
54
55
  VOLATILE_ORGANIC_COMPOUNDS: str
55
56
  VOLTAGE: str
56
57
  VOLUME: str
58
+ VOLUME_STORAGE: str
57
59
  WATER: str
58
60
  WEIGHT: str
59
61
  WIND_SPEED: str
@@ -27,7 +27,9 @@ def _time_weighted_average(fstates: list[tuple[float, State]], start: datetime.d
27
27
  def _get_units(fstates: list[tuple[float, State]]) -> set[Union[str, None]]: ...
28
28
  def _equivalent_units(units: set[Union[str, None]]) -> bool: ...
29
29
  def _parse_float(state: str) -> float: ...
30
- def _normalize_states(hass: HomeAssistant, session: Session, old_metadatas: dict[str, tuple[int, StatisticMetaData]], entity_history: Iterable[State], entity_id: str) -> tuple[Union[str, None], list[tuple[float, State]]]: ...
30
+ def _float_or_none(state: str) -> Union[float, None]: ...
31
+ def _entity_history_to_float_and_state(entity_history: Iterable[State]) -> list[tuple[float, State]]: ...
32
+ def _normalize_states(hass: HomeAssistant, old_metadatas: dict[str, tuple[int, StatisticMetaData]], fstates: list[tuple[float, State]], entity_id: str) -> tuple[Union[str, None], list[tuple[float, State]]]: ...
31
33
  def _suggest_report_issue(hass: HomeAssistant, entity_id: str) -> str: ...
32
34
  def warn_dip(hass: HomeAssistant, entity_id: str, state: State, previous_fstate: float) -> None: ...
33
35
  def warn_negative(hass: HomeAssistant, entity_id: str, state: State) -> None: ...
@@ -2,7 +2,7 @@ from .const import DOMAIN as DOMAIN, PLATFORMS as PLATFORMS, PLATFORMS_WITH_AUTH
2
2
  from .coordinator import SFRDataUpdateCoordinator as SFRDataUpdateCoordinator
3
3
  from .models import DomainData as DomainData
4
4
  from homeassistant.config_entries import ConfigEntry as ConfigEntry
5
- from homeassistant.const import CONF_HOST as CONF_HOST, CONF_PASSWORD as CONF_PASSWORD, CONF_USERNAME as CONF_USERNAME, Platform as Platform
5
+ from homeassistant.const import CONF_HOST as CONF_HOST, CONF_PASSWORD as CONF_PASSWORD, CONF_USERNAME as CONF_USERNAME
6
6
  from homeassistant.core import HomeAssistant as HomeAssistant
7
7
  from homeassistant.exceptions import ConfigEntryAuthFailed as ConfigEntryAuthFailed, ConfigEntryNotReady as ConfigEntryNotReady
8
8
  from homeassistant.helpers.httpx_client import get_async_client as get_async_client
@@ -9,7 +9,7 @@ from homeassistant.const import EntityCategory as EntityCategory
9
9
  from homeassistant.core import HomeAssistant as HomeAssistant
10
10
  from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
11
11
  from homeassistant.helpers.update_coordinator import CoordinatorEntity as CoordinatorEntity
12
- from sfrbox_api.models import DslInfo, SystemInfo as SystemInfo
12
+ from sfrbox_api.models import DslInfo, FtthInfo, SystemInfo as SystemInfo, WanInfo
13
13
  from typing import TypeVar
14
14
 
15
15
  _T = TypeVar('_T')
@@ -22,6 +22,8 @@ class SFRBoxBinarySensorEntityDescription(BinarySensorEntityDescription, SFRBoxB
22
22
  def __init__(self, value_fn, key, device_class, entity_category, entity_registry_enabled_default, entity_registry_visible_default, force_update, icon, has_entity_name, name, translation_key, unit_of_measurement) -> None: ...
23
23
 
24
24
  DSL_SENSOR_TYPES: tuple[SFRBoxBinarySensorEntityDescription[DslInfo], ...]
25
+ FTTH_SENSOR_TYPES: tuple[SFRBoxBinarySensorEntityDescription[FtthInfo], ...]
26
+ WAN_SENSOR_TYPES: tuple[SFRBoxBinarySensorEntityDescription[WanInfo], ...]
25
27
 
26
28
  async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
27
29
 
@@ -1,9 +1,11 @@
1
1
  from .coordinator import SFRDataUpdateCoordinator as SFRDataUpdateCoordinator
2
2
  from sfrbox_api.bridge import SFRBox as SFRBox
3
- from sfrbox_api.models import DslInfo as DslInfo, SystemInfo as SystemInfo
3
+ from sfrbox_api.models import DslInfo as DslInfo, FtthInfo as FtthInfo, SystemInfo as SystemInfo, WanInfo as WanInfo
4
4
 
5
5
  class DomainData:
6
6
  box: SFRBox
7
7
  dsl: SFRDataUpdateCoordinator[DslInfo]
8
+ ftth: SFRDataUpdateCoordinator[FtthInfo]
8
9
  system: SFRDataUpdateCoordinator[SystemInfo]
9
- def __init__(self, box, dsl, system) -> None: ...
10
+ wan: SFRDataUpdateCoordinator[WanInfo]
11
+ def __init__(self, box, dsl, ftth, system, wan) -> None: ...
@@ -10,7 +10,7 @@ from homeassistant.core import HomeAssistant as HomeAssistant
10
10
  from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
11
11
  from homeassistant.helpers.typing import StateType as StateType
12
12
  from homeassistant.helpers.update_coordinator import CoordinatorEntity as CoordinatorEntity
13
- from sfrbox_api.models import DslInfo, SystemInfo
13
+ from sfrbox_api.models import DslInfo, SystemInfo, WanInfo
14
14
  from typing import TypeVar
15
15
 
16
16
  _T = TypeVar('_T')
@@ -24,6 +24,7 @@ class SFRBoxSensorEntityDescription(SensorEntityDescription, SFRBoxSensorMixin[_
24
24
 
25
25
  DSL_SENSOR_TYPES: tuple[SFRBoxSensorEntityDescription[DslInfo], ...]
26
26
  SYSTEM_SENSOR_TYPES: tuple[SFRBoxSensorEntityDescription[SystemInfo], ...]
27
+ WAN_SENSOR_TYPES: tuple[SFRBoxSensorEntityDescription[WanInfo], ...]
27
28
 
28
29
  async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
29
30
 
@@ -5,7 +5,6 @@ from _typeshed import Incomplete
5
5
  from abc import abstractmethod
6
6
  from asyncsleepiq import SleepIQBed as SleepIQBed, SleepIQSleeper as SleepIQSleeper
7
7
  from homeassistant.core import callback as callback
8
- from homeassistant.helpers import device_registry as device_registry
9
8
  from homeassistant.helpers.entity import DeviceInfo as DeviceInfo, Entity as Entity
10
9
  from homeassistant.helpers.update_coordinator import CoordinatorEntity as CoordinatorEntity
11
10
  from typing import TypeVar
@@ -12,7 +12,7 @@ from homeassistant.helpers.reload import async_setup_reload_service as async_set
12
12
  from homeassistant.helpers.start import async_at_start as async_at_start
13
13
  from homeassistant.helpers.typing import ConfigType as ConfigType, DiscoveryInfoType as DiscoveryInfoType, StateType as StateType
14
14
  from homeassistant.util.enum import try_parse_enum as try_parse_enum
15
- from typing import Any, Literal
15
+ from typing import Any
16
16
 
17
17
  _LOGGER: Incomplete
18
18
  STAT_AGE_COVERAGE_RATIO: str
@@ -95,7 +95,7 @@ class StatisticsSensor(SensorEntity):
95
95
  @property
96
96
  def device_class(self) -> Union[SensorDeviceClass, None]: ...
97
97
  @property
98
- def state_class(self) -> Union[Literal[SensorStateClass.MEASUREMENT], None]: ...
98
+ def state_class(self) -> Union[SensorStateClass, None]: ...
99
99
  @property
100
100
  def native_value(self) -> Union[StateType, datetime]: ...
101
101
  @property
@@ -3,7 +3,7 @@ from _typeshed import Incomplete
3
3
  from astral.location import Elevation as Elevation, Location as Location
4
4
  from datetime import datetime
5
5
  from homeassistant.config_entries import ConfigEntry as ConfigEntry, SOURCE_IMPORT as SOURCE_IMPORT
6
- from homeassistant.const import EVENT_CORE_CONFIG_UPDATE as EVENT_CORE_CONFIG_UPDATE, SUN_EVENT_SUNRISE as SUN_EVENT_SUNRISE, SUN_EVENT_SUNSET as SUN_EVENT_SUNSET
6
+ from homeassistant.const import EVENT_CORE_CONFIG_UPDATE as EVENT_CORE_CONFIG_UPDATE, Platform as Platform, SUN_EVENT_SUNRISE as SUN_EVENT_SUNRISE, SUN_EVENT_SUNSET as SUN_EVENT_SUNSET
7
7
  from homeassistant.core import CALLBACK_TYPE as CALLBACK_TYPE, Event as Event, HomeAssistant as HomeAssistant, callback as callback
8
8
  from homeassistant.helpers import event as event
9
9
  from homeassistant.helpers.entity import Entity as Entity
@@ -0,0 +1,36 @@
1
+ from . import Sun as Sun
2
+ from .const import DOMAIN as DOMAIN
3
+ from _typeshed import Incomplete
4
+ from collections.abc import Callable as Callable
5
+ from datetime import datetime
6
+ from homeassistant.components.sensor import SensorDeviceClass as SensorDeviceClass, SensorEntity as SensorEntity, SensorEntityDescription as SensorEntityDescription, SensorStateClass as SensorStateClass
7
+ from homeassistant.config_entries import ConfigEntry as ConfigEntry
8
+ from homeassistant.const import DEGREE as DEGREE
9
+ from homeassistant.core import HomeAssistant as HomeAssistant
10
+ from homeassistant.helpers.device_registry import DeviceEntryType as DeviceEntryType
11
+ from homeassistant.helpers.entity import DeviceInfo as DeviceInfo
12
+ from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
13
+ from homeassistant.helpers.typing import StateType as StateType
14
+
15
+ ENTITY_ID_SENSOR_FORMAT: Incomplete
16
+
17
+ class SunEntityDescriptionMixin:
18
+ value_fn: Callable[[Sun], Union[StateType, datetime]]
19
+ def __init__(self, value_fn) -> None: ...
20
+
21
+ class SunSensorEntityDescription(SensorEntityDescription, SunEntityDescriptionMixin):
22
+ def __init__(self, value_fn, key, device_class, entity_category, entity_registry_enabled_default, entity_registry_visible_default, force_update, icon, has_entity_name, name, translation_key, unit_of_measurement, last_reset, native_unit_of_measurement, options, state_class, suggested_display_precision, suggested_unit_of_measurement) -> None: ...
23
+
24
+ SENSOR_TYPES: tuple[SunSensorEntityDescription, ...]
25
+
26
+ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
27
+
28
+ class SunSensor(SensorEntity):
29
+ entity_description: SunSensorEntityDescription
30
+ entity_id: Incomplete
31
+ _attr_unique_id: Incomplete
32
+ sun: Incomplete
33
+ _attr_device_info: Incomplete
34
+ def __init__(self, sun: Sun, entity_description: SunSensorEntityDescription, entry_id: str) -> None: ...
35
+ @property
36
+ def native_value(self) -> Union[StateType, datetime]: ...
@@ -5,7 +5,7 @@ from aioswitcher.device import SwitcherBase
5
5
  from homeassistant.config_entries import ConfigEntry as ConfigEntry, SOURCE_IMPORT as SOURCE_IMPORT
6
6
  from homeassistant.const import CONF_DEVICE_ID as CONF_DEVICE_ID, EVENT_HOMEASSISTANT_STOP as EVENT_HOMEASSISTANT_STOP, Platform as Platform
7
7
  from homeassistant.core import Event as Event, HomeAssistant as HomeAssistant, callback as callback
8
- from homeassistant.helpers import device_registry as device_registry, update_coordinator as update_coordinator
8
+ from homeassistant.helpers import update_coordinator as update_coordinator
9
9
  from homeassistant.helpers.dispatcher import async_dispatcher_send as async_dispatcher_send
10
10
  from homeassistant.helpers.typing import ConfigType as ConfigType
11
11
 
@@ -10,7 +10,6 @@ from homeassistant.config_entries import ConfigEntry as ConfigEntry
10
10
  from homeassistant.const import EntityCategory as EntityCategory
11
11
  from homeassistant.core import HomeAssistant as HomeAssistant
12
12
  from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
13
- from homeassistant.helpers import device_registry as device_registry
14
13
  from homeassistant.helpers.dispatcher import async_dispatcher_connect as async_dispatcher_connect
15
14
  from homeassistant.helpers.entity import DeviceInfo as DeviceInfo
16
15
  from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
@@ -9,7 +9,6 @@ from homeassistant.config_entries import ConfigEntry as ConfigEntry
9
9
  from homeassistant.const import ATTR_TEMPERATURE as ATTR_TEMPERATURE, UnitOfTemperature as UnitOfTemperature
10
10
  from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
11
11
  from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
12
- from homeassistant.helpers import device_registry as device_registry
13
12
  from homeassistant.helpers.dispatcher import async_dispatcher_connect as async_dispatcher_connect
14
13
  from homeassistant.helpers.entity import DeviceInfo as DeviceInfo
15
14
  from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
@@ -7,7 +7,6 @@ from homeassistant.components.cover import ATTR_POSITION as ATTR_POSITION, Cover
7
7
  from homeassistant.config_entries import ConfigEntry as ConfigEntry
8
8
  from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
9
9
  from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
10
- from homeassistant.helpers import device_registry as device_registry
11
10
  from homeassistant.helpers.dispatcher import async_dispatcher_connect as async_dispatcher_connect
12
11
  from homeassistant.helpers.entity import DeviceInfo as DeviceInfo
13
12
  from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
@@ -5,7 +5,6 @@ from homeassistant.components.sensor import SensorDeviceClass as SensorDeviceCla
5
5
  from homeassistant.config_entries import ConfigEntry as ConfigEntry
6
6
  from homeassistant.const import UnitOfElectricCurrent as UnitOfElectricCurrent, UnitOfPower as UnitOfPower
7
7
  from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
8
- from homeassistant.helpers import device_registry as device_registry
9
8
  from homeassistant.helpers.dispatcher import async_dispatcher_connect as async_dispatcher_connect
10
9
  from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
11
10
  from homeassistant.helpers.typing import StateType as StateType
@@ -6,7 +6,7 @@ from datetime import timedelta
6
6
  from homeassistant.components.switch import SwitchDeviceClass as SwitchDeviceClass, SwitchEntity as SwitchEntity
7
7
  from homeassistant.config_entries import ConfigEntry as ConfigEntry
8
8
  from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
9
- from homeassistant.helpers import device_registry as device_registry, entity_platform as entity_platform
9
+ from homeassistant.helpers import entity_platform as entity_platform
10
10
  from homeassistant.helpers.dispatcher import async_dispatcher_connect as async_dispatcher_connect
11
11
  from homeassistant.helpers.entity import DeviceInfo as DeviceInfo
12
12
  from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
@@ -4,13 +4,14 @@ from .coordinator import SynologyDSMCentralUpdateCoordinator as SynologyDSMCentr
4
4
  from .entity import SynologyDSMBaseEntity as SynologyDSMBaseEntity, SynologyDSMDeviceEntity as SynologyDSMDeviceEntity, SynologyDSMEntityDescription as SynologyDSMEntityDescription
5
5
  from .models import SynologyDSMData as SynologyDSMData
6
6
  from _typeshed import Incomplete
7
+ from datetime import datetime
7
8
  from homeassistant.components.sensor import SensorDeviceClass as SensorDeviceClass, SensorEntity as SensorEntity, SensorEntityDescription as SensorEntityDescription, SensorStateClass as SensorStateClass
8
9
  from homeassistant.config_entries import ConfigEntry as ConfigEntry
9
10
  from homeassistant.const import CONF_DISKS as CONF_DISKS, EntityCategory as EntityCategory, PERCENTAGE as PERCENTAGE, UnitOfDataRate as UnitOfDataRate, UnitOfInformation as UnitOfInformation, UnitOfTemperature as UnitOfTemperature
10
11
  from homeassistant.core import HomeAssistant as HomeAssistant
11
12
  from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
13
+ from homeassistant.helpers.typing import StateType as StateType
12
14
  from homeassistant.util.dt import utcnow as utcnow
13
- from typing import Any
14
15
 
15
16
  class SynologyDSMSensorEntityDescription(SensorEntityDescription, SynologyDSMEntityDescription):
16
17
  def __init__(self, api_key, key, device_class, entity_category, entity_registry_enabled_default, entity_registry_visible_default, force_update, icon, has_entity_name, name, translation_key, unit_of_measurement, last_reset, native_unit_of_measurement, options, state_class, suggested_display_precision, suggested_unit_of_measurement) -> None: ...
@@ -28,7 +29,7 @@ class SynoDSMSensor(SynologyDSMBaseEntity[SynologyDSMCentralUpdateCoordinator],
28
29
 
29
30
  class SynoDSMUtilSensor(SynoDSMSensor):
30
31
  @property
31
- def native_value(self) -> Union[Any, None]: ...
32
+ def native_value(self) -> StateType: ...
32
33
  @property
33
34
  def available(self) -> bool: ...
34
35
 
@@ -36,11 +37,11 @@ class SynoDSMStorageSensor(SynologyDSMDeviceEntity, SynoDSMSensor):
36
37
  entity_description: SynologyDSMSensorEntityDescription
37
38
  def __init__(self, api: SynoApi, coordinator: SynologyDSMCentralUpdateCoordinator, description: SynologyDSMSensorEntityDescription, device_id: Union[str, None] = ...) -> None: ...
38
39
  @property
39
- def native_value(self) -> Union[Any, None]: ...
40
+ def native_value(self) -> StateType: ...
40
41
 
41
42
  class SynoDSMInfoSensor(SynoDSMSensor):
42
43
  _previous_uptime: Incomplete
43
44
  _last_boot: Incomplete
44
45
  def __init__(self, api: SynoApi, coordinator: SynologyDSMCentralUpdateCoordinator, description: SynologyDSMSensorEntityDescription) -> None: ...
45
46
  @property
46
- def native_value(self) -> Union[Any, None]: ...
47
+ def native_value(self) -> Union[StateType, datetime]: ...
@@ -0,0 +1,7 @@
1
+ from homeassistant.config_entries import ConfigEntry as ConfigEntry
2
+ from homeassistant.const import Platform as Platform
3
+ from homeassistant.core import HomeAssistant as HomeAssistant
4
+
5
+ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: ...
6
+ async def config_entry_update_listener(hass: HomeAssistant, entry: ConfigEntry) -> None: ...
7
+ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: ...
@@ -0,0 +1,55 @@
1
+ from .const import CONF_HYSTERESIS as CONF_HYSTERESIS, CONF_LOWER as CONF_LOWER, CONF_UPPER as CONF_UPPER
2
+ from _typeshed import Incomplete
3
+ from homeassistant.components.binary_sensor import BinarySensorDeviceClass as BinarySensorDeviceClass, BinarySensorEntity as BinarySensorEntity, DEVICE_CLASSES_SCHEMA as DEVICE_CLASSES_SCHEMA, PLATFORM_SCHEMA as PLATFORM_SCHEMA
4
+ from homeassistant.config_entries import ConfigEntry as ConfigEntry
5
+ from homeassistant.const import ATTR_ENTITY_ID as ATTR_ENTITY_ID, CONF_DEVICE_CLASS as CONF_DEVICE_CLASS, CONF_ENTITY_ID as CONF_ENTITY_ID, CONF_NAME as CONF_NAME, STATE_UNAVAILABLE as STATE_UNAVAILABLE, STATE_UNKNOWN as STATE_UNKNOWN
6
+ from homeassistant.core import Event as Event, HomeAssistant as HomeAssistant, callback as callback
7
+ from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
8
+ from homeassistant.helpers.event import async_track_state_change_event as async_track_state_change_event
9
+ from homeassistant.helpers.typing import ConfigType as ConfigType, DiscoveryInfoType as DiscoveryInfoType
10
+ from typing import Any
11
+
12
+ _LOGGER: Incomplete
13
+ ATTR_HYSTERESIS: str
14
+ ATTR_LOWER: str
15
+ ATTR_POSITION: str
16
+ ATTR_SENSOR_VALUE: str
17
+ ATTR_TYPE: str
18
+ ATTR_UPPER: str
19
+ DEFAULT_NAME: str
20
+ DEFAULT_HYSTERESIS: float
21
+ POSITION_ABOVE: str
22
+ POSITION_BELOW: str
23
+ POSITION_IN_RANGE: str
24
+ POSITION_UNKNOWN: str
25
+ TYPE_LOWER: str
26
+ TYPE_RANGE: str
27
+ TYPE_UPPER: str
28
+
29
+ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
30
+ async def async_setup_platform(hass: HomeAssistant, config: ConfigType, async_add_entities: AddEntitiesCallback, discovery_info: Union[DiscoveryInfoType, None] = ...) -> None: ...
31
+ def _threshold_type(lower: Union[float, None], upper: Union[float, None]) -> str: ...
32
+
33
+ class ThresholdSensor(BinarySensorEntity):
34
+ _attr_should_poll: bool
35
+ _attr_unique_id: Incomplete
36
+ _entity_id: Incomplete
37
+ _name: Incomplete
38
+ _threshold_lower: Incomplete
39
+ _threshold_upper: Incomplete
40
+ threshold_type: Incomplete
41
+ _hysteresis: Incomplete
42
+ _device_class: Incomplete
43
+ _state_position: Incomplete
44
+ _state: Incomplete
45
+ sensor_value: Incomplete
46
+ def __init__(self, hass: HomeAssistant, entity_id: str, name: str, lower: Union[float, None], upper: Union[float, None], hysteresis: float, device_class: Union[BinarySensorDeviceClass, None], unique_id: Union[str, None]) -> None: ...
47
+ @property
48
+ def name(self) -> str: ...
49
+ @property
50
+ def is_on(self) -> Union[bool, None]: ...
51
+ @property
52
+ def device_class(self) -> Union[BinarySensorDeviceClass, None]: ...
53
+ @property
54
+ def extra_state_attributes(self) -> dict[str, Any]: ...
55
+ def _update_state(self) -> None: ...
@@ -0,0 +1,19 @@
1
+ from .const import CONF_HYSTERESIS as CONF_HYSTERESIS, CONF_LOWER as CONF_LOWER, CONF_UPPER as CONF_UPPER, DEFAULT_HYSTERESIS as DEFAULT_HYSTERESIS, DOMAIN as DOMAIN
2
+ from _typeshed import Incomplete
3
+ from collections.abc import Mapping
4
+ from homeassistant.const import CONF_ENTITY_ID as CONF_ENTITY_ID, CONF_NAME as CONF_NAME
5
+ from homeassistant.helpers import selector as selector
6
+ from homeassistant.helpers.schema_config_entry_flow import SchemaCommonFlowHandler as SchemaCommonFlowHandler, SchemaConfigFlowHandler as SchemaConfigFlowHandler, SchemaFlowError as SchemaFlowError, SchemaFlowFormStep as SchemaFlowFormStep
7
+ from typing import Any
8
+
9
+ async def _validate_mode(handler: SchemaCommonFlowHandler, user_input: dict[str, Any]) -> dict[str, Any]: ...
10
+
11
+ OPTIONS_SCHEMA: Incomplete
12
+ CONFIG_SCHEMA: Incomplete
13
+ CONFIG_FLOW: Incomplete
14
+ OPTIONS_FLOW: Incomplete
15
+
16
+ class ConfigFlowHandler(SchemaConfigFlowHandler):
17
+ config_flow: Incomplete
18
+ options_flow: Incomplete
19
+ def async_config_entry_title(self, options: Mapping[str, Any]) -> str: ...
@@ -0,0 +1,5 @@
1
+ DOMAIN: str
2
+ CONF_HYSTERESIS: str
3
+ CONF_LOWER: str
4
+ CONF_UPPER: str
5
+ DEFAULT_HYSTERESIS: float
@@ -7,6 +7,9 @@ from homeassistant.helpers.aiohttp_client import async_get_clientsession as asyn
7
7
  from typing import Any
8
8
 
9
9
  DATA_SCHEMA: Incomplete
10
+ ERR_TIMEOUT: str
11
+ ERR_CLIENT: str
12
+ ERR_TOKEN: str
10
13
 
11
14
  class TibberConfigFlow(config_entries.ConfigFlow):
12
15
  VERSION: int
@@ -11,6 +11,7 @@ from homeassistant.core import Event as Event, HomeAssistant as HomeAssistant, c
11
11
  from homeassistant.exceptions import PlatformNotReady as PlatformNotReady
12
12
  from homeassistant.helpers.entity import DeviceInfo as DeviceInfo
13
13
  from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
14
+ from homeassistant.helpers.typing import StateType as StateType
14
15
  from homeassistant.helpers.update_coordinator import CoordinatorEntity as CoordinatorEntity, DataUpdateCoordinator as DataUpdateCoordinator, UpdateFailed as UpdateFailed
15
16
  from homeassistant.util import Throttle as Throttle
16
17
  from typing import Any
@@ -58,7 +59,7 @@ class TibberDataSensor(TibberSensor, CoordinatorEntity['TibberDataCoordinator'])
58
59
  _device_name: Incomplete
59
60
  def __init__(self, tibber_home: tibber.TibberHome, coordinator: TibberDataCoordinator, entity_description: SensorEntityDescription) -> None: ...
60
61
  @property
61
- def native_value(self) -> Any: ...
62
+ def native_value(self) -> StateType: ...
62
63
 
63
64
  class TibberSensorRT(TibberSensor, CoordinatorEntity['TibberRtDataCoordinator']):
64
65
  entity_description: Incomplete