homeassistant-stubs 2023.7.2__py3-none-any.whl → 2023.8.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.
- homeassistant-stubs/backports/enum.pyi +1 -9
- homeassistant-stubs/backports/functools.pyi +6 -8
- homeassistant-stubs/components/accuweather/sensor.pyi +3 -4
- homeassistant-stubs/components/accuweather/weather.pyi +3 -1
- homeassistant-stubs/components/airzone_cloud/binary_sensor.pyi +8 -1
- homeassistant-stubs/components/alarm_control_panel/const.pyi +1 -2
- homeassistant-stubs/components/alert/__init__.pyi +4 -4
- homeassistant-stubs/components/apcupsd/__init__.pyi +3 -4
- homeassistant-stubs/components/apcupsd/binary_sensor.pyi +0 -1
- homeassistant-stubs/components/apcupsd/sensor.pyi +0 -1
- homeassistant-stubs/components/aseko_pool_live/__init__.pyi +1 -7
- homeassistant-stubs/components/aseko_pool_live/binary_sensor.pyi +1 -1
- homeassistant-stubs/components/aseko_pool_live/coordinator.pyi +11 -0
- homeassistant-stubs/components/aseko_pool_live/entity.pyi +1 -1
- homeassistant-stubs/components/aseko_pool_live/sensor.pyi +2 -2
- homeassistant-stubs/components/assist_pipeline/pipeline.pyi +1 -1
- homeassistant-stubs/components/assist_pipeline/vad.pyi +1 -1
- homeassistant-stubs/components/asuswrt/bridge.pyi +78 -0
- homeassistant-stubs/components/asuswrt/config_flow.pyi +2 -4
- homeassistant-stubs/components/asuswrt/const.pyi +3 -0
- homeassistant-stubs/components/asuswrt/router.pyi +8 -30
- homeassistant-stubs/components/asuswrt/sensor.pyi +5 -4
- homeassistant-stubs/components/bayesian/binary_sensor.pyi +3 -3
- homeassistant-stubs/components/binary_sensor/__init__.pyi +1 -1
- homeassistant-stubs/components/bluetooth/advertisement_tracker.pyi +1 -0
- homeassistant-stubs/components/bluetooth/manager.pyi +1 -0
- homeassistant-stubs/components/bluetooth/wrappers.pyi +2 -1
- homeassistant-stubs/components/braviatv/const.pyi +1 -1
- homeassistant-stubs/components/button/__init__.pyi +1 -1
- homeassistant-stubs/components/camera/const.pyi +1 -1
- homeassistant-stubs/components/cover/__init__.pyi +1 -2
- homeassistant-stubs/components/crownstone/devices.pyi +1 -0
- homeassistant-stubs/components/crownstone/light.pyi +1 -1
- homeassistant-stubs/components/demo/button.pyi +2 -2
- homeassistant-stubs/components/demo/climate.pyi +1 -0
- homeassistant-stubs/components/demo/event.pyi +22 -0
- homeassistant-stubs/components/demo/sensor.pyi +2 -3
- homeassistant-stubs/components/demo/water_heater.pyi +2 -0
- homeassistant-stubs/components/demo/weather.pyi +13 -5
- homeassistant-stubs/components/derivative/sensor.pyi +3 -3
- homeassistant-stubs/components/device_tracker/const.pyi +1 -1
- homeassistant-stubs/components/dhcp/__init__.pyi +4 -4
- homeassistant-stubs/components/diagnostics/const.pyi +1 -1
- homeassistant-stubs/components/dlna_dmr/media_player.pyi +1 -1
- homeassistant-stubs/components/dsmr/sensor.pyi +1 -1
- homeassistant-stubs/components/dunehd/media_player.pyi +2 -2
- homeassistant-stubs/components/electric_kiwi/__init__.pyi +13 -0
- homeassistant-stubs/components/electric_kiwi/api.pyi +10 -0
- homeassistant-stubs/components/electric_kiwi/application_credentials.pyi +9 -0
- homeassistant-stubs/components/electric_kiwi/config_flow.pyi +20 -0
- homeassistant-stubs/components/electric_kiwi/const.pyi +7 -0
- homeassistant-stubs/components/electric_kiwi/coordinator.pyi +17 -0
- homeassistant-stubs/components/electric_kiwi/oauth2.pyi +15 -0
- homeassistant-stubs/components/electric_kiwi/sensor.pyi +37 -0
- homeassistant-stubs/components/emulated_hue/config.pyi +4 -4
- homeassistant-stubs/components/emulated_hue/hue_api.pyi +3 -1
- homeassistant-stubs/components/esphome/__init__.pyi +5 -39
- homeassistant-stubs/components/esphome/bluetooth/__init__.pyi +5 -4
- homeassistant-stubs/components/esphome/bluetooth/cache.pyi +15 -0
- homeassistant-stubs/components/esphome/bluetooth/client.pyi +27 -9
- homeassistant-stubs/components/esphome/bluetooth/device.pyi +15 -0
- homeassistant-stubs/components/esphome/camera.pyi +6 -3
- homeassistant-stubs/components/esphome/climate.pyi +1 -0
- homeassistant-stubs/components/esphome/config_flow.pyi +2 -2
- homeassistant-stubs/components/esphome/const.pyi +8 -0
- homeassistant-stubs/components/esphome/domain_data.pyi +4 -14
- homeassistant-stubs/components/esphome/entity.pyi +4 -2
- homeassistant-stubs/components/esphome/entry_data.pyi +4 -6
- homeassistant-stubs/components/esphome/manager.pyi +69 -0
- homeassistant-stubs/components/esphome/update.pyi +3 -0
- homeassistant-stubs/components/event/__init__.pyi +50 -0
- homeassistant-stubs/components/event/const.pyi +3 -0
- homeassistant-stubs/components/event/recorder.pyi +4 -0
- homeassistant-stubs/components/evil_genius_labs/__init__.pyi +1 -0
- homeassistant-stubs/components/evil_genius_labs/light.pyi +1 -2
- homeassistant-stubs/components/fastdotcom/sensor.pyi +2 -1
- homeassistant-stubs/components/filter/sensor.pyi +4 -4
- homeassistant-stubs/components/fitbit/const.pyi +1 -11
- homeassistant-stubs/components/fitbit/sensor.pyi +11 -3
- homeassistant-stubs/components/fritz/common.pyi +2 -7
- homeassistant-stubs/components/fritz/const.pyi +1 -1
- homeassistant-stubs/components/fritzbox_callmonitor/config_flow.pyi +1 -1
- homeassistant-stubs/components/fritzbox_callmonitor/const.pyi +1 -1
- homeassistant-stubs/components/fritzbox_callmonitor/sensor.pyi +1 -1
- homeassistant-stubs/components/fronius/__init__.pyi +6 -2
- homeassistant-stubs/components/fronius/const.pyi +2 -0
- homeassistant-stubs/components/fronius/sensor.pyi +2 -1
- homeassistant-stubs/components/frontend/__init__.pyi +4 -2
- homeassistant-stubs/components/geo_location/trigger.pyi +3 -3
- homeassistant-stubs/components/group/__init__.pyi +5 -4
- homeassistant-stubs/components/group/binary_sensor.pyi +3 -3
- homeassistant-stubs/components/group/cover.pyi +4 -4
- homeassistant-stubs/components/group/fan.pyi +4 -4
- homeassistant-stubs/components/group/light.pyi +3 -3
- homeassistant-stubs/components/group/lock.pyi +3 -3
- homeassistant-stubs/components/group/media_player.pyi +4 -2
- homeassistant-stubs/components/group/sensor.pyi +3 -3
- homeassistant-stubs/components/group/switch.pyi +3 -3
- homeassistant-stubs/components/guardian/__init__.pyi +0 -2
- homeassistant-stubs/components/history/websocket_api.pyi +2 -1
- homeassistant-stubs/components/homeassistant_hardware/silabs_multiprotocol_addon.pyi +3 -0
- homeassistant-stubs/components/homekit/accessories.pyi +6 -5
- homeassistant-stubs/components/homekit/util.pyi +4 -2
- homeassistant-stubs/components/http/__init__.pyi +7 -0
- homeassistant-stubs/components/hydrawise/binary_sensor.pyi +1 -1
- homeassistant-stubs/components/hydrawise/coordinator.pyi +2 -2
- homeassistant-stubs/components/hydrawise/sensor.pyi +1 -1
- homeassistant-stubs/components/hydrawise/switch.pyi +1 -1
- homeassistant-stubs/components/image/__init__.pyi +2 -0
- homeassistant-stubs/components/image_processing/__init__.pyi +1 -1
- homeassistant-stubs/components/imap/__init__.pyi +1 -1
- homeassistant-stubs/components/imap/config_flow.pyi +1 -1
- homeassistant-stubs/components/imap/const.pyi +1 -0
- homeassistant-stubs/components/imap/coordinator.pyi +5 -1
- homeassistant-stubs/components/input_button/__init__.pyi +1 -1
- homeassistant-stubs/components/input_select/__init__.pyi +1 -2
- homeassistant-stubs/components/integration/sensor.pyi +4 -5
- homeassistant-stubs/components/isy994/climate.pyi +1 -0
- homeassistant-stubs/components/jellyfin/__init__.pyi +2 -0
- homeassistant-stubs/components/jellyfin/coordinator.pyi +2 -0
- homeassistant-stubs/components/jellyfin/media_source.pyi +1 -1
- homeassistant-stubs/components/kaleidescape/entity.pyi +2 -2
- homeassistant-stubs/components/kaleidescape/media_player.pyi +1 -0
- homeassistant-stubs/components/kaleidescape/remote.pyi +1 -0
- homeassistant-stubs/components/kaleidescape/sensor.pyi +0 -1
- homeassistant-stubs/components/knx/__init__.pyi +1 -1
- homeassistant-stubs/components/knx/date.pyi +29 -0
- homeassistant-stubs/components/knx/datetime.pyi +26 -0
- homeassistant-stubs/components/knx/expose.pyi +4 -4
- homeassistant-stubs/components/knx/knx_entity.pyi +0 -1
- homeassistant-stubs/components/knx/schema.pyi +10 -0
- homeassistant-stubs/components/knx/sensor.pyi +0 -1
- homeassistant-stubs/components/knx/telegrams.pyi +10 -3
- homeassistant-stubs/components/kraken/const.pyi +0 -12
- homeassistant-stubs/components/kraken/sensor.pyi +12 -2
- homeassistant-stubs/components/lacrosse_view/sensor.pyi +1 -0
- homeassistant-stubs/components/laundrify/binary_sensor.pyi +2 -2
- homeassistant-stubs/components/ld2410_ble/binary_sensor.pyi +1 -0
- homeassistant-stubs/components/ld2410_ble/sensor.pyi +1 -0
- homeassistant-stubs/components/lifx/binary_sensor.pyi +0 -1
- homeassistant-stubs/components/lifx/button.pyi +0 -1
- homeassistant-stubs/components/lifx/entity.pyi +1 -0
- homeassistant-stubs/components/lifx/light.pyi +1 -1
- homeassistant-stubs/components/lifx/select.pyi +0 -2
- homeassistant-stubs/components/lifx/sensor.pyi +0 -1
- homeassistant-stubs/components/light/__init__.pyi +2 -4
- homeassistant-stubs/components/logbook/helpers.pyi +2 -1
- homeassistant-stubs/components/logger/helpers.pyi +1 -1
- homeassistant-stubs/components/matter/binary_sensor.pyi +1 -1
- homeassistant-stubs/components/matter/entity.pyi +1 -1
- homeassistant-stubs/components/matter/event.pyi +27 -0
- homeassistant-stubs/components/matter/sensor.pyi +1 -1
- homeassistant-stubs/components/media_player/__init__.pyi +2 -3
- homeassistant-stubs/components/media_player/const.pyi +3 -2
- homeassistant-stubs/components/min_max/sensor.pyi +3 -3
- homeassistant-stubs/components/mqtt/__init__.pyi +5 -3
- homeassistant-stubs/components/mqtt/alarm_control_panel.pyi +1 -0
- homeassistant-stubs/components/mqtt/binary_sensor.pyi +1 -0
- homeassistant-stubs/components/mqtt/button.pyi +1 -0
- homeassistant-stubs/components/mqtt/camera.pyi +1 -0
- homeassistant-stubs/components/mqtt/client.pyi +4 -1
- homeassistant-stubs/components/mqtt/climate.pyi +2 -3
- homeassistant-stubs/components/mqtt/config_integration.pyi +1 -1
- homeassistant-stubs/components/mqtt/const.pyi +2 -0
- homeassistant-stubs/components/mqtt/cover.pyi +1 -0
- homeassistant-stubs/components/mqtt/device_tracker.pyi +1 -0
- homeassistant-stubs/components/mqtt/event.pyi +46 -0
- homeassistant-stubs/components/mqtt/fan.pyi +1 -0
- homeassistant-stubs/components/mqtt/humidifier.pyi +1 -0
- homeassistant-stubs/components/mqtt/image.pyi +1 -0
- homeassistant-stubs/components/mqtt/light/schema_basic.pyi +1 -0
- homeassistant-stubs/components/mqtt/light/schema_json.pyi +1 -0
- homeassistant-stubs/components/mqtt/light/schema_template.pyi +1 -0
- homeassistant-stubs/components/mqtt/lock.pyi +1 -0
- homeassistant-stubs/components/mqtt/mixins.pyi +15 -10
- homeassistant-stubs/components/mqtt/models.pyi +4 -4
- homeassistant-stubs/components/mqtt/number.pyi +1 -0
- homeassistant-stubs/components/mqtt/scene.pyi +4 -4
- homeassistant-stubs/components/mqtt/select.pyi +1 -0
- homeassistant-stubs/components/mqtt/sensor.pyi +1 -0
- homeassistant-stubs/components/mqtt/siren.pyi +3 -2
- homeassistant-stubs/components/mqtt/switch.pyi +1 -0
- homeassistant-stubs/components/mqtt/tag.pyi +1 -1
- homeassistant-stubs/components/mqtt/text.pyi +1 -0
- homeassistant-stubs/components/mqtt/update.pyi +1 -0
- homeassistant-stubs/components/mqtt/vacuum/__init__.pyi +6 -0
- homeassistant-stubs/components/mqtt/vacuum/schema_legacy.pyi +1 -0
- homeassistant-stubs/components/mqtt/vacuum/schema_state.pyi +1 -0
- homeassistant-stubs/components/mqtt/water_heater.pyi +4 -1
- homeassistant-stubs/components/nanoleaf/button.pyi +3 -4
- homeassistant-stubs/components/nanoleaf/entity.pyi +1 -0
- homeassistant-stubs/components/nanoleaf/light.pyi +1 -1
- homeassistant-stubs/components/nest/__init__.pyi +2 -3
- homeassistant-stubs/components/nest/camera.pyi +53 -3
- homeassistant-stubs/components/nest/climate.pyi +76 -3
- homeassistant-stubs/components/nest/config_flow.pyi +0 -23
- homeassistant-stubs/components/nest/sensor.pyi +35 -3
- homeassistant-stubs/components/notion/const.pyi +1 -0
- homeassistant-stubs/components/notion/sensor.pyi +1 -1
- homeassistant-stubs/components/number/__init__.pyi +1 -2
- homeassistant-stubs/components/number/const.pyi +4 -2
- homeassistant-stubs/components/nut/diagnostics.pyi +1 -1
- homeassistant-stubs/components/opensky/__init__.pyi +7 -0
- homeassistant-stubs/components/opensky/config_flow.pyi +11 -0
- homeassistant-stubs/components/opensky/const.pyi +17 -0
- homeassistant-stubs/components/opensky/sensor.pyi +7 -17
- homeassistant-stubs/components/otbr/websocket_api.pyi +2 -0
- homeassistant-stubs/components/persistent_notification/__init__.pyi +1 -1
- homeassistant-stubs/components/pi_hole/binary_sensor.pyi +1 -1
- homeassistant-stubs/components/pure_energie/sensor.pyi +1 -0
- homeassistant-stubs/components/purpleair/__init__.pyi +6 -2
- homeassistant-stubs/components/purpleair/config_flow.pyi +7 -3
- homeassistant-stubs/components/purpleair/const.pyi +1 -0
- homeassistant-stubs/components/qnap_qsw/entity.pyi +1 -1
- homeassistant-stubs/components/rainmachine/util.pyi +1 -1
- homeassistant-stubs/components/recorder/const.pyi +1 -1
- homeassistant-stubs/components/recorder/db_schema.pyi +1 -2
- homeassistant-stubs/components/scrape/__init__.pyi +1 -1
- homeassistant-stubs/components/scrape/sensor.pyi +10 -6
- homeassistant-stubs/components/sensibo/entity.pyi +1 -2
- homeassistant-stubs/components/sensor/__init__.pyi +1 -2
- homeassistant-stubs/components/sensor/const.pyi +3 -2
- homeassistant-stubs/components/sensor/device_condition.pyi +1 -0
- homeassistant-stubs/components/sensor/device_trigger.pyi +1 -0
- homeassistant-stubs/components/sensor/recorder.pyi +1 -1
- homeassistant-stubs/components/senz/climate.pyi +2 -1
- homeassistant-stubs/components/sfr_box/binary_sensor.pyi +1 -0
- homeassistant-stubs/components/sfr_box/button.pyi +1 -0
- homeassistant-stubs/components/sfr_box/sensor.pyi +1 -0
- homeassistant-stubs/components/shelly/__init__.pyi +1 -1
- homeassistant-stubs/components/shelly/climate.pyi +1 -1
- homeassistant-stubs/components/shelly/const.pyi +5 -1
- homeassistant-stubs/components/shelly/coordinator.pyi +2 -1
- homeassistant-stubs/components/shelly/entity.pyi +0 -4
- homeassistant-stubs/components/shelly/logbook.pyi +2 -3
- homeassistant-stubs/components/shelly/sensor.pyi +1 -1
- homeassistant-stubs/components/shelly/utils.pyi +1 -2
- homeassistant-stubs/components/simplisafe/alarm_control_panel.pyi +1 -0
- homeassistant-stubs/components/simplisafe/binary_sensor.pyi +0 -1
- homeassistant-stubs/components/skybell/light.pyi +1 -0
- homeassistant-stubs/components/sql/__init__.pyi +2 -1
- homeassistant-stubs/components/sql/config_flow.pyi +3 -1
- homeassistant-stubs/components/sql/sensor.pyi +12 -10
- homeassistant-stubs/components/ssdp/__init__.pyi +3 -3
- homeassistant-stubs/components/statistics/sensor.pyi +3 -3
- homeassistant-stubs/components/stookalert/binary_sensor.pyi +1 -0
- homeassistant-stubs/components/stream/worker.pyi +1 -2
- homeassistant-stubs/components/switch/__init__.pyi +1 -1
- homeassistant-stubs/components/switch/light.pyi +3 -3
- homeassistant-stubs/components/text/__init__.pyi +1 -1
- homeassistant-stubs/components/threshold/binary_sensor.pyi +3 -3
- homeassistant-stubs/components/tolo/__init__.pyi +1 -0
- homeassistant-stubs/components/tolo/binary_sensor.pyi +2 -2
- homeassistant-stubs/components/tolo/button.pyi +1 -1
- homeassistant-stubs/components/tolo/climate.pyi +1 -1
- homeassistant-stubs/components/tolo/fan.pyi +1 -1
- homeassistant-stubs/components/tolo/light.pyi +1 -1
- homeassistant-stubs/components/tolo/select.pyi +0 -1
- homeassistant-stubs/components/tplink/entity.pyi +1 -1
- homeassistant-stubs/components/tplink/light.pyi +1 -0
- homeassistant-stubs/components/tplink/sensor.pyi +0 -2
- homeassistant-stubs/components/tplink/switch.pyi +10 -1
- homeassistant-stubs/components/tractive/__init__.pyi +2 -1
- homeassistant-stubs/components/tractive/binary_sensor.pyi +0 -3
- homeassistant-stubs/components/tractive/const.pyi +6 -1
- homeassistant-stubs/components/tractive/device_tracker.pyi +0 -1
- homeassistant-stubs/components/tractive/entity.pyi +1 -0
- homeassistant-stubs/components/tractive/sensor.pyi +6 -4
- homeassistant-stubs/components/tractive/switch.pyi +0 -1
- homeassistant-stubs/components/tradfri/base_class.pyi +1 -1
- homeassistant-stubs/components/tradfri/cover.pyi +1 -0
- homeassistant-stubs/components/tradfri/fan.pyi +1 -0
- homeassistant-stubs/components/tradfri/light.pyi +1 -0
- homeassistant-stubs/components/tradfri/sensor.pyi +0 -2
- homeassistant-stubs/components/tradfri/switch.pyi +1 -0
- homeassistant-stubs/components/trafikverket_train/__init__.pyi +1 -0
- homeassistant-stubs/components/trafikverket_train/coordinator.pyi +39 -0
- homeassistant-stubs/components/trafikverket_train/sensor.pyi +12 -20
- homeassistant-stubs/components/twentemilieu/sensor.pyi +1 -1
- homeassistant-stubs/components/unifi/device_tracker.pyi +1 -1
- homeassistant-stubs/components/unifi/entity.pyi +8 -5
- homeassistant-stubs/components/unifi/image.pyi +37 -0
- homeassistant-stubs/components/unifi/sensor.pyi +4 -2
- homeassistant-stubs/components/unifi/switch.pyi +3 -2
- homeassistant-stubs/components/unifi/update.pyi +1 -1
- homeassistant-stubs/components/unifiprotect/entity.pyi +0 -1
- homeassistant-stubs/components/unifiprotect/models.pyi +7 -4
- homeassistant-stubs/components/unifiprotect/sensor.pyi +0 -3
- homeassistant-stubs/components/unifiprotect/utils.pyi +1 -1
- homeassistant-stubs/components/update/__init__.pyi +1 -1
- homeassistant-stubs/components/uptimerobot/entity.pyi +2 -0
- homeassistant-stubs/components/vacuum/__init__.pyi +4 -6
- homeassistant-stubs/components/vallox/__init__.pyi +1 -0
- homeassistant-stubs/components/vallox/binary_sensor.pyi +0 -1
- homeassistant-stubs/components/vallox/fan.pyi +1 -1
- homeassistant-stubs/components/vallox/number.pyi +0 -1
- homeassistant-stubs/components/vallox/sensor.pyi +0 -1
- homeassistant-stubs/components/vallox/switch.pyi +0 -1
- homeassistant-stubs/components/vlc_telnet/media_player.pyi +2 -3
- homeassistant-stubs/components/wallbox/const.pyi +1 -1
- homeassistant-stubs/components/water_heater/__init__.pyi +5 -0
- homeassistant-stubs/components/weather/__init__.pyi +18 -4
- homeassistant-stubs/components/weather/const.pyi +7 -0
- homeassistant-stubs/components/weather/websocket_api.pyi +6 -1
- homeassistant-stubs/components/websocket_api/auth.pyi +1 -1
- homeassistant-stubs/components/websocket_api/commands.pyi +6 -1
- homeassistant-stubs/components/websocket_api/connection.pyi +2 -1
- homeassistant-stubs/components/websocket_api/http.pyi +2 -1
- homeassistant-stubs/components/wemo/__init__.pyi +10 -4
- homeassistant-stubs/components/wemo/binary_sensor.pyi +2 -2
- homeassistant-stubs/components/wemo/fan.pyi +2 -2
- homeassistant-stubs/components/wemo/light.pyi +1 -1
- homeassistant-stubs/components/wemo/models.pyi +21 -0
- homeassistant-stubs/components/wemo/sensor.pyi +2 -2
- homeassistant-stubs/components/wemo/switch.pyi +2 -2
- homeassistant-stubs/components/wemo/wemo_device.pyi +5 -0
- homeassistant-stubs/components/wiz/binary_sensor.pyi +0 -1
- homeassistant-stubs/components/yalexs_ble/binary_sensor.pyi +0 -1
- homeassistant-stubs/components/yalexs_ble/entity.pyi +1 -0
- homeassistant-stubs/components/yalexs_ble/lock.pyi +0 -1
- homeassistant-stubs/components/zodiac/__init__.pyi +4 -1
- homeassistant-stubs/components/zodiac/config_flow.pyi +9 -0
- homeassistant-stubs/components/zodiac/const.pyi +1 -0
- homeassistant-stubs/components/zodiac/sensor.pyi +9 -4
- homeassistant-stubs/components/zone/__init__.pyi +4 -5
- homeassistant-stubs/components/zone/trigger.pyi +3 -3
- homeassistant-stubs/components/zwave_js/climate.pyi +3 -1
- homeassistant-stubs/components/zwave_js/device_action.pyi +3 -1
- homeassistant-stubs/components/zwave_js/discovery.pyi +1 -1
- homeassistant-stubs/config_entries.pyi +3 -5
- homeassistant-stubs/const.pyi +3 -1
- homeassistant-stubs/core.pyi +10 -12
- homeassistant-stubs/data_entry_flow.pyi +2 -3
- homeassistant-stubs/exceptions.pyi +0 -4
- homeassistant-stubs/helpers/check_config.pyi +1 -2
- homeassistant-stubs/helpers/config_validation.pyi +11 -2
- homeassistant-stubs/helpers/device_registry.pyi +32 -8
- homeassistant-stubs/helpers/entity.pyi +9 -7
- homeassistant-stubs/helpers/entity_platform.pyi +2 -3
- homeassistant-stubs/helpers/entity_registry.pyi +15 -2
- homeassistant-stubs/helpers/event.pyi +39 -33
- homeassistant-stubs/helpers/httpx_client.pyi +4 -2
- homeassistant-stubs/helpers/issue_registry.pyi +1 -1
- homeassistant-stubs/helpers/restore_state.pyi +1 -2
- homeassistant-stubs/helpers/selector.pyi +14 -6
- homeassistant-stubs/helpers/service.pyi +1 -1
- homeassistant-stubs/helpers/state.pyi +0 -12
- homeassistant-stubs/helpers/storage.pyi +1 -0
- homeassistant-stubs/helpers/system_info.pyi +8 -1
- homeassistant-stubs/helpers/template_entity.pyi +7 -7
- homeassistant-stubs/helpers/trace.pyi +1 -0
- homeassistant-stubs/helpers/typing.pyi +5 -2
- homeassistant-stubs/util/ssl.pyi +1 -1
- homeassistant-stubs/util/timeout.pyi +1 -2
- {homeassistant_stubs-2023.7.2.dist-info → homeassistant_stubs-2023.8.0.dist-info}/METADATA +3 -4
- {homeassistant_stubs-2023.7.2.dist-info → homeassistant_stubs-2023.8.0.dist-info}/RECORD +358 -341
- homeassistant-stubs/components/nest/camera_sdm.pyi +0 -58
- homeassistant-stubs/components/nest/climate_sdm.pyi +0 -81
- homeassistant-stubs/components/nest/legacy/__init__.pyi +0 -62
- homeassistant-stubs/components/nest/legacy/binary_sensor.pyi +0 -38
- homeassistant-stubs/components/nest/legacy/camera.pyi +0 -45
- homeassistant-stubs/components/nest/legacy/climate.pyi +0 -89
- homeassistant-stubs/components/nest/legacy/const.pyi +0 -4
- homeassistant-stubs/components/nest/legacy/local_auth.pyi +0 -7
- homeassistant-stubs/components/nest/legacy/sensor.pyi +0 -54
- homeassistant-stubs/components/nest/sensor_sdm.pyi +0 -42
- {homeassistant_stubs-2023.7.2.dist-info → homeassistant_stubs-2023.8.0.dist-info}/LICENSE +0 -0
- {homeassistant_stubs-2023.7.2.dist-info → homeassistant_stubs-2023.8.0.dist-info}/WHEEL +0 -0
@@ -1,9 +1 @@
|
|
1
|
-
from enum import
|
2
|
-
from typing import Any
|
3
|
-
from typing_extensions import Self
|
4
|
-
|
5
|
-
class StrEnum(str, Enum):
|
6
|
-
def __new__(cls, value: str, *args: Any, **kwargs: Any) -> Self: ...
|
7
|
-
def __str__(self) -> str: ...
|
8
|
-
@staticmethod
|
9
|
-
def _generate_next_value_(name: str, start: int, count: int, last_values: list[Any]) -> Any: ...
|
1
|
+
from enum import StrEnum as StrEnum
|
@@ -1,19 +1,17 @@
|
|
1
1
|
from _typeshed import Incomplete
|
2
2
|
from collections.abc import Callable as Callable
|
3
|
-
from typing import Generic, TypeVar, overload
|
4
|
-
from typing_extensions import Self
|
3
|
+
from typing import Any, Generic, Self, TypeVar, overload
|
5
4
|
|
6
5
|
_T = TypeVar('_T')
|
7
|
-
_R = TypeVar('_R')
|
8
6
|
|
9
|
-
class cached_property(Generic[_T
|
7
|
+
class cached_property(Generic[_T]):
|
10
8
|
func: Incomplete
|
11
9
|
attrname: Incomplete
|
12
10
|
__doc__: Incomplete
|
13
|
-
def __init__(self, func: Callable[[
|
14
|
-
def __set_name__(self, owner: type[
|
11
|
+
def __init__(self, func: Callable[[Any], _T]) -> None: ...
|
12
|
+
def __set_name__(self, owner: type[Any], name: str) -> None: ...
|
15
13
|
@overload
|
16
|
-
def __get__(self, instance: None, owner: type[
|
14
|
+
def __get__(self, instance: None, owner: type[Any] | None = ...) -> Self: ...
|
17
15
|
@overload
|
18
|
-
def __get__(self, instance:
|
16
|
+
def __get__(self, instance: Any, owner: type[Any] | None = ...) -> _T: ...
|
19
17
|
__class_getitem__: Incomplete
|
@@ -7,18 +7,17 @@ from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
|
7
7
|
from homeassistant.const import CONCENTRATION_PARTS_PER_CUBIC_METER as CONCENTRATION_PARTS_PER_CUBIC_METER, PERCENTAGE as PERCENTAGE, UV_INDEX as UV_INDEX, UnitOfIrradiance as UnitOfIrradiance, UnitOfLength as UnitOfLength, UnitOfSpeed as UnitOfSpeed, UnitOfTemperature as UnitOfTemperature, UnitOfTime as UnitOfTime, UnitOfVolumetricFlux as UnitOfVolumetricFlux
|
8
8
|
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
9
9
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
10
|
-
from homeassistant.helpers.typing import StateType as StateType
|
11
10
|
from homeassistant.helpers.update_coordinator import CoordinatorEntity as CoordinatorEntity
|
12
11
|
from typing import Any
|
13
12
|
|
14
13
|
PARALLEL_UPDATES: int
|
15
14
|
|
16
15
|
class AccuWeatherSensorDescriptionMixin:
|
17
|
-
value_fn: Callable[[dict[str, Any]],
|
16
|
+
value_fn: Callable[[dict[str, Any]], str | int | float | None]
|
18
17
|
def __init__(self, value_fn) -> None: ...
|
19
18
|
|
20
19
|
class AccuWeatherSensorDescription(SensorEntityDescription, AccuWeatherSensorDescriptionMixin):
|
21
|
-
attr_fn: Callable[[dict[str, Any]], dict[str,
|
20
|
+
attr_fn: Callable[[dict[str, Any]], dict[str, Any]]
|
22
21
|
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, attr_fn) -> None: ...
|
23
22
|
|
24
23
|
FORECAST_SENSOR_TYPES: tuple[AccuWeatherSensorDescription, ...]
|
@@ -37,7 +36,7 @@ class AccuWeatherSensor(CoordinatorEntity[AccuWeatherDataUpdateCoordinator], Sen
|
|
37
36
|
forecast_day: Incomplete
|
38
37
|
def __init__(self, coordinator: AccuWeatherDataUpdateCoordinator, description: AccuWeatherSensorDescription, forecast_day: int | None = ...) -> None: ...
|
39
38
|
@property
|
40
|
-
def native_value(self) ->
|
39
|
+
def native_value(self) -> str | int | float | None: ...
|
41
40
|
@property
|
42
41
|
def extra_state_attributes(self) -> dict[str, Any]: ...
|
43
42
|
def _handle_coordinator_update(self) -> None: ...
|
@@ -1,7 +1,7 @@
|
|
1
1
|
from . import AccuWeatherDataUpdateCoordinator as AccuWeatherDataUpdateCoordinator
|
2
2
|
from .const import API_METRIC as API_METRIC, ATTRIBUTION as ATTRIBUTION, ATTR_DIRECTION as ATTR_DIRECTION, ATTR_FORECAST as ATTR_FORECAST, ATTR_SPEED as ATTR_SPEED, ATTR_VALUE as ATTR_VALUE, CONDITION_CLASSES as CONDITION_CLASSES, DOMAIN as DOMAIN
|
3
3
|
from _typeshed import Incomplete
|
4
|
-
from homeassistant.components.weather import ATTR_FORECAST_CLOUD_COVERAGE as ATTR_FORECAST_CLOUD_COVERAGE, ATTR_FORECAST_CONDITION as ATTR_FORECAST_CONDITION, ATTR_FORECAST_NATIVE_APPARENT_TEMP as ATTR_FORECAST_NATIVE_APPARENT_TEMP, ATTR_FORECAST_NATIVE_PRECIPITATION as ATTR_FORECAST_NATIVE_PRECIPITATION, ATTR_FORECAST_NATIVE_TEMP as ATTR_FORECAST_NATIVE_TEMP, ATTR_FORECAST_NATIVE_TEMP_LOW as ATTR_FORECAST_NATIVE_TEMP_LOW, ATTR_FORECAST_NATIVE_WIND_GUST_SPEED as ATTR_FORECAST_NATIVE_WIND_GUST_SPEED, ATTR_FORECAST_NATIVE_WIND_SPEED as ATTR_FORECAST_NATIVE_WIND_SPEED, ATTR_FORECAST_PRECIPITATION_PROBABILITY as ATTR_FORECAST_PRECIPITATION_PROBABILITY, ATTR_FORECAST_TIME as ATTR_FORECAST_TIME, ATTR_FORECAST_WIND_BEARING as ATTR_FORECAST_WIND_BEARING, Forecast as Forecast, WeatherEntity as WeatherEntity
|
4
|
+
from homeassistant.components.weather import ATTR_FORECAST_CLOUD_COVERAGE as ATTR_FORECAST_CLOUD_COVERAGE, ATTR_FORECAST_CONDITION as ATTR_FORECAST_CONDITION, ATTR_FORECAST_NATIVE_APPARENT_TEMP as ATTR_FORECAST_NATIVE_APPARENT_TEMP, ATTR_FORECAST_NATIVE_PRECIPITATION as ATTR_FORECAST_NATIVE_PRECIPITATION, ATTR_FORECAST_NATIVE_TEMP as ATTR_FORECAST_NATIVE_TEMP, ATTR_FORECAST_NATIVE_TEMP_LOW as ATTR_FORECAST_NATIVE_TEMP_LOW, ATTR_FORECAST_NATIVE_WIND_GUST_SPEED as ATTR_FORECAST_NATIVE_WIND_GUST_SPEED, ATTR_FORECAST_NATIVE_WIND_SPEED as ATTR_FORECAST_NATIVE_WIND_SPEED, ATTR_FORECAST_PRECIPITATION_PROBABILITY as ATTR_FORECAST_PRECIPITATION_PROBABILITY, ATTR_FORECAST_TIME as ATTR_FORECAST_TIME, ATTR_FORECAST_UV_INDEX as ATTR_FORECAST_UV_INDEX, ATTR_FORECAST_WIND_BEARING as ATTR_FORECAST_WIND_BEARING, Forecast as Forecast, WeatherEntity as WeatherEntity
|
5
5
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
6
6
|
from homeassistant.const import UnitOfLength as UnitOfLength, UnitOfPrecipitationDepth as UnitOfPrecipitationDepth, UnitOfPressure as UnitOfPressure, UnitOfSpeed as UnitOfSpeed, UnitOfTemperature as UnitOfTemperature
|
7
7
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
@@ -48,4 +48,6 @@ class AccuWeatherEntity(CoordinatorEntity[AccuWeatherDataUpdateCoordinator], Wea
|
|
48
48
|
@property
|
49
49
|
def native_visibility(self) -> float: ...
|
50
50
|
@property
|
51
|
+
def uv_index(self) -> float: ...
|
52
|
+
@property
|
51
53
|
def forecast(self) -> list[Forecast] | None: ...
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import abc
|
2
2
|
from .const import DOMAIN as DOMAIN
|
3
3
|
from .coordinator import AirzoneUpdateCoordinator as AirzoneUpdateCoordinator
|
4
|
-
from .entity import AirzoneEntity as AirzoneEntity, AirzoneZoneEntity as AirzoneZoneEntity
|
4
|
+
from .entity import AirzoneAidooEntity as AirzoneAidooEntity, AirzoneEntity as AirzoneEntity, AirzoneZoneEntity as AirzoneZoneEntity
|
5
5
|
from _typeshed import Incomplete
|
6
6
|
from homeassistant.components.binary_sensor import BinarySensorDeviceClass as BinarySensorDeviceClass, BinarySensorEntity as BinarySensorEntity, BinarySensorEntityDescription as BinarySensorEntityDescription
|
7
7
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
@@ -14,6 +14,7 @@ class AirzoneBinarySensorEntityDescription(BinarySensorEntityDescription):
|
|
14
14
|
attributes: dict[str, str] | None
|
15
15
|
def __init__(self, key, device_class, entity_category, entity_registry_enabled_default, entity_registry_visible_default, force_update, icon, has_entity_name, name, translation_key, unit_of_measurement, attributes) -> None: ...
|
16
16
|
|
17
|
+
AIDOO_BINARY_SENSOR_TYPES: Final[tuple[AirzoneBinarySensorEntityDescription, ...]]
|
17
18
|
ZONE_BINARY_SENSOR_TYPES: Final[tuple[AirzoneBinarySensorEntityDescription, ...]]
|
18
19
|
|
19
20
|
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
|
@@ -25,6 +26,12 @@ class AirzoneBinarySensor(AirzoneEntity, BinarySensorEntity, metaclass=abc.ABCMe
|
|
25
26
|
_attr_extra_state_attributes: Incomplete
|
26
27
|
def _async_update_attrs(self) -> None: ...
|
27
28
|
|
29
|
+
class AirzoneAidooBinarySensor(AirzoneAidooEntity, AirzoneBinarySensor):
|
30
|
+
_attr_has_entity_name: bool
|
31
|
+
_attr_unique_id: Incomplete
|
32
|
+
entity_description: Incomplete
|
33
|
+
def __init__(self, coordinator: AirzoneUpdateCoordinator, description: AirzoneBinarySensorEntityDescription, aidoo_id: str, aidoo_data: dict[str, Any]) -> None: ...
|
34
|
+
|
28
35
|
class AirzoneZoneBinarySensor(AirzoneZoneEntity, AirzoneBinarySensor):
|
29
36
|
_attr_has_entity_name: bool
|
30
37
|
_attr_unique_id: Incomplete
|
@@ -3,12 +3,12 @@ from _typeshed import Incomplete
|
|
3
3
|
from collections.abc import Callable as Callable
|
4
4
|
from homeassistant.components.notify import ATTR_DATA as ATTR_DATA, ATTR_MESSAGE as ATTR_MESSAGE, ATTR_TITLE as ATTR_TITLE
|
5
5
|
from homeassistant.const import CONF_ENTITY_ID as CONF_ENTITY_ID, CONF_NAME as CONF_NAME, CONF_REPEAT as CONF_REPEAT, CONF_STATE as CONF_STATE, SERVICE_TOGGLE as SERVICE_TOGGLE, SERVICE_TURN_OFF as SERVICE_TURN_OFF, SERVICE_TURN_ON as SERVICE_TURN_ON, STATE_IDLE as STATE_IDLE, STATE_OFF as STATE_OFF, STATE_ON as STATE_ON
|
6
|
-
from homeassistant.core import
|
6
|
+
from homeassistant.core import HassJob as HassJob, HomeAssistant as HomeAssistant
|
7
7
|
from homeassistant.helpers.entity import Entity as Entity
|
8
8
|
from homeassistant.helpers.entity_component import EntityComponent as EntityComponent
|
9
|
-
from homeassistant.helpers.event import async_track_point_in_time as async_track_point_in_time, async_track_state_change_event as async_track_state_change_event
|
9
|
+
from homeassistant.helpers.event import EventStateChangedData as EventStateChangedData, async_track_point_in_time as async_track_point_in_time, async_track_state_change_event as async_track_state_change_event
|
10
10
|
from homeassistant.helpers.template import Template as Template
|
11
|
-
from homeassistant.helpers.typing import ConfigType as ConfigType
|
11
|
+
from homeassistant.helpers.typing import ConfigType as ConfigType, EventType as EventType
|
12
12
|
from homeassistant.util.dt import now as now
|
13
13
|
from typing import Any
|
14
14
|
|
@@ -39,7 +39,7 @@ class Alert(Entity):
|
|
39
39
|
def __init__(self, hass: HomeAssistant, entity_id: str, name: str, watched_entity_id: str, state: str, repeat: list[float], skip_first: bool, message_template: Template | None, done_message_template: Template | None, notifiers: list[str], can_ack: bool, title_template: Template | None, data: dict[Any, Any]) -> None: ...
|
40
40
|
@property
|
41
41
|
def state(self) -> str: ...
|
42
|
-
async def watched_entity_change(self, event:
|
42
|
+
async def watched_entity_change(self, event: EventType[EventStateChangedData]) -> None: ...
|
43
43
|
async def begin_alerting(self) -> None: ...
|
44
44
|
async def end_alerting(self) -> None: ...
|
45
45
|
async def _schedule_notify(self) -> None: ...
|
@@ -2,6 +2,7 @@ from _typeshed import Incomplete
|
|
2
2
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
3
3
|
from homeassistant.const import CONF_HOST as CONF_HOST, CONF_PORT as CONF_PORT, Platform as Platform
|
4
4
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
5
|
+
from homeassistant.helpers.entity import DeviceInfo as DeviceInfo
|
5
6
|
from homeassistant.util import Throttle as Throttle
|
6
7
|
from typing import Any, Final
|
7
8
|
|
@@ -25,11 +26,9 @@ class APCUPSdData:
|
|
25
26
|
@property
|
26
27
|
def model(self) -> str | None: ...
|
27
28
|
@property
|
28
|
-
def sw_version(self) -> str | None: ...
|
29
|
-
@property
|
30
|
-
def hw_version(self) -> str | None: ...
|
31
|
-
@property
|
32
29
|
def serial_no(self) -> str | None: ...
|
33
30
|
@property
|
34
31
|
def statflag(self) -> str | None: ...
|
32
|
+
@property
|
33
|
+
def device_info(self) -> DeviceInfo | None: ...
|
35
34
|
def update(self, **kwargs: Any) -> None: ...
|
@@ -3,7 +3,6 @@ from _typeshed import Incomplete
|
|
3
3
|
from homeassistant.components.binary_sensor import BinarySensorEntity as BinarySensorEntity, BinarySensorEntityDescription as BinarySensorEntityDescription
|
4
4
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
5
5
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
6
|
-
from homeassistant.helpers.entity import DeviceInfo as DeviceInfo
|
7
6
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
8
7
|
|
9
8
|
_LOGGER: Incomplete
|
@@ -4,7 +4,6 @@ from homeassistant.components.sensor import SensorDeviceClass as SensorDeviceCla
|
|
4
4
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
5
5
|
from homeassistant.const import PERCENTAGE as PERCENTAGE, UnitOfApparentPower as UnitOfApparentPower, UnitOfElectricCurrent as UnitOfElectricCurrent, UnitOfElectricPotential as UnitOfElectricPotential, UnitOfFrequency as UnitOfFrequency, UnitOfPower as UnitOfPower, UnitOfTemperature as UnitOfTemperature, UnitOfTime as UnitOfTime
|
6
6
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
7
|
-
from homeassistant.helpers.entity import DeviceInfo as DeviceInfo
|
8
7
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
9
8
|
|
10
9
|
_LOGGER: Incomplete
|
@@ -1,20 +1,14 @@
|
|
1
1
|
from .const import DOMAIN as DOMAIN
|
2
|
+
from .coordinator import AsekoDataUpdateCoordinator as AsekoDataUpdateCoordinator
|
2
3
|
from _typeshed import Incomplete
|
3
|
-
from aioaseko import Unit as Unit, Variable
|
4
4
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
5
5
|
from homeassistant.const import CONF_ACCESS_TOKEN as CONF_ACCESS_TOKEN, Platform as Platform
|
6
6
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
7
7
|
from homeassistant.exceptions import ConfigEntryNotReady as ConfigEntryNotReady
|
8
8
|
from homeassistant.helpers.aiohttp_client import async_get_clientsession as async_get_clientsession
|
9
|
-
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator as DataUpdateCoordinator
|
10
9
|
|
11
10
|
_LOGGER: Incomplete
|
12
11
|
PLATFORMS: list[str]
|
13
12
|
|
14
13
|
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: ...
|
15
14
|
async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: ...
|
16
|
-
|
17
|
-
class AsekoDataUpdateCoordinator(DataUpdateCoordinator[dict[str, Variable]]):
|
18
|
-
_unit: Incomplete
|
19
|
-
def __init__(self, hass: HomeAssistant, unit: Unit) -> None: ...
|
20
|
-
async def _async_update_data(self) -> dict[str, Variable]: ...
|
@@ -1,5 +1,5 @@
|
|
1
|
-
from . import AsekoDataUpdateCoordinator as AsekoDataUpdateCoordinator
|
2
1
|
from .const import DOMAIN as DOMAIN
|
2
|
+
from .coordinator import AsekoDataUpdateCoordinator as AsekoDataUpdateCoordinator
|
3
3
|
from .entity import AsekoEntity as AsekoEntity
|
4
4
|
from _typeshed import Incomplete
|
5
5
|
from aioaseko import Unit as Unit
|
@@ -0,0 +1,11 @@
|
|
1
|
+
from _typeshed import Incomplete
|
2
|
+
from aioaseko import Unit as Unit, Variable
|
3
|
+
from homeassistant.core import HomeAssistant as HomeAssistant
|
4
|
+
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator as DataUpdateCoordinator
|
5
|
+
|
6
|
+
_LOGGER: Incomplete
|
7
|
+
|
8
|
+
class AsekoDataUpdateCoordinator(DataUpdateCoordinator[dict[str, Variable]]):
|
9
|
+
_unit: Incomplete
|
10
|
+
def __init__(self, hass: HomeAssistant, unit: Unit) -> None: ...
|
11
|
+
async def _async_update_data(self) -> dict[str, Variable]: ...
|
@@ -1,5 +1,5 @@
|
|
1
|
-
from . import AsekoDataUpdateCoordinator as AsekoDataUpdateCoordinator
|
2
1
|
from .const import DOMAIN as DOMAIN
|
2
|
+
from .coordinator import AsekoDataUpdateCoordinator as AsekoDataUpdateCoordinator
|
3
3
|
from _typeshed import Incomplete
|
4
4
|
from aioaseko import Unit as Unit
|
5
5
|
from homeassistant.helpers.entity import DeviceInfo as DeviceInfo
|
@@ -1,5 +1,5 @@
|
|
1
|
-
from . import AsekoDataUpdateCoordinator as AsekoDataUpdateCoordinator
|
2
1
|
from .const import DOMAIN as DOMAIN
|
2
|
+
from .coordinator import AsekoDataUpdateCoordinator as AsekoDataUpdateCoordinator
|
3
3
|
from .entity import AsekoEntity as AsekoEntity
|
4
4
|
from _typeshed import Incomplete
|
5
5
|
from aioaseko import Unit as Unit, Variable as Variable
|
@@ -11,7 +11,7 @@ from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEnti
|
|
11
11
|
async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
|
12
12
|
|
13
13
|
class VariableSensorEntity(AsekoEntity, SensorEntity):
|
14
|
-
|
14
|
+
_attr_state_class: Incomplete
|
15
15
|
_variable: Incomplete
|
16
16
|
_attr_name: Incomplete
|
17
17
|
_attr_unique_id: Incomplete
|
@@ -2,7 +2,7 @@ from .const import DOMAIN as DOMAIN
|
|
2
2
|
from .error import IntentRecognitionError as IntentRecognitionError, PipelineError as PipelineError, PipelineNotFound as PipelineNotFound, SpeechToTextError as SpeechToTextError, TextToSpeechError as TextToSpeechError
|
3
3
|
from _typeshed import Incomplete
|
4
4
|
from collections.abc import AsyncIterable, Callable, Iterable
|
5
|
-
from
|
5
|
+
from enum import StrEnum
|
6
6
|
from homeassistant.components import conversation as conversation, media_source as media_source, stt as stt, tts as tts, websocket_api as websocket_api
|
7
7
|
from homeassistant.core import Context as Context, HomeAssistant as HomeAssistant, callback as callback
|
8
8
|
from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
|
@@ -0,0 +1,78 @@
|
|
1
|
+
import abc
|
2
|
+
from .const import CONF_DNSMASQ as CONF_DNSMASQ, CONF_INTERFACE as CONF_INTERFACE, CONF_REQUIRE_IP as CONF_REQUIRE_IP, CONF_SSH_KEY as CONF_SSH_KEY, DEFAULT_DNSMASQ as DEFAULT_DNSMASQ, DEFAULT_INTERFACE as DEFAULT_INTERFACE, KEY_METHOD as KEY_METHOD, KEY_SENSORS as KEY_SENSORS, PROTOCOL_TELNET as PROTOCOL_TELNET, SENSORS_BYTES as SENSORS_BYTES, SENSORS_LOAD_AVG as SENSORS_LOAD_AVG, SENSORS_RATES as SENSORS_RATES, SENSORS_TEMPERATURES as SENSORS_TEMPERATURES
|
3
|
+
from _typeshed import Incomplete
|
4
|
+
from abc import ABC, abstractmethod
|
5
|
+
from aioasuswrt.asuswrt import AsusWrt as AsusWrtLegacy
|
6
|
+
from homeassistant.const import CONF_HOST as CONF_HOST, CONF_MODE as CONF_MODE, CONF_PASSWORD as CONF_PASSWORD, CONF_PORT as CONF_PORT, CONF_PROTOCOL as CONF_PROTOCOL, CONF_USERNAME as CONF_USERNAME
|
7
|
+
from homeassistant.core import HomeAssistant as HomeAssistant
|
8
|
+
from homeassistant.helpers.device_registry import format_mac as format_mac
|
9
|
+
from homeassistant.helpers.update_coordinator import UpdateFailed as UpdateFailed
|
10
|
+
from typing import Any, NamedTuple
|
11
|
+
|
12
|
+
SENSORS_TYPE_BYTES: str
|
13
|
+
SENSORS_TYPE_COUNT: str
|
14
|
+
SENSORS_TYPE_LOAD_AVG: str
|
15
|
+
SENSORS_TYPE_RATES: str
|
16
|
+
SENSORS_TYPE_TEMPERATURES: str
|
17
|
+
|
18
|
+
class WrtDevice(NamedTuple):
|
19
|
+
ip: Incomplete
|
20
|
+
name: Incomplete
|
21
|
+
connected_to: Incomplete
|
22
|
+
|
23
|
+
_LOGGER: Incomplete
|
24
|
+
|
25
|
+
def _get_dict(keys: list, values: list) -> dict[str, Any]: ...
|
26
|
+
|
27
|
+
class AsusWrtBridge(ABC, metaclass=abc.ABCMeta):
|
28
|
+
@staticmethod
|
29
|
+
def get_bridge(hass: HomeAssistant, conf: dict[str, Any], options: dict[str, Any] | None = ...) -> AsusWrtBridge: ...
|
30
|
+
_host: Incomplete
|
31
|
+
_firmware: Incomplete
|
32
|
+
_label_mac: Incomplete
|
33
|
+
_model: Incomplete
|
34
|
+
def __init__(self, host: str) -> None: ...
|
35
|
+
@property
|
36
|
+
def host(self) -> str: ...
|
37
|
+
@property
|
38
|
+
def firmware(self) -> str | None: ...
|
39
|
+
@property
|
40
|
+
def label_mac(self) -> str | None: ...
|
41
|
+
@property
|
42
|
+
def model(self) -> str | None: ...
|
43
|
+
@property
|
44
|
+
@abstractmethod
|
45
|
+
def is_connected(self) -> bool: ...
|
46
|
+
@abstractmethod
|
47
|
+
async def async_connect(self) -> None: ...
|
48
|
+
@abstractmethod
|
49
|
+
async def async_disconnect(self) -> None: ...
|
50
|
+
@abstractmethod
|
51
|
+
async def async_get_connected_devices(self) -> dict[str, WrtDevice]: ...
|
52
|
+
@abstractmethod
|
53
|
+
async def async_get_available_sensors(self) -> dict[str, dict[str, Any]]: ...
|
54
|
+
|
55
|
+
class AsusWrtLegacyBridge(AsusWrtBridge):
|
56
|
+
_protocol: Incomplete
|
57
|
+
_api: Incomplete
|
58
|
+
def __init__(self, conf: dict[str, Any], options: dict[str, Any] | None = ...) -> None: ...
|
59
|
+
@staticmethod
|
60
|
+
def _get_api(conf: dict[str, Any], options: dict[str, Any] | None = ...) -> AsusWrtLegacy: ...
|
61
|
+
@property
|
62
|
+
def is_connected(self) -> bool: ...
|
63
|
+
async def async_connect(self) -> None: ...
|
64
|
+
async def async_disconnect(self) -> None: ...
|
65
|
+
async def async_get_connected_devices(self) -> dict[str, WrtDevice]: ...
|
66
|
+
async def _get_nvram_info(self, info_type: str) -> dict[str, Any]: ...
|
67
|
+
_label_mac: Incomplete
|
68
|
+
async def _get_label_mac(self) -> None: ...
|
69
|
+
_firmware: Incomplete
|
70
|
+
async def _get_firmware(self) -> None: ...
|
71
|
+
_model: Incomplete
|
72
|
+
async def _get_model(self) -> None: ...
|
73
|
+
async def async_get_available_sensors(self) -> dict[str, dict[str, Any]]: ...
|
74
|
+
async def _get_available_temperature_sensors(self) -> list[str]: ...
|
75
|
+
async def _get_bytes(self) -> dict[str, Any]: ...
|
76
|
+
async def _get_rates(self) -> dict[str, Any]: ...
|
77
|
+
async def _get_load_avg(self) -> dict[str, Any]: ...
|
78
|
+
async def _get_temperatures(self) -> dict[str, Any]: ...
|
@@ -1,13 +1,12 @@
|
|
1
1
|
import voluptuous as vol
|
2
|
+
from .bridge import AsusWrtBridge as AsusWrtBridge
|
2
3
|
from .const import CONF_DNSMASQ as CONF_DNSMASQ, CONF_INTERFACE as CONF_INTERFACE, CONF_REQUIRE_IP as CONF_REQUIRE_IP, CONF_SSH_KEY as CONF_SSH_KEY, CONF_TRACK_UNKNOWN as CONF_TRACK_UNKNOWN, DEFAULT_DNSMASQ as DEFAULT_DNSMASQ, DEFAULT_INTERFACE as DEFAULT_INTERFACE, DEFAULT_TRACK_UNKNOWN as DEFAULT_TRACK_UNKNOWN, DOMAIN as DOMAIN, MODE_AP as MODE_AP, MODE_ROUTER as MODE_ROUTER, PROTOCOL_SSH as PROTOCOL_SSH, PROTOCOL_TELNET as PROTOCOL_TELNET
|
3
|
-
from .router import get_api as get_api, get_nvram_info as get_nvram_info
|
4
4
|
from _typeshed import Incomplete
|
5
5
|
from homeassistant.components.device_tracker import CONF_CONSIDER_HOME as CONF_CONSIDER_HOME, DEFAULT_CONSIDER_HOME as DEFAULT_CONSIDER_HOME
|
6
6
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry, ConfigFlow as ConfigFlow
|
7
7
|
from homeassistant.const import CONF_HOST as CONF_HOST, CONF_MODE as CONF_MODE, CONF_PASSWORD as CONF_PASSWORD, CONF_PORT as CONF_PORT, CONF_PROTOCOL as CONF_PROTOCOL, CONF_USERNAME as CONF_USERNAME
|
8
8
|
from homeassistant.core import callback as callback
|
9
9
|
from homeassistant.data_entry_flow import FlowResult as FlowResult
|
10
|
-
from homeassistant.helpers.device_registry import format_mac as format_mac
|
11
10
|
from homeassistant.helpers.schema_config_entry_flow import SchemaCommonFlowHandler as SchemaCommonFlowHandler, SchemaFlowFormStep as SchemaFlowFormStep, SchemaOptionsFlowHandler as SchemaOptionsFlowHandler
|
12
11
|
from typing import Any
|
13
12
|
|
@@ -28,8 +27,7 @@ def _get_ip(host: str) -> str | None: ...
|
|
28
27
|
class AsusWrtFlowHandler(ConfigFlow, domain=DOMAIN):
|
29
28
|
VERSION: int
|
30
29
|
def _show_setup_form(self, user_input: dict[str, Any] | None = ..., errors: dict[str, str] | None = ...) -> FlowResult: ...
|
31
|
-
|
32
|
-
async def _async_check_connection(user_input: dict[str, Any]) -> tuple[str, str | None]: ...
|
30
|
+
async def _async_check_connection(self, user_input: dict[str, Any]) -> tuple[str, str | None]: ...
|
33
31
|
async def async_step_user(self, user_input: dict[str, Any] | None = ...) -> FlowResult: ...
|
34
32
|
@staticmethod
|
35
33
|
def async_get_options_flow(config_entry: ConfigEntry) -> SchemaOptionsFlowHandler: ...
|
@@ -1,11 +1,10 @@
|
|
1
|
-
from .
|
1
|
+
from .bridge import AsusWrtBridge as AsusWrtBridge, WrtDevice as WrtDevice
|
2
|
+
from .const import CONF_DNSMASQ as CONF_DNSMASQ, CONF_INTERFACE as CONF_INTERFACE, CONF_REQUIRE_IP as CONF_REQUIRE_IP, CONF_TRACK_UNKNOWN as CONF_TRACK_UNKNOWN, DEFAULT_DNSMASQ as DEFAULT_DNSMASQ, DEFAULT_INTERFACE as DEFAULT_INTERFACE, DEFAULT_TRACK_UNKNOWN as DEFAULT_TRACK_UNKNOWN, DOMAIN as DOMAIN, KEY_COORDINATOR as KEY_COORDINATOR, KEY_METHOD as KEY_METHOD, KEY_SENSORS as KEY_SENSORS, SENSORS_CONNECTED_DEVICE as SENSORS_CONNECTED_DEVICE
|
2
3
|
from _typeshed import Incomplete
|
3
|
-
from aioasuswrt.asuswrt import AsusWrt, Device as WrtDevice
|
4
4
|
from collections.abc import Callable as Callable
|
5
5
|
from datetime import datetime
|
6
6
|
from homeassistant.components.device_tracker import CONF_CONSIDER_HOME as CONF_CONSIDER_HOME, DEFAULT_CONSIDER_HOME as DEFAULT_CONSIDER_HOME
|
7
7
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
8
|
-
from homeassistant.const import CONF_HOST as CONF_HOST, CONF_MODE as CONF_MODE, CONF_PASSWORD as CONF_PASSWORD, CONF_PORT as CONF_PORT, CONF_PROTOCOL as CONF_PROTOCOL, CONF_USERNAME as CONF_USERNAME
|
9
8
|
from homeassistant.core import CALLBACK_TYPE as CALLBACK_TYPE, HomeAssistant as HomeAssistant, callback as callback
|
10
9
|
from homeassistant.exceptions import ConfigEntryNotReady as ConfigEntryNotReady
|
11
10
|
from homeassistant.helpers.device_registry import format_mac as format_mac
|
@@ -13,34 +12,22 @@ from homeassistant.helpers.dispatcher import async_dispatcher_send as async_disp
|
|
13
12
|
from homeassistant.helpers.entity import DeviceInfo as DeviceInfo
|
14
13
|
from homeassistant.helpers.event import async_track_time_interval as async_track_time_interval
|
15
14
|
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator as DataUpdateCoordinator, UpdateFailed as UpdateFailed
|
15
|
+
from homeassistant.util import slugify as slugify
|
16
16
|
from typing import Any
|
17
17
|
|
18
18
|
CONF_REQ_RELOAD: Incomplete
|
19
|
-
DEFAULT_NAME: str
|
20
|
-
KEY_COORDINATOR: str
|
21
|
-
KEY_SENSORS: str
|
22
19
|
SCAN_INTERVAL: Incomplete
|
23
|
-
SENSORS_TYPE_BYTES: str
|
24
20
|
SENSORS_TYPE_COUNT: str
|
25
|
-
SENSORS_TYPE_LOAD_AVG: str
|
26
|
-
SENSORS_TYPE_RATES: str
|
27
|
-
SENSORS_TYPE_TEMPERATURES: str
|
28
21
|
_LOGGER: Incomplete
|
29
22
|
|
30
|
-
def _get_dict(keys: list, values: list) -> dict[str, Any]: ...
|
31
|
-
|
32
23
|
class AsusWrtSensorDataHandler:
|
33
24
|
_hass: Incomplete
|
34
25
|
_api: Incomplete
|
35
26
|
_connected_devices: int
|
36
|
-
def __init__(self, hass: HomeAssistant, api:
|
27
|
+
def __init__(self, hass: HomeAssistant, api: AsusWrtBridge) -> None: ...
|
37
28
|
async def _get_connected_devices(self) -> dict[str, int]: ...
|
38
|
-
async def _get_bytes(self) -> dict[str, Any]: ...
|
39
|
-
async def _get_rates(self) -> dict[str, Any]: ...
|
40
|
-
async def _get_load_avg(self) -> dict[str, Any]: ...
|
41
|
-
async def _get_temperatures(self) -> dict[str, Any]: ...
|
42
29
|
def update_device_count(self, conn_devices: int) -> bool: ...
|
43
|
-
async def get_coordinator(self, sensor_type: str,
|
30
|
+
async def get_coordinator(self, sensor_type: str, update_method: Callable[[], Any] | None = ...) -> DataUpdateCoordinator: ...
|
44
31
|
|
45
32
|
class AsusWrtDevInfo:
|
46
33
|
_mac: Incomplete
|
@@ -64,11 +51,6 @@ class AsusWrtDevInfo:
|
|
64
51
|
class AsusWrtRouter:
|
65
52
|
hass: Incomplete
|
66
53
|
_entry: Incomplete
|
67
|
-
_api: Incomplete
|
68
|
-
_protocol: Incomplete
|
69
|
-
_host: Incomplete
|
70
|
-
_model: str
|
71
|
-
_sw_v: Incomplete
|
72
54
|
_devices: Incomplete
|
73
55
|
_connected_devices: int
|
74
56
|
_connect_error: bool
|
@@ -76,13 +58,14 @@ class AsusWrtRouter:
|
|
76
58
|
_sensors_coordinator: Incomplete
|
77
59
|
_on_close: Incomplete
|
78
60
|
_options: Incomplete
|
61
|
+
_api: Incomplete
|
79
62
|
def __init__(self, hass: HomeAssistant, entry: ConfigEntry) -> None: ...
|
63
|
+
def _migrate_entities_unique_id(self) -> None: ...
|
80
64
|
async def setup(self) -> None: ...
|
81
65
|
async def update_all(self, now: datetime | None = ...) -> None: ...
|
82
66
|
async def update_devices(self) -> None: ...
|
83
67
|
async def init_sensors_coordinator(self) -> None: ...
|
84
68
|
async def _update_unpolled_sensors(self) -> None: ...
|
85
|
-
async def _get_available_temperature_sensors(self) -> list[str]: ...
|
86
69
|
async def close(self) -> None: ...
|
87
70
|
def async_on_close(self, func: CALLBACK_TYPE) -> None: ...
|
88
71
|
def update_options(self, new_options: dict[str, Any]) -> bool: ...
|
@@ -95,13 +78,8 @@ class AsusWrtRouter:
|
|
95
78
|
@property
|
96
79
|
def host(self) -> str: ...
|
97
80
|
@property
|
98
|
-
def unique_id(self) -> str
|
99
|
-
@property
|
100
|
-
def name(self) -> str: ...
|
81
|
+
def unique_id(self) -> str: ...
|
101
82
|
@property
|
102
83
|
def devices(self) -> dict[str, AsusWrtDevInfo]: ...
|
103
84
|
@property
|
104
85
|
def sensors_coordinator(self) -> dict[str, Any]: ...
|
105
|
-
|
106
|
-
async def get_nvram_info(api: AsusWrt, info_type: str) -> dict[str, Any]: ...
|
107
|
-
def get_api(conf: dict[str, Any], options: dict[str, Any] | None = ...) -> AsusWrt: ...
|
@@ -1,5 +1,5 @@
|
|
1
|
-
from .const import DATA_ASUSWRT as DATA_ASUSWRT, DOMAIN as DOMAIN, SENSORS_BYTES as SENSORS_BYTES, SENSORS_CONNECTED_DEVICE as SENSORS_CONNECTED_DEVICE, SENSORS_LOAD_AVG as SENSORS_LOAD_AVG, SENSORS_RATES as SENSORS_RATES, SENSORS_TEMPERATURES as SENSORS_TEMPERATURES
|
2
|
-
from .router import AsusWrtRouter as AsusWrtRouter
|
1
|
+
from .const import DATA_ASUSWRT as DATA_ASUSWRT, DOMAIN as DOMAIN, KEY_COORDINATOR as KEY_COORDINATOR, KEY_SENSORS as KEY_SENSORS, SENSORS_BYTES as SENSORS_BYTES, SENSORS_CONNECTED_DEVICE as SENSORS_CONNECTED_DEVICE, SENSORS_LOAD_AVG as SENSORS_LOAD_AVG, SENSORS_RATES as SENSORS_RATES, SENSORS_TEMPERATURES as SENSORS_TEMPERATURES
|
2
|
+
from .router import AsusWrtRouter as AsusWrtRouter
|
3
3
|
from _typeshed import Incomplete
|
4
4
|
from homeassistant.components.sensor import SensorDeviceClass as SensorDeviceClass, SensorEntity as SensorEntity, SensorEntityDescription as SensorEntityDescription, SensorStateClass as SensorStateClass
|
5
5
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
@@ -7,6 +7,7 @@ from homeassistant.const import EntityCategory as EntityCategory, UnitOfDataRate
|
|
7
7
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
8
8
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
9
9
|
from homeassistant.helpers.update_coordinator import CoordinatorEntity as CoordinatorEntity, DataUpdateCoordinator as DataUpdateCoordinator
|
10
|
+
from homeassistant.util import slugify as slugify
|
10
11
|
|
11
12
|
class AsusWrtSensorEntityDescription(SensorEntityDescription):
|
12
13
|
factor: int | None
|
@@ -18,8 +19,8 @@ CONNECTION_SENSORS: tuple[AsusWrtSensorEntityDescription, ...]
|
|
18
19
|
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
|
19
20
|
|
20
21
|
class AsusWrtSensor(CoordinatorEntity, SensorEntity):
|
21
|
-
entity_description:
|
22
|
-
|
22
|
+
entity_description: AsusWrtSensorEntityDescription
|
23
|
+
_attr_has_entity_name: bool
|
23
24
|
_attr_unique_id: Incomplete
|
24
25
|
_attr_device_info: Incomplete
|
25
26
|
_attr_extra_state_attributes: Incomplete
|
@@ -7,14 +7,14 @@ from collections import OrderedDict
|
|
7
7
|
from collections.abc import Callable as Callable
|
8
8
|
from homeassistant.components.binary_sensor import BinarySensorDeviceClass as BinarySensorDeviceClass, BinarySensorEntity as BinarySensorEntity, PLATFORM_SCHEMA as PLATFORM_SCHEMA
|
9
9
|
from homeassistant.const import CONF_ABOVE as CONF_ABOVE, CONF_BELOW as CONF_BELOW, CONF_DEVICE_CLASS as CONF_DEVICE_CLASS, CONF_ENTITY_ID as CONF_ENTITY_ID, CONF_NAME as CONF_NAME, CONF_PLATFORM as CONF_PLATFORM, CONF_STATE as CONF_STATE, CONF_UNIQUE_ID as CONF_UNIQUE_ID, CONF_VALUE_TEMPLATE as CONF_VALUE_TEMPLATE, STATE_UNAVAILABLE as STATE_UNAVAILABLE, STATE_UNKNOWN as STATE_UNKNOWN
|
10
|
-
from homeassistant.core import
|
10
|
+
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
11
11
|
from homeassistant.exceptions import ConditionError as ConditionError, TemplateError as TemplateError
|
12
12
|
from homeassistant.helpers import condition as condition
|
13
13
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
14
|
-
from homeassistant.helpers.event import TrackTemplate as TrackTemplate, TrackTemplateResult as TrackTemplateResult, TrackTemplateResultInfo as TrackTemplateResultInfo, async_track_state_change_event as async_track_state_change_event, async_track_template_result as async_track_template_result
|
14
|
+
from homeassistant.helpers.event import EventStateChangedData as EventStateChangedData, TrackTemplate as TrackTemplate, TrackTemplateResult as TrackTemplateResult, TrackTemplateResultInfo as TrackTemplateResultInfo, async_track_state_change_event as async_track_state_change_event, async_track_template_result as async_track_template_result
|
15
15
|
from homeassistant.helpers.reload import async_setup_reload_service as async_setup_reload_service
|
16
16
|
from homeassistant.helpers.template import Template as Template, result_as_boolean as result_as_boolean
|
17
|
-
from homeassistant.helpers.typing import ConfigType as ConfigType, DiscoveryInfoType as DiscoveryInfoType
|
17
|
+
from homeassistant.helpers.typing import ConfigType as ConfigType, DiscoveryInfoType as DiscoveryInfoType, EventType as EventType
|
18
18
|
from typing import Any
|
19
19
|
from uuid import UUID
|
20
20
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
from _typeshed import Incomplete
|
2
|
-
from
|
2
|
+
from enum import StrEnum
|
3
3
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
4
4
|
from homeassistant.const import STATE_OFF as STATE_OFF, STATE_ON as STATE_ON
|
5
5
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
@@ -34,6 +34,7 @@ _LOGGER: Incomplete
|
|
34
34
|
def _dispatch_bleak_callback(callback: AdvertisementDataCallback | None, filters: dict[str, set[str]], device: BLEDevice, advertisement_data: AdvertisementData) -> None: ...
|
35
35
|
|
36
36
|
class BluetoothManager:
|
37
|
+
__slots__: Incomplete
|
37
38
|
hass: Incomplete
|
38
39
|
_integration_matcher: Incomplete
|
39
40
|
_cancel_unavailable_tracking: Incomplete
|
@@ -5,7 +5,7 @@ from _typeshed import Incomplete
|
|
5
5
|
from bleak import BleakClient
|
6
6
|
from bleak.backends.client import BaseBleakClient as BaseBleakClient
|
7
7
|
from bleak.backends.device import BLEDevice
|
8
|
-
from bleak.backends.scanner import AdvertisementDataCallback as AdvertisementDataCallback, BaseBleakScanner
|
8
|
+
from bleak.backends.scanner import AdvertisementData as AdvertisementData, AdvertisementDataCallback as AdvertisementDataCallback, BaseBleakScanner
|
9
9
|
from collections.abc import Callable as Callable
|
10
10
|
from homeassistant.core import CALLBACK_TYPE as CALLBACK_TYPE
|
11
11
|
from homeassistant.helpers.frame import report as report
|
@@ -25,6 +25,7 @@ class HaBleakScannerWrapper(BaseBleakScanner):
|
|
25
25
|
_detection_cancel: Incomplete
|
26
26
|
_mapped_filters: Incomplete
|
27
27
|
_advertisement_data_callback: Incomplete
|
28
|
+
_background_tasks: Incomplete
|
28
29
|
def __init__(self, *args: Any, detection_callback: AdvertisementDataCallback | None = ..., service_uuids: list[str] | None = ..., **kwargs: Any) -> None: ...
|
29
30
|
@classmethod
|
30
31
|
async def discover(cls, timeout: float = ..., **kwargs: Any) -> list[BLEDevice]: ...
|
@@ -1,7 +1,7 @@
|
|
1
1
|
from .const import DOMAIN as DOMAIN, SERVICE_PRESS as SERVICE_PRESS
|
2
2
|
from _typeshed import Incomplete
|
3
3
|
from datetime import datetime
|
4
|
-
from
|
4
|
+
from enum import StrEnum
|
5
5
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
6
6
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
7
7
|
from homeassistant.helpers.config_validation import PLATFORM_SCHEMA as PLATFORM_SCHEMA, PLATFORM_SCHEMA_BASE as PLATFORM_SCHEMA_BASE
|
@@ -1,7 +1,6 @@
|
|
1
1
|
from _typeshed import Incomplete
|
2
2
|
from collections.abc import Callable as Callable
|
3
|
-
from enum import IntFlag
|
4
|
-
from homeassistant.backports.enum import StrEnum as StrEnum
|
3
|
+
from enum import IntFlag, StrEnum
|
5
4
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
6
5
|
from homeassistant.const import SERVICE_CLOSE_COVER as SERVICE_CLOSE_COVER, SERVICE_CLOSE_COVER_TILT as SERVICE_CLOSE_COVER_TILT, SERVICE_OPEN_COVER as SERVICE_OPEN_COVER, SERVICE_OPEN_COVER_TILT as SERVICE_OPEN_COVER_TILT, SERVICE_SET_COVER_POSITION as SERVICE_SET_COVER_POSITION, SERVICE_SET_COVER_TILT_POSITION as SERVICE_SET_COVER_TILT_POSITION, SERVICE_STOP_COVER as SERVICE_STOP_COVER, SERVICE_STOP_COVER_TILT as SERVICE_STOP_COVER_TILT, SERVICE_TOGGLE as SERVICE_TOGGLE, SERVICE_TOGGLE_COVER_TILT as SERVICE_TOGGLE_COVER_TILT, STATE_CLOSED as STATE_CLOSED, STATE_CLOSING as STATE_CLOSING, STATE_OPEN as STATE_OPEN, STATE_OPENING as STATE_OPENING
|
7
6
|
from homeassistant.core import HomeAssistant as HomeAssistant
|