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
@@ -0,0 +1,26 @@
|
|
1
|
+
from .const import CONF_RESPOND_TO_READ as CONF_RESPOND_TO_READ, CONF_STATE_ADDRESS as CONF_STATE_ADDRESS, CONF_SYNC_STATE as CONF_SYNC_STATE, DATA_KNX_CONFIG as DATA_KNX_CONFIG, DOMAIN as DOMAIN, KNX_ADDRESS as KNX_ADDRESS
|
2
|
+
from .knx_entity import KnxEntity as KnxEntity
|
3
|
+
from _typeshed import Incomplete
|
4
|
+
from datetime import datetime
|
5
|
+
from homeassistant import config_entries as config_entries
|
6
|
+
from homeassistant.components.datetime import DateTimeEntity as DateTimeEntity
|
7
|
+
from homeassistant.const import CONF_ENTITY_CATEGORY as CONF_ENTITY_CATEGORY, CONF_NAME as CONF_NAME, Platform as Platform, STATE_UNAVAILABLE as STATE_UNAVAILABLE, STATE_UNKNOWN as STATE_UNKNOWN
|
8
|
+
from homeassistant.core import HomeAssistant as HomeAssistant
|
9
|
+
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
10
|
+
from homeassistant.helpers.restore_state import RestoreEntity as RestoreEntity
|
11
|
+
from homeassistant.helpers.typing import ConfigType as ConfigType
|
12
|
+
from xknx import XKNX as XKNX
|
13
|
+
from xknx.devices import DateTime as XknxDateTime
|
14
|
+
|
15
|
+
async def async_setup_entry(hass: HomeAssistant, config_entry: config_entries.ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
|
16
|
+
def _create_xknx_device(xknx: XKNX, config: ConfigType) -> XknxDateTime: ...
|
17
|
+
|
18
|
+
class KNXDateTime(KnxEntity, DateTimeEntity, RestoreEntity):
|
19
|
+
_device: XknxDateTime
|
20
|
+
_attr_entity_category: Incomplete
|
21
|
+
_attr_unique_id: Incomplete
|
22
|
+
def __init__(self, xknx: XKNX, config: ConfigType) -> None: ...
|
23
|
+
async def async_added_to_hass(self) -> None: ...
|
24
|
+
@property
|
25
|
+
def native_value(self) -> datetime | None: ...
|
26
|
+
async def async_set_value(self, value: datetime) -> None: ...
|
@@ -3,9 +3,9 @@ from .schema import ExposeSchema as ExposeSchema
|
|
3
3
|
from _typeshed import Incomplete
|
4
4
|
from collections.abc import Callable as Callable
|
5
5
|
from homeassistant.const import CONF_ENTITY_ID as CONF_ENTITY_ID, STATE_OFF as STATE_OFF, STATE_ON as STATE_ON, STATE_UNAVAILABLE as STATE_UNAVAILABLE, STATE_UNKNOWN as STATE_UNKNOWN
|
6
|
-
from homeassistant.core import
|
7
|
-
from homeassistant.helpers.event import async_track_state_change_event as async_track_state_change_event
|
8
|
-
from homeassistant.helpers.typing import ConfigType as ConfigType, StateType as StateType
|
6
|
+
from homeassistant.core import HomeAssistant as HomeAssistant, State as State, callback as callback
|
7
|
+
from homeassistant.helpers.event import EventStateChangedData as EventStateChangedData, async_track_state_change_event as async_track_state_change_event
|
8
|
+
from homeassistant.helpers.typing import ConfigType as ConfigType, EventType as EventType, StateType as StateType
|
9
9
|
from xknx import XKNX as XKNX
|
10
10
|
from xknx.devices import DateTime, ExposeSensor
|
11
11
|
|
@@ -27,7 +27,7 @@ class KNXExposeSensor:
|
|
27
27
|
def _init_expose_state(self) -> None: ...
|
28
28
|
def shutdown(self) -> None: ...
|
29
29
|
def _get_expose_value(self, state: State | None) -> bool | int | float | str | None: ...
|
30
|
-
async def _async_entity_changed(self, event:
|
30
|
+
async def _async_entity_changed(self, event: EventType[EventStateChangedData]) -> None: ...
|
31
31
|
async def _async_set_knx_value(self, value: StateType) -> None: ...
|
32
32
|
|
33
33
|
class KNXExposeTime:
|
@@ -120,6 +120,16 @@ class CoverSchema(KNXPlatformSchema):
|
|
120
120
|
DEFAULT_NAME: str
|
121
121
|
ENTITY_SCHEMA: Incomplete
|
122
122
|
|
123
|
+
class DateSchema(KNXPlatformSchema):
|
124
|
+
PLATFORM: Incomplete
|
125
|
+
DEFAULT_NAME: str
|
126
|
+
ENTITY_SCHEMA: Incomplete
|
127
|
+
|
128
|
+
class DateTimeSchema(KNXPlatformSchema):
|
129
|
+
PLATFORM: Incomplete
|
130
|
+
DEFAULT_NAME: str
|
131
|
+
ENTITY_SCHEMA: Incomplete
|
132
|
+
|
123
133
|
class ExposeSchema(KNXPlatformSchema):
|
124
134
|
PLATFORM = CONF_KNX_EXPOSE
|
125
135
|
CONF_KNX_EXPOSE_TYPE = CONF_TYPE
|
@@ -1,12 +1,16 @@
|
|
1
|
-
import
|
1
|
+
from .const import DOMAIN as DOMAIN
|
2
2
|
from .project import KNXProject as KNXProject
|
3
3
|
from _typeshed import Incomplete
|
4
4
|
from collections.abc import Callable as Callable
|
5
5
|
from homeassistant.core import CALLBACK_TYPE as CALLBACK_TYPE, HassJob as HassJob, HomeAssistant as HomeAssistant, callback as callback
|
6
|
-
from
|
6
|
+
from homeassistant.helpers.storage import Store as Store
|
7
|
+
from typing import Final, TypedDict
|
7
8
|
from xknx import XKNX as XKNX
|
8
9
|
from xknx.telegram import Telegram as Telegram
|
9
10
|
|
11
|
+
STORAGE_VERSION: Final[int]
|
12
|
+
STORAGE_KEY: Final[Incomplete]
|
13
|
+
|
10
14
|
class TelegramDict(TypedDict):
|
11
15
|
destination: str
|
12
16
|
destination_name: str
|
@@ -18,17 +22,20 @@ class TelegramDict(TypedDict):
|
|
18
22
|
source: str
|
19
23
|
source_name: str
|
20
24
|
telegramtype: str
|
21
|
-
timestamp:
|
25
|
+
timestamp: str
|
22
26
|
unit: str | None
|
23
27
|
value: str | int | float | bool | None
|
24
28
|
|
25
29
|
class Telegrams:
|
26
30
|
hass: Incomplete
|
27
31
|
project: Incomplete
|
32
|
+
_history_store: Incomplete
|
28
33
|
_jobs: Incomplete
|
29
34
|
_xknx_telegram_cb_handle: Incomplete
|
30
35
|
recent_telegrams: Incomplete
|
31
36
|
def __init__(self, hass: HomeAssistant, xknx: XKNX, project: KNXProject, log_size: int) -> None: ...
|
37
|
+
async def load_history(self) -> None: ...
|
38
|
+
async def save_history(self) -> None: ...
|
32
39
|
async def _xknx_telegram_cb(self, telegram: Telegram) -> None: ...
|
33
40
|
def async_listen_telegram(self, action: Callable[[TelegramDict], None], name: str = ...) -> CALLBACK_TYPE: ...
|
34
41
|
def telegram_to_dict(self, telegram: Telegram) -> TelegramDict: ...
|
@@ -1,6 +1,3 @@
|
|
1
|
-
from collections.abc import Callable as Callable
|
2
|
-
from homeassistant.components.sensor import SensorEntityDescription as SensorEntityDescription
|
3
|
-
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator as DataUpdateCoordinator
|
4
1
|
from typing import TypedDict
|
5
2
|
|
6
3
|
class KrakenResponseEntry(TypedDict):
|
@@ -19,12 +16,3 @@ DEFAULT_TRACKED_ASSET_PAIR: str
|
|
19
16
|
DISPATCH_CONFIG_UPDATED: str
|
20
17
|
CONF_TRACKED_ASSET_PAIRS: str
|
21
18
|
DOMAIN: str
|
22
|
-
|
23
|
-
class KrakenRequiredKeysMixin:
|
24
|
-
value_fn: Callable[[DataUpdateCoordinator[KrakenResponse], str], float | int]
|
25
|
-
def __init__(self, value_fn) -> None: ...
|
26
|
-
|
27
|
-
class KrakenSensorEntityDescription(SensorEntityDescription, KrakenRequiredKeysMixin):
|
28
|
-
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: ...
|
29
|
-
|
30
|
-
SENSOR_TYPES: tuple[KrakenSensorEntityDescription, ...]
|
@@ -1,7 +1,8 @@
|
|
1
1
|
from . import KrakenData as KrakenData
|
2
|
-
from .const import CONF_TRACKED_ASSET_PAIRS as CONF_TRACKED_ASSET_PAIRS, DISPATCH_CONFIG_UPDATED as DISPATCH_CONFIG_UPDATED, DOMAIN as DOMAIN, KrakenResponse as KrakenResponse
|
2
|
+
from .const import CONF_TRACKED_ASSET_PAIRS as CONF_TRACKED_ASSET_PAIRS, DISPATCH_CONFIG_UPDATED as DISPATCH_CONFIG_UPDATED, DOMAIN as DOMAIN, KrakenResponse as KrakenResponse
|
3
3
|
from _typeshed import Incomplete
|
4
|
-
from
|
4
|
+
from collections.abc import Callable as Callable
|
5
|
+
from homeassistant.components.sensor import SensorEntity as SensorEntity, SensorEntityDescription as SensorEntityDescription, SensorStateClass as SensorStateClass
|
5
6
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
6
7
|
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
7
8
|
from homeassistant.helpers.dispatcher import async_dispatcher_connect as async_dispatcher_connect
|
@@ -11,6 +12,15 @@ from homeassistant.helpers.update_coordinator import CoordinatorEntity as Coordi
|
|
11
12
|
|
12
13
|
_LOGGER: Incomplete
|
13
14
|
|
15
|
+
class KrakenRequiredKeysMixin:
|
16
|
+
value_fn: Callable[[DataUpdateCoordinator[KrakenResponse], str], float | int]
|
17
|
+
def __init__(self, value_fn) -> None: ...
|
18
|
+
|
19
|
+
class KrakenSensorEntityDescription(SensorEntityDescription, KrakenRequiredKeysMixin):
|
20
|
+
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: ...
|
21
|
+
|
22
|
+
SENSOR_TYPES: tuple[KrakenSensorEntityDescription, ...]
|
23
|
+
|
14
24
|
async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
|
15
25
|
|
16
26
|
class KrakenSensor(CoordinatorEntity[DataUpdateCoordinator[KrakenResponse | None]], SensorEntity):
|
@@ -5,6 +5,7 @@ from homeassistant.components.sensor import SensorDeviceClass as SensorDeviceCla
|
|
5
5
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
6
6
|
from homeassistant.const import DEGREE as DEGREE, PERCENTAGE as PERCENTAGE, UnitOfPrecipitationDepth as UnitOfPrecipitationDepth, UnitOfPressure as UnitOfPressure, UnitOfSpeed as UnitOfSpeed, UnitOfTemperature as UnitOfTemperature
|
7
7
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
8
|
+
from homeassistant.helpers.entity import DeviceInfo as DeviceInfo
|
8
9
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
9
10
|
from homeassistant.helpers.update_coordinator import CoordinatorEntity as CoordinatorEntity, DataUpdateCoordinator as DataUpdateCoordinator
|
10
11
|
from lacrosse_view import Sensor
|
@@ -17,6 +17,8 @@ class LaundrifyPowerPlug(CoordinatorEntity[LaundrifyUpdateCoordinator], BinarySe
|
|
17
17
|
_attr_device_class: Incomplete
|
18
18
|
_attr_icon: str
|
19
19
|
_attr_unique_id: str
|
20
|
+
_attr_has_entity_name: bool
|
21
|
+
_attr_name: Incomplete
|
20
22
|
_device: Incomplete
|
21
23
|
def __init__(self, coordinator: LaundrifyUpdateCoordinator, device: LaundrifyDevice) -> None: ...
|
22
24
|
@property
|
@@ -24,7 +26,5 @@ class LaundrifyPowerPlug(CoordinatorEntity[LaundrifyUpdateCoordinator], BinarySe
|
|
24
26
|
@property
|
25
27
|
def available(self) -> bool: ...
|
26
28
|
@property
|
27
|
-
def name(self) -> str: ...
|
28
|
-
@property
|
29
29
|
def is_on(self) -> bool: ...
|
30
30
|
def _handle_coordinator_update(self) -> None: ...
|
@@ -14,6 +14,7 @@ ENTITY_DESCRIPTIONS: Incomplete
|
|
14
14
|
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
|
15
15
|
|
16
16
|
class LD2410BLEBinarySensor(CoordinatorEntity[LD2410BLECoordinator], BinarySensorEntity):
|
17
|
+
_attr_has_entity_name: bool
|
17
18
|
_coordinator: Incomplete
|
18
19
|
_key: Incomplete
|
19
20
|
_device: Incomplete
|
@@ -24,6 +24,7 @@ SENSOR_DESCRIPTIONS: Incomplete
|
|
24
24
|
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
|
25
25
|
|
26
26
|
class LD2410BLESensor(CoordinatorEntity[LD2410BLECoordinator], SensorEntity):
|
27
|
+
_attr_has_entity_name: bool
|
27
28
|
_coordinator: Incomplete
|
28
29
|
_device: Incomplete
|
29
30
|
_key: Incomplete
|
@@ -14,7 +14,6 @@ HEV_CYCLE_STATE_SENSOR: Incomplete
|
|
14
14
|
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
|
15
15
|
|
16
16
|
class LIFXHevCycleBinarySensorEntity(LIFXEntity, BinarySensorEntity):
|
17
|
-
_attr_has_entity_name: bool
|
18
17
|
entity_description: Incomplete
|
19
18
|
_attr_unique_id: Incomplete
|
20
19
|
def __init__(self, coordinator: LIFXUpdateCoordinator, description: BinarySensorEntityDescription) -> None: ...
|
@@ -14,7 +14,6 @@ IDENTIFY_BUTTON_DESCRIPTION: Incomplete
|
|
14
14
|
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
|
15
15
|
|
16
16
|
class LIFXButton(LIFXEntity, ButtonEntity):
|
17
|
-
_attr_has_entity_name: bool
|
18
17
|
_attr_should_poll: bool
|
19
18
|
_attr_unique_id: Incomplete
|
20
19
|
def __init__(self, coordinator: LIFXUpdateCoordinator) -> None: ...
|
@@ -5,6 +5,7 @@ from homeassistant.helpers.entity import DeviceInfo as DeviceInfo
|
|
5
5
|
from homeassistant.helpers.update_coordinator import CoordinatorEntity as CoordinatorEntity
|
6
6
|
|
7
7
|
class LIFXEntity(CoordinatorEntity[LIFXUpdateCoordinator]):
|
8
|
+
_attr_has_entity_name: bool
|
8
9
|
bulb: Incomplete
|
9
10
|
_attr_device_info: Incomplete
|
10
11
|
def __init__(self, coordinator: LIFXUpdateCoordinator) -> None: ...
|
@@ -29,13 +29,13 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_e
|
|
29
29
|
|
30
30
|
class LIFXLight(LIFXEntity, LightEntity):
|
31
31
|
_attr_supported_features: Incomplete
|
32
|
+
_attr_name: Incomplete
|
32
33
|
mac_addr: Incomplete
|
33
34
|
manager: Incomplete
|
34
35
|
effects_conductor: Incomplete
|
35
36
|
postponed_update: Incomplete
|
36
37
|
entry: Incomplete
|
37
38
|
_attr_unique_id: Incomplete
|
38
|
-
_attr_name: Incomplete
|
39
39
|
_attr_min_color_temp_kelvin: Incomplete
|
40
40
|
_attr_max_color_temp_kelvin: Incomplete
|
41
41
|
_attr_color_mode: Incomplete
|
@@ -16,7 +16,6 @@ THEME_ENTITY: Incomplete
|
|
16
16
|
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
|
17
17
|
|
18
18
|
class LIFXInfraredBrightnessSelectEntity(LIFXEntity, SelectEntity):
|
19
|
-
_attr_has_entity_name: bool
|
20
19
|
entity_description: Incomplete
|
21
20
|
_attr_unique_id: Incomplete
|
22
21
|
_attr_current_option: Incomplete
|
@@ -26,7 +25,6 @@ class LIFXInfraredBrightnessSelectEntity(LIFXEntity, SelectEntity):
|
|
26
25
|
async def async_select_option(self, option: str) -> None: ...
|
27
26
|
|
28
27
|
class LIFXThemeSelectEntity(LIFXEntity, SelectEntity):
|
29
|
-
_attr_has_entity_name: bool
|
30
28
|
entity_description: Incomplete
|
31
29
|
_attr_unique_id: Incomplete
|
32
30
|
_attr_current_option: Incomplete
|
@@ -14,7 +14,6 @@ RSSI_SENSOR: Incomplete
|
|
14
14
|
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
|
15
15
|
|
16
16
|
class LIFXRssiSensor(LIFXEntity, SensorEntity):
|
17
|
-
_attr_has_entity_name: bool
|
18
17
|
entity_description: Incomplete
|
19
18
|
_attr_unique_id: Incomplete
|
20
19
|
_attr_native_unit_of_measurement: Incomplete
|
@@ -1,7 +1,6 @@
|
|
1
1
|
from _typeshed import Incomplete
|
2
2
|
from collections.abc import Iterable
|
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_TOGGLE as SERVICE_TOGGLE, SERVICE_TURN_OFF as SERVICE_TURN_OFF, SERVICE_TURN_ON as SERVICE_TURN_ON, STATE_ON as STATE_ON
|
7
6
|
from homeassistant.core import HomeAssistant as HomeAssistant, ServiceCall as ServiceCall, callback as callback
|
@@ -11,8 +10,7 @@ from homeassistant.helpers.entity import ToggleEntity as ToggleEntity, ToggleEnt
|
|
11
10
|
from homeassistant.helpers.entity_component import EntityComponent as EntityComponent
|
12
11
|
from homeassistant.helpers.typing import ConfigType as ConfigType
|
13
12
|
from homeassistant.loader import bind_hass as bind_hass
|
14
|
-
from typing import Any
|
15
|
-
from typing_extensions import Self
|
13
|
+
from typing import Any, Self
|
16
14
|
|
17
15
|
DOMAIN: str
|
18
16
|
SCAN_INTERVAL: Incomplete
|
@@ -5,7 +5,8 @@ from homeassistant.components.sensor import ATTR_STATE_CLASS as ATTR_STATE_CLASS
|
|
5
5
|
from homeassistant.const import ATTR_DEVICE_ID as ATTR_DEVICE_ID, ATTR_DOMAIN as ATTR_DOMAIN, ATTR_ENTITY_ID as ATTR_ENTITY_ID, ATTR_UNIT_OF_MEASUREMENT as ATTR_UNIT_OF_MEASUREMENT, EVENT_LOGBOOK_ENTRY as EVENT_LOGBOOK_ENTRY, EVENT_STATE_CHANGED as EVENT_STATE_CHANGED
|
6
6
|
from homeassistant.core import CALLBACK_TYPE as CALLBACK_TYPE, Event as Event, HomeAssistant as HomeAssistant, State as State, callback as callback, is_callback as is_callback, split_entity_id as split_entity_id
|
7
7
|
from homeassistant.helpers import entity_registry as er
|
8
|
-
from homeassistant.helpers.event import async_track_state_change_event as async_track_state_change_event
|
8
|
+
from homeassistant.helpers.event import EventStateChangedData as EventStateChangedData, async_track_state_change_event as async_track_state_change_event
|
9
|
+
from homeassistant.helpers.typing import EventType as EventType
|
9
10
|
from typing import Any
|
10
11
|
|
11
12
|
def async_filter_entities(hass: HomeAssistant, entity_ids: list[str]) -> list[str]: ...
|
@@ -2,7 +2,7 @@ import logging
|
|
2
2
|
from .const import DOMAIN as DOMAIN, EVENT_LOGGING_CHANGED as EVENT_LOGGING_CHANGED, LOGGER_DEFAULT as LOGGER_DEFAULT, LOGGER_LOGS as LOGGER_LOGS, LOGSEVERITY as LOGSEVERITY, LOGSEVERITY_NOTSET as LOGSEVERITY_NOTSET, STORAGE_KEY as STORAGE_KEY, STORAGE_LOG_KEY as STORAGE_LOG_KEY, STORAGE_VERSION as STORAGE_VERSION
|
3
3
|
from _typeshed import Incomplete
|
4
4
|
from collections.abc import Mapping
|
5
|
-
from
|
5
|
+
from enum import StrEnum
|
6
6
|
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
7
7
|
from homeassistant.helpers.storage import Store as Store
|
8
8
|
from homeassistant.helpers.typing import ConfigType as ConfigType
|
@@ -6,7 +6,7 @@ from chip.clusters.Objects import uint as uint
|
|
6
6
|
from chip.clusters.Types import Nullable as Nullable
|
7
7
|
from homeassistant.components.binary_sensor import BinarySensorDeviceClass as BinarySensorDeviceClass, BinarySensorEntity as BinarySensorEntity, BinarySensorEntityDescription as BinarySensorEntityDescription
|
8
8
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
9
|
-
from homeassistant.const import Platform as Platform
|
9
|
+
from homeassistant.const import EntityCategory as EntityCategory, Platform as Platform
|
10
10
|
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
11
11
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
12
12
|
|
@@ -37,5 +37,5 @@ class MatterEntity(Entity, metaclass=abc.ABCMeta):
|
|
37
37
|
def _on_matter_event(self, event: EventType, data: Any = ...) -> None: ...
|
38
38
|
@abstractmethod
|
39
39
|
def _update_from_device(self) -> None: ...
|
40
|
-
def get_matter_attribute_value(self, attribute: type[ClusterAttributeDescriptor]) -> Any: ...
|
40
|
+
def get_matter_attribute_value(self, attribute: type[ClusterAttributeDescriptor], null_as_none: bool = ...) -> Any: ...
|
41
41
|
def get_matter_attribute_path(self, attribute: type[ClusterAttributeDescriptor]) -> str: ...
|
@@ -0,0 +1,27 @@
|
|
1
|
+
from .entity import MatterEntity as MatterEntity
|
2
|
+
from .helpers import get_matter as get_matter
|
3
|
+
from .models import MatterDiscoverySchema as MatterDiscoverySchema
|
4
|
+
from _typeshed import Incomplete
|
5
|
+
from homeassistant.components.event import EventDeviceClass as EventDeviceClass, EventEntity as EventEntity, EventEntityDescription as EventEntityDescription
|
6
|
+
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
7
|
+
from homeassistant.const import Platform as Platform
|
8
|
+
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
9
|
+
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
10
|
+
from matter_server.common.models import EventType, MatterNodeEvent as MatterNodeEvent
|
11
|
+
from typing import Any
|
12
|
+
|
13
|
+
SwitchFeature: Incomplete
|
14
|
+
EVENT_TYPES_MAP: Incomplete
|
15
|
+
|
16
|
+
async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
|
17
|
+
|
18
|
+
class MatterEventEntity(MatterEntity, EventEntity):
|
19
|
+
_attr_translation_key: str
|
20
|
+
_attr_event_types: Incomplete
|
21
|
+
_attr_name: Incomplete
|
22
|
+
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
23
|
+
async def async_added_to_hass(self) -> None: ...
|
24
|
+
def _update_from_device(self) -> None: ...
|
25
|
+
def _on_matter_node_event(self, event: EventType, data: MatterNodeEvent) -> None: ...
|
26
|
+
|
27
|
+
DISCOVERY_SCHEMAS: Incomplete
|
@@ -5,7 +5,7 @@ from _typeshed import Incomplete
|
|
5
5
|
from chip.clusters.Types import Nullable as Nullable
|
6
6
|
from homeassistant.components.sensor import SensorDeviceClass as SensorDeviceClass, SensorEntity as SensorEntity, SensorEntityDescription as SensorEntityDescription, SensorStateClass as SensorStateClass
|
7
7
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
8
|
-
from homeassistant.const import LIGHT_LUX as LIGHT_LUX, PERCENTAGE as PERCENTAGE, Platform as Platform, UnitOfPressure as UnitOfPressure, UnitOfTemperature as UnitOfTemperature, UnitOfVolumeFlowRate as UnitOfVolumeFlowRate
|
8
|
+
from homeassistant.const import EntityCategory as EntityCategory, LIGHT_LUX as LIGHT_LUX, PERCENTAGE as PERCENTAGE, Platform as Platform, UnitOfPressure as UnitOfPressure, UnitOfTemperature as UnitOfTemperature, UnitOfVolumeFlowRate as UnitOfVolumeFlowRate
|
9
9
|
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
10
10
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
11
11
|
|
@@ -9,7 +9,7 @@ from _typeshed import Incomplete
|
|
9
9
|
from aiohttp import web
|
10
10
|
from aiohttp.typedefs import LooseHeaders as LooseHeaders
|
11
11
|
from collections.abc import Callable as Callable
|
12
|
-
from
|
12
|
+
from enum import StrEnum
|
13
13
|
from homeassistant.components import websocket_api as websocket_api
|
14
14
|
from homeassistant.components.http import HomeAssistantView as HomeAssistantView, KEY_AUTHENTICATED as KEY_AUTHENTICATED
|
15
15
|
from homeassistant.components.websocket_api import ERR_NOT_SUPPORTED as ERR_NOT_SUPPORTED, ERR_UNKNOWN_ERROR as ERR_UNKNOWN_ERROR
|
@@ -23,8 +23,7 @@ from homeassistant.helpers.entity_component import EntityComponent as EntityComp
|
|
23
23
|
from homeassistant.helpers.network import get_url as get_url
|
24
24
|
from homeassistant.helpers.typing import ConfigType as ConfigType
|
25
25
|
from homeassistant.loader import bind_hass as bind_hass
|
26
|
-
from typing import Any, Final, TypedDict
|
27
|
-
from typing_extensions import Required
|
26
|
+
from typing import Any, Final, Required, TypedDict
|
28
27
|
|
29
28
|
_LOGGER: Incomplete
|
30
29
|
ENTITY_ID_FORMAT: Incomplete
|
@@ -1,6 +1,5 @@
|
|
1
1
|
from _typeshed import Incomplete
|
2
|
-
from enum import IntFlag
|
3
|
-
from homeassistant.backports.enum import StrEnum as StrEnum
|
2
|
+
from enum import IntFlag, StrEnum
|
4
3
|
|
5
4
|
CONTENT_AUTH_EXPIRY_TIME: Incomplete
|
6
5
|
ATTR_APP_ID: str
|
@@ -169,6 +168,8 @@ class MediaPlayerEntityFeature(IntFlag):
|
|
169
168
|
BROWSE_MEDIA: int
|
170
169
|
REPEAT_SET: int
|
171
170
|
GROUPING: int
|
171
|
+
MEDIA_ANNOUNCE: int
|
172
|
+
MEDIA_ENQUEUE: int
|
172
173
|
|
173
174
|
SUPPORT_PAUSE: int
|
174
175
|
SUPPORT_SEEK: int
|
@@ -5,9 +5,9 @@ from datetime import datetime
|
|
5
5
|
from homeassistant.components.sensor import PLATFORM_SCHEMA as PLATFORM_SCHEMA, SensorEntity as SensorEntity, SensorStateClass as SensorStateClass
|
6
6
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
7
7
|
from homeassistant.const import ATTR_UNIT_OF_MEASUREMENT as ATTR_UNIT_OF_MEASUREMENT, CONF_NAME as CONF_NAME, CONF_TYPE as CONF_TYPE, CONF_UNIQUE_ID as CONF_UNIQUE_ID, STATE_UNAVAILABLE as STATE_UNAVAILABLE, STATE_UNKNOWN as STATE_UNKNOWN
|
8
|
-
from homeassistant.core import
|
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.event import async_track_state_change_event as async_track_state_change_event
|
10
|
+
from homeassistant.helpers.event import EventStateChangedData as EventStateChangedData, async_track_state_change_event as async_track_state_change_event
|
11
11
|
from homeassistant.helpers.reload import async_setup_reload_service as async_setup_reload_service
|
12
12
|
from homeassistant.helpers.typing import ConfigType as ConfigType, DiscoveryInfoType as DiscoveryInfoType, EventType as EventType, StateType as StateType
|
13
13
|
from typing import Any
|
@@ -68,5 +68,5 @@ class MinMaxSensor(SensorEntity):
|
|
68
68
|
def native_unit_of_measurement(self) -> str | None: ...
|
69
69
|
@property
|
70
70
|
def extra_state_attributes(self) -> dict[str, Any] | None: ...
|
71
|
-
def _async_min_max_sensor_state_listener(self, event: EventType, update_state: bool = ...) -> None: ...
|
71
|
+
def _async_min_max_sensor_state_listener(self, event: EventType[EventStateChangedData], update_state: bool = ...) -> None: ...
|
72
72
|
def _calc_values(self) -> None: ...
|
@@ -1,6 +1,6 @@
|
|
1
1
|
from . import debug_info as debug_info, discovery as discovery
|
2
2
|
from .client import MQTT as MQTT, async_publish as async_publish, async_subscribe as async_subscribe, publish as publish, subscribe as subscribe
|
3
|
-
from .config_integration import
|
3
|
+
from .config_integration import CONFIG_SCHEMA_BASE as CONFIG_SCHEMA_BASE
|
4
4
|
from .const import ATTR_PAYLOAD as ATTR_PAYLOAD, ATTR_QOS as ATTR_QOS, ATTR_RETAIN as ATTR_RETAIN, ATTR_TOPIC as ATTR_TOPIC, CONF_BIRTH_MESSAGE as CONF_BIRTH_MESSAGE, CONF_BROKER as CONF_BROKER, CONF_CERTIFICATE as CONF_CERTIFICATE, CONF_CLIENT_CERT as CONF_CLIENT_CERT, CONF_CLIENT_KEY as CONF_CLIENT_KEY, CONF_COMMAND_TOPIC as CONF_COMMAND_TOPIC, CONF_DISCOVERY_PREFIX as CONF_DISCOVERY_PREFIX, CONF_KEEPALIVE as CONF_KEEPALIVE, CONF_QOS as CONF_QOS, CONF_STATE_TOPIC as CONF_STATE_TOPIC, CONF_TLS_INSECURE as CONF_TLS_INSECURE, CONF_TOPIC as CONF_TOPIC, CONF_TRANSPORT as CONF_TRANSPORT, CONF_WILL_MESSAGE as CONF_WILL_MESSAGE, CONF_WS_HEADERS as CONF_WS_HEADERS, CONF_WS_PATH as CONF_WS_PATH, DATA_MQTT as DATA_MQTT, DATA_MQTT_AVAILABLE as DATA_MQTT_AVAILABLE, DEFAULT_DISCOVERY as DEFAULT_DISCOVERY, DEFAULT_ENCODING as DEFAULT_ENCODING, DEFAULT_PREFIX as DEFAULT_PREFIX, DEFAULT_QOS as DEFAULT_QOS, DEFAULT_RETAIN as DEFAULT_RETAIN, DOMAIN as DOMAIN, MQTT_CONNECTED as MQTT_CONNECTED, MQTT_DISCONNECTED as MQTT_DISCONNECTED, PLATFORMS as PLATFORMS, RELOADABLE_PLATFORMS as RELOADABLE_PLATFORMS
|
5
5
|
from .models import MqttCommandTemplate as MqttCommandTemplate, MqttData as MqttData, MqttValueTemplate as MqttValueTemplate, PublishPayloadType as PublishPayloadType, ReceiveMessage as ReceiveMessage, ReceivePayloadType as ReceivePayloadType
|
6
6
|
from .util import async_create_certificate_temp_files as async_create_certificate_temp_files, async_wait_for_mqtt_client as async_wait_for_mqtt_client, get_mqtt_data as get_mqtt_data, mqtt_config_entry_enabled as mqtt_config_entry_enabled, valid_publish_topic as valid_publish_topic, valid_qos_schema as valid_qos_schema, valid_subscribe_topic as valid_subscribe_topic
|
@@ -11,14 +11,14 @@ from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
|
11
11
|
from homeassistant.const import CONF_CLIENT_ID as CONF_CLIENT_ID, CONF_DISCOVERY as CONF_DISCOVERY, CONF_PASSWORD as CONF_PASSWORD, CONF_PAYLOAD as CONF_PAYLOAD, CONF_PORT as CONF_PORT, CONF_PROTOCOL as CONF_PROTOCOL, CONF_USERNAME as CONF_USERNAME, SERVICE_RELOAD as SERVICE_RELOAD
|
12
12
|
from homeassistant.core import HassJob as HassJob, HomeAssistant as HomeAssistant, ServiceCall as ServiceCall, callback as callback
|
13
13
|
from homeassistant.exceptions import TemplateError as TemplateError, Unauthorized as Unauthorized
|
14
|
-
from homeassistant.helpers import
|
14
|
+
from homeassistant.helpers import template as template
|
15
15
|
from homeassistant.helpers.device_registry import DeviceEntry as DeviceEntry
|
16
16
|
from homeassistant.helpers.dispatcher import async_dispatcher_connect as async_dispatcher_connect
|
17
17
|
from homeassistant.helpers.entity_platform import async_get_platforms as async_get_platforms
|
18
18
|
from homeassistant.helpers.reload import async_integration_yaml_config as async_integration_yaml_config
|
19
19
|
from homeassistant.helpers.service import async_register_admin_service as async_register_admin_service
|
20
20
|
from homeassistant.helpers.typing import ConfigType as ConfigType
|
21
|
-
from typing import Any
|
21
|
+
from typing import Any, TypeVar
|
22
22
|
|
23
23
|
_LOGGER: Incomplete
|
24
24
|
SERVICE_PUBLISH: str
|
@@ -30,6 +30,8 @@ CONNECTION_SUCCESS: str
|
|
30
30
|
CONNECTION_FAILED: str
|
31
31
|
CONNECTION_FAILED_RECOVERABLE: str
|
32
32
|
CONFIG_ENTRY_CONFIG_KEYS: Incomplete
|
33
|
+
_T = TypeVar('_T')
|
34
|
+
REMOVED_OPTIONS: Incomplete
|
33
35
|
CONFIG_SCHEMA: Incomplete
|
34
36
|
MQTT_PUBLISH_SCHEMA: Incomplete
|
35
37
|
|
@@ -45,6 +45,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry, asyn
|
|
45
45
|
async def _async_setup_entity(hass: HomeAssistant, async_add_entities: AddEntitiesCallback, config: ConfigType, config_entry: ConfigEntry, discovery_data: DiscoveryInfoType | None = ...) -> None: ...
|
46
46
|
|
47
47
|
class MqttAlarm(MqttEntity, alarm.AlarmControlPanelEntity):
|
48
|
+
_default_name = DEFAULT_NAME
|
48
49
|
_entity_id_format: Incomplete
|
49
50
|
_attributes_extra_blocked = MQTT_ALARM_ATTRIBUTES_BLOCKED
|
50
51
|
_state: Incomplete
|
@@ -32,6 +32,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry, asyn
|
|
32
32
|
async def _async_setup_entity(hass: HomeAssistant, async_add_entities: AddEntitiesCallback, config: ConfigType, config_entry: ConfigEntry, discovery_data: DiscoveryInfoType | None = ...) -> None: ...
|
33
33
|
|
34
34
|
class MqttBinarySensor(MqttEntity, BinarySensorEntity, RestoreEntity):
|
35
|
+
_default_name = DEFAULT_NAME
|
35
36
|
_entity_id_format: Incomplete
|
36
37
|
_expired: bool | None
|
37
38
|
_expire_after: int | None
|
@@ -23,6 +23,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry, asyn
|
|
23
23
|
async def _async_setup_entity(hass: HomeAssistant, async_add_entities: AddEntitiesCallback, config: ConfigType, config_entry: ConfigEntry, discovery_data: DiscoveryInfoType | None = ...) -> None: ...
|
24
24
|
|
25
25
|
class MqttButton(MqttEntity, ButtonEntity):
|
26
|
+
_default_name = DEFAULT_NAME
|
26
27
|
_entity_id_format: Incomplete
|
27
28
|
def __init__(self, hass: HomeAssistant, config: ConfigType, config_entry: ConfigEntry, discovery_data: DiscoveryInfoType | None) -> None: ...
|
28
29
|
@staticmethod
|
@@ -27,6 +27,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry, asyn
|
|
27
27
|
async def _async_setup_entity(hass: HomeAssistant, async_add_entities: AddEntitiesCallback, config: ConfigType, config_entry: ConfigEntry, discovery_data: DiscoveryInfoType | None = ...) -> None: ...
|
28
28
|
|
29
29
|
class MqttCamera(MqttEntity, Camera):
|
30
|
+
_default_name = DEFAULT_NAME
|
30
31
|
_entity_id_format: str
|
31
32
|
_attributes_extra_blocked: frozenset[str]
|
32
33
|
_last_image: Incomplete
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import asyncio
|
2
2
|
import paho.mqtt.client as mqtt
|
3
|
-
from .const import CONF_BIRTH_MESSAGE as CONF_BIRTH_MESSAGE, CONF_BROKER as CONF_BROKER, CONF_CERTIFICATE as CONF_CERTIFICATE, CONF_CLIENT_CERT as CONF_CLIENT_CERT, CONF_CLIENT_KEY as CONF_CLIENT_KEY, CONF_KEEPALIVE as CONF_KEEPALIVE, CONF_TLS_INSECURE as CONF_TLS_INSECURE, CONF_TRANSPORT as CONF_TRANSPORT, CONF_WILL_MESSAGE as CONF_WILL_MESSAGE, CONF_WS_HEADERS as CONF_WS_HEADERS, CONF_WS_PATH as CONF_WS_PATH, DEFAULT_BIRTH as DEFAULT_BIRTH, DEFAULT_ENCODING as DEFAULT_ENCODING, DEFAULT_KEEPALIVE as DEFAULT_KEEPALIVE, DEFAULT_PORT as DEFAULT_PORT, DEFAULT_PROTOCOL as DEFAULT_PROTOCOL, DEFAULT_QOS as DEFAULT_QOS, DEFAULT_TRANSPORT as DEFAULT_TRANSPORT, DEFAULT_WILL as DEFAULT_WILL, DEFAULT_WS_HEADERS as DEFAULT_WS_HEADERS, DEFAULT_WS_PATH as DEFAULT_WS_PATH, MQTT_CONNECTED as MQTT_CONNECTED, MQTT_DISCONNECTED as MQTT_DISCONNECTED, PROTOCOL_31 as PROTOCOL_31, PROTOCOL_5 as PROTOCOL_5, TRANSPORT_WEBSOCKETS as TRANSPORT_WEBSOCKETS
|
3
|
+
from .const import CONF_BIRTH_MESSAGE as CONF_BIRTH_MESSAGE, CONF_BROKER as CONF_BROKER, CONF_CERTIFICATE as CONF_CERTIFICATE, CONF_CLIENT_CERT as CONF_CLIENT_CERT, CONF_CLIENT_KEY as CONF_CLIENT_KEY, CONF_KEEPALIVE as CONF_KEEPALIVE, CONF_TLS_INSECURE as CONF_TLS_INSECURE, CONF_TRANSPORT as CONF_TRANSPORT, CONF_WILL_MESSAGE as CONF_WILL_MESSAGE, CONF_WS_HEADERS as CONF_WS_HEADERS, CONF_WS_PATH as CONF_WS_PATH, DEFAULT_BIRTH as DEFAULT_BIRTH, DEFAULT_ENCODING as DEFAULT_ENCODING, DEFAULT_KEEPALIVE as DEFAULT_KEEPALIVE, DEFAULT_PORT as DEFAULT_PORT, DEFAULT_PROTOCOL as DEFAULT_PROTOCOL, DEFAULT_QOS as DEFAULT_QOS, DEFAULT_TRANSPORT as DEFAULT_TRANSPORT, DEFAULT_WILL as DEFAULT_WILL, DEFAULT_WS_HEADERS as DEFAULT_WS_HEADERS, DEFAULT_WS_PATH as DEFAULT_WS_PATH, DOMAIN as DOMAIN, MQTT_CONNECTED as MQTT_CONNECTED, MQTT_DISCONNECTED as MQTT_DISCONNECTED, PROTOCOL_31 as PROTOCOL_31, PROTOCOL_5 as PROTOCOL_5, TRANSPORT_WEBSOCKETS as TRANSPORT_WEBSOCKETS
|
4
4
|
from .models import AsyncMessageCallbackType as AsyncMessageCallbackType, MessageCallbackType as MessageCallbackType, MqttData as MqttData, PublishMessage as PublishMessage, PublishPayloadType as PublishPayloadType, ReceiveMessage as ReceiveMessage
|
5
5
|
from .util import get_file_path as get_file_path, get_mqtt_data as get_mqtt_data, mqtt_config_entry_enabled as mqtt_config_entry_enabled
|
6
6
|
from _typeshed import Incomplete
|
@@ -10,6 +10,7 @@ from homeassistant.const import CONF_CLIENT_ID as CONF_CLIENT_ID, CONF_PASSWORD
|
|
10
10
|
from homeassistant.core import CALLBACK_TYPE as CALLBACK_TYPE, CoreState as CoreState, Event as Event, HassJob as HassJob, HomeAssistant as HomeAssistant, callback as callback
|
11
11
|
from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
|
12
12
|
from homeassistant.helpers.dispatcher import dispatcher_send as dispatcher_send
|
13
|
+
from homeassistant.helpers.issue_registry import IssueSeverity as IssueSeverity, async_create_issue as async_create_issue
|
13
14
|
from homeassistant.helpers.typing import ConfigType as ConfigType
|
14
15
|
from homeassistant.loader import bind_hass as bind_hass
|
15
16
|
from homeassistant.util.async_ import run_callback_threadsafe as run_callback_threadsafe
|
@@ -22,6 +23,7 @@ INITIAL_SUBSCRIBE_COOLDOWN: float
|
|
22
23
|
SUBSCRIBE_COOLDOWN: float
|
23
24
|
UNSUBSCRIBE_COOLDOWN: float
|
24
25
|
TIMEOUT_ACK: int
|
26
|
+
MQTT_ENTRIES_NAMING_BLOG_URL: str
|
25
27
|
SubscribePayloadType: Incomplete
|
26
28
|
|
27
29
|
def publish(hass: HomeAssistant, topic: str, payload: PublishPayloadType, qos: int | None = ..., retain: bool | None = ..., encoding: str | None = ...) -> None: ...
|
@@ -86,6 +88,7 @@ class MQTT:
|
|
86
88
|
_unsubscribe_debouncer: Incomplete
|
87
89
|
_pending_unsubscribes: Incomplete
|
88
90
|
def __init__(self, hass: HomeAssistant, config_entry: ConfigEntry, conf: ConfigType) -> None: ...
|
91
|
+
def register_naming_issues(self) -> None: ...
|
89
92
|
def start(self, mqtt_data: MqttData) -> None: ...
|
90
93
|
@property
|
91
94
|
def subscriptions(self) -> list[Subscription]: ...
|
@@ -2,7 +2,7 @@ import abc
|
|
2
2
|
import voluptuous as vol
|
3
3
|
from . import subscription as subscription
|
4
4
|
from .config import DEFAULT_RETAIN as DEFAULT_RETAIN, MQTT_BASE_SCHEMA as MQTT_BASE_SCHEMA
|
5
|
-
from .const import CONF_ACTION_TEMPLATE as CONF_ACTION_TEMPLATE, CONF_ACTION_TOPIC as CONF_ACTION_TOPIC, CONF_CURRENT_HUMIDITY_TEMPLATE as CONF_CURRENT_HUMIDITY_TEMPLATE, CONF_CURRENT_HUMIDITY_TOPIC as CONF_CURRENT_HUMIDITY_TOPIC, CONF_CURRENT_TEMP_TEMPLATE as CONF_CURRENT_TEMP_TEMPLATE, CONF_CURRENT_TEMP_TOPIC as CONF_CURRENT_TEMP_TOPIC, CONF_ENCODING as CONF_ENCODING, CONF_MODE_COMMAND_TEMPLATE as CONF_MODE_COMMAND_TEMPLATE, CONF_MODE_COMMAND_TOPIC as CONF_MODE_COMMAND_TOPIC, CONF_MODE_LIST as CONF_MODE_LIST, CONF_MODE_STATE_TEMPLATE as CONF_MODE_STATE_TEMPLATE, CONF_MODE_STATE_TOPIC as CONF_MODE_STATE_TOPIC, CONF_PRECISION as CONF_PRECISION, CONF_QOS as CONF_QOS, CONF_RETAIN as CONF_RETAIN, CONF_TEMP_COMMAND_TEMPLATE as CONF_TEMP_COMMAND_TEMPLATE, CONF_TEMP_COMMAND_TOPIC as CONF_TEMP_COMMAND_TOPIC, CONF_TEMP_INITIAL as CONF_TEMP_INITIAL, CONF_TEMP_MAX as CONF_TEMP_MAX, CONF_TEMP_MIN as CONF_TEMP_MIN, CONF_TEMP_STATE_TEMPLATE as CONF_TEMP_STATE_TEMPLATE, CONF_TEMP_STATE_TOPIC as CONF_TEMP_STATE_TOPIC, DEFAULT_OPTIMISTIC as DEFAULT_OPTIMISTIC, PAYLOAD_NONE as PAYLOAD_NONE
|
5
|
+
from .const import CONF_ACTION_TEMPLATE as CONF_ACTION_TEMPLATE, CONF_ACTION_TOPIC as CONF_ACTION_TOPIC, CONF_CURRENT_HUMIDITY_TEMPLATE as CONF_CURRENT_HUMIDITY_TEMPLATE, CONF_CURRENT_HUMIDITY_TOPIC as CONF_CURRENT_HUMIDITY_TOPIC, CONF_CURRENT_TEMP_TEMPLATE as CONF_CURRENT_TEMP_TEMPLATE, CONF_CURRENT_TEMP_TOPIC as CONF_CURRENT_TEMP_TOPIC, CONF_ENCODING as CONF_ENCODING, CONF_MODE_COMMAND_TEMPLATE as CONF_MODE_COMMAND_TEMPLATE, CONF_MODE_COMMAND_TOPIC as CONF_MODE_COMMAND_TOPIC, CONF_MODE_LIST as CONF_MODE_LIST, CONF_MODE_STATE_TEMPLATE as CONF_MODE_STATE_TEMPLATE, CONF_MODE_STATE_TOPIC as CONF_MODE_STATE_TOPIC, CONF_POWER_COMMAND_TEMPLATE as CONF_POWER_COMMAND_TEMPLATE, CONF_POWER_COMMAND_TOPIC as CONF_POWER_COMMAND_TOPIC, CONF_PRECISION as CONF_PRECISION, CONF_QOS as CONF_QOS, CONF_RETAIN as CONF_RETAIN, CONF_TEMP_COMMAND_TEMPLATE as CONF_TEMP_COMMAND_TEMPLATE, CONF_TEMP_COMMAND_TOPIC as CONF_TEMP_COMMAND_TOPIC, CONF_TEMP_INITIAL as CONF_TEMP_INITIAL, CONF_TEMP_MAX as CONF_TEMP_MAX, CONF_TEMP_MIN as CONF_TEMP_MIN, CONF_TEMP_STATE_TEMPLATE as CONF_TEMP_STATE_TEMPLATE, CONF_TEMP_STATE_TOPIC as CONF_TEMP_STATE_TOPIC, DEFAULT_OPTIMISTIC as DEFAULT_OPTIMISTIC, PAYLOAD_NONE as PAYLOAD_NONE
|
6
6
|
from .debug_info import log_messages as log_messages
|
7
7
|
from .mixins import MQTT_ENTITY_COMMON_SCHEMA as MQTT_ENTITY_COMMON_SCHEMA, MqttEntity as MqttEntity, async_setup_entry_helper as async_setup_entry_helper
|
8
8
|
from .models import MqttCommandTemplate as MqttCommandTemplate, MqttValueTemplate as MqttValueTemplate, PublishPayloadType as PublishPayloadType, ReceiveMessage as ReceiveMessage, ReceivePayloadType as ReceivePayloadType
|
@@ -39,8 +39,6 @@ CONF_HUMIDITY_MAX: str
|
|
39
39
|
CONF_HUMIDITY_MIN: str
|
40
40
|
CONF_POWER_STATE_TEMPLATE: str
|
41
41
|
CONF_POWER_STATE_TOPIC: str
|
42
|
-
CONF_POWER_COMMAND_TOPIC: str
|
43
|
-
CONF_POWER_COMMAND_TEMPLATE: str
|
44
42
|
CONF_PRESET_MODE_STATE_TOPIC: str
|
45
43
|
CONF_PRESET_MODE_COMMAND_TOPIC: str
|
46
44
|
CONF_PRESET_MODE_VALUE_TEMPLATE: str
|
@@ -99,6 +97,7 @@ class MqttTemperatureControlEntity(MqttEntity, ABC, metaclass=abc.ABCMeta):
|
|
99
97
|
async def async_set_temperature(self, **kwargs: Any) -> None: ...
|
100
98
|
|
101
99
|
class MqttClimate(MqttTemperatureControlEntity, ClimateEntity):
|
100
|
+
_default_name = DEFAULT_NAME
|
102
101
|
_entity_id_format: Incomplete
|
103
102
|
_attributes_extra_blocked = MQTT_CLIMATE_ATTRIBUTES_BLOCKED
|
104
103
|
_attr_fan_mode: Incomplete
|
@@ -3,7 +3,7 @@ from _typeshed import Incomplete
|
|
3
3
|
from homeassistant.const import CONF_CLIENT_ID as CONF_CLIENT_ID, CONF_DISCOVERY as CONF_DISCOVERY, CONF_PASSWORD as CONF_PASSWORD, CONF_PORT as CONF_PORT, CONF_PROTOCOL as CONF_PROTOCOL, CONF_USERNAME as CONF_USERNAME, Platform as Platform
|
4
4
|
|
5
5
|
DEFAULT_TLS_PROTOCOL: str
|
6
|
-
|
6
|
+
CONFIG_SCHEMA_BASE: Incomplete
|
7
7
|
CLIENT_KEY_AUTH_MSG: str
|
8
8
|
DEPRECATED_CONFIG_KEYS: Incomplete
|
9
9
|
DEPRECATED_CERTIFICATE_CONFIG_KEYS: Incomplete
|
@@ -38,6 +38,8 @@ CONF_MODE_COMMAND_TOPIC: str
|
|
38
38
|
CONF_MODE_LIST: str
|
39
39
|
CONF_MODE_STATE_TEMPLATE: str
|
40
40
|
CONF_MODE_STATE_TOPIC: str
|
41
|
+
CONF_POWER_COMMAND_TOPIC: str
|
42
|
+
CONF_POWER_COMMAND_TEMPLATE: str
|
41
43
|
CONF_PRECISION: str
|
42
44
|
CONF_TEMP_COMMAND_TEMPLATE: str
|
43
45
|
CONF_TEMP_COMMAND_TOPIC: str
|
@@ -70,6 +70,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry, asyn
|
|
70
70
|
async def _async_setup_entity(hass: HomeAssistant, async_add_entities: AddEntitiesCallback, config: ConfigType, config_entry: ConfigEntry, discovery_data: DiscoveryInfoType | None = ...) -> None: ...
|
71
71
|
|
72
72
|
class MqttCover(MqttEntity, CoverEntity):
|
73
|
+
_default_name = DEFAULT_NAME
|
73
74
|
_entity_id_format: str
|
74
75
|
_attributes_extra_blocked: frozenset[str]
|
75
76
|
_position: Incomplete
|
@@ -32,6 +32,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry, asyn
|
|
32
32
|
async def _async_setup_entity(hass: HomeAssistant, async_add_entities: AddEntitiesCallback, config: ConfigType, config_entry: ConfigEntry, discovery_data: DiscoveryInfoType | None = ...) -> None: ...
|
33
33
|
|
34
34
|
class MqttDeviceTracker(MqttEntity, TrackerEntity):
|
35
|
+
_default_name: Incomplete
|
35
36
|
_entity_id_format: Incomplete
|
36
37
|
_value_template: Callable[..., ReceivePayloadType]
|
37
38
|
_location_name: Incomplete
|