homeassistant-stubs 2025.6.3__py3-none-any.whl → 2025.7.0b0__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/bootstrap.pyi +1 -1
- homeassistant-stubs/components/abode/__init__.pyi +3 -12
- homeassistant-stubs/components/abode/services.pyi +20 -0
- homeassistant-stubs/components/adax/sensor.pyi +29 -0
- homeassistant-stubs/components/airly/config_flow.pyi +1 -1
- homeassistant-stubs/components/airthings/__init__.pyi +3 -5
- homeassistant-stubs/components/airthings/coordinator.pyi +13 -0
- homeassistant-stubs/components/airthings/sensor.pyi +5 -4
- homeassistant-stubs/components/alexa_devices/binary_sensor.pyi +2 -1
- homeassistant-stubs/components/alexa_devices/sensor.pyi +29 -0
- homeassistant-stubs/components/altruist/__init__.pyi +9 -0
- homeassistant-stubs/components/altruist/config_flow.pyi +15 -0
- homeassistant-stubs/components/altruist/const.pyi +2 -0
- homeassistant-stubs/components/altruist/coordinator.pyi +19 -0
- homeassistant-stubs/components/altruist/sensor.pyi +34 -0
- homeassistant-stubs/components/amcrest/__init__.pyi +4 -7
- homeassistant-stubs/components/amcrest/services.pyi +13 -0
- homeassistant-stubs/components/analytics/analytics.pyi +3 -1
- homeassistant-stubs/components/android_ip_webcam/camera.pyi +4 -0
- homeassistant-stubs/components/apcupsd/sensor.pyi +1 -1
- homeassistant-stubs/components/assist_satellite/__init__.pyi +2 -2
- homeassistant-stubs/components/assist_satellite/entity.pyi +13 -1
- homeassistant-stubs/components/axis/hub/hub.pyi +1 -1
- homeassistant-stubs/components/camera/__init__.pyi +0 -2
- homeassistant-stubs/components/camera/webrtc.pyi +1 -0
- homeassistant-stubs/components/climate/__init__.pyi +0 -2
- homeassistant-stubs/components/command_line/notify.pyi +1 -2
- homeassistant-stubs/components/command_line/sensor.pyi +1 -2
- homeassistant-stubs/components/command_line/utils.pyi +5 -2
- homeassistant-stubs/components/deconz/logbook.pyi +1 -1
- homeassistant-stubs/components/derivative/config_flow.pyi +1 -1
- homeassistant-stubs/components/derivative/const.pyi +1 -0
- homeassistant-stubs/components/derivative/sensor.pyi +9 -4
- homeassistant-stubs/components/device_automation/condition.pyi +17 -4
- homeassistant-stubs/components/devolo_home_control/__init__.pyi +3 -2
- homeassistant-stubs/components/devolo_home_control/climate.pyi +1 -1
- homeassistant-stubs/components/devolo_home_control/const.pyi +0 -1
- homeassistant-stubs/components/devolo_home_control/cover.pyi +1 -1
- homeassistant-stubs/components/devolo_home_control/entity.pyi +6 -0
- homeassistant-stubs/components/devolo_home_control/light.pyi +1 -1
- homeassistant-stubs/components/devolo_home_control/siren.pyi +1 -1
- homeassistant-stubs/components/devolo_home_network/device_tracker.pyi +2 -0
- homeassistant-stubs/components/dnsip/sensor.pyi +3 -2
- homeassistant-stubs/components/downloader/__init__.pyi +1 -1
- homeassistant-stubs/components/downloader/services.pyi +3 -2
- homeassistant-stubs/components/ecovacs/binary_sensor.pyi +4 -4
- homeassistant-stubs/components/ecovacs/entity.pyi +9 -12
- homeassistant-stubs/components/ecovacs/number.pyi +4 -4
- homeassistant-stubs/components/ecovacs/select.pyi +5 -4
- homeassistant-stubs/components/ecovacs/sensor.pyi +3 -3
- homeassistant-stubs/components/eheimdigital/number.pyi +8 -9
- homeassistant-stubs/components/eheimdigital/select.pyi +8 -9
- homeassistant-stubs/components/eheimdigital/sensor.pyi +7 -8
- homeassistant-stubs/components/eheimdigital/time.pyi +8 -9
- homeassistant-stubs/components/elkm1/__init__.pyi +4 -9
- homeassistant-stubs/components/elkm1/services.pyi +21 -0
- homeassistant-stubs/components/enphase_envoy/__init__.pyi +2 -2
- homeassistant-stubs/components/enphase_envoy/config_flow.pyi +1 -1
- homeassistant-stubs/components/enphase_envoy/diagnostics.pyi +1 -0
- homeassistant-stubs/components/enphase_envoy/sensor.pyi +1 -1
- homeassistant-stubs/components/eq3btsmart/climate.pyi +6 -8
- homeassistant-stubs/components/eq3btsmart/const.pyi +3 -2
- homeassistant-stubs/components/eq3btsmart/entity.pyi +5 -1
- homeassistant-stubs/components/eq3btsmart/number.pyi +3 -3
- homeassistant-stubs/components/eq3btsmart/switch.pyi +5 -3
- homeassistant-stubs/components/esphome/entity.pyi +2 -1
- homeassistant-stubs/components/esphome/entry_data.pyi +3 -0
- homeassistant-stubs/components/evohome/water_heater.pyi +1 -1
- homeassistant-stubs/components/fritz/binary_sensor.pyi +2 -1
- homeassistant-stubs/components/fritz/button.pyi +3 -1
- homeassistant-stubs/components/fritz/coordinator.pyi +8 -82
- homeassistant-stubs/components/fritz/device_tracker.pyi +3 -1
- homeassistant-stubs/components/fritz/entity.pyi +2 -1
- homeassistant-stubs/components/fritz/helpers.pyi +9 -0
- homeassistant-stubs/components/fritz/models.pyi +78 -0
- homeassistant-stubs/components/fritz/sensor.pyi +2 -1
- homeassistant-stubs/components/fritz/services.pyi +3 -2
- homeassistant-stubs/components/fritz/switch.pyi +3 -1
- homeassistant-stubs/components/fully_kiosk/services.pyi +7 -2
- homeassistant-stubs/components/go2rtc/__init__.pyi +10 -4
- homeassistant-stubs/components/google/__init__.pyi +3 -9
- homeassistant-stubs/components/google_assistant_sdk/__init__.pyi +3 -7
- homeassistant-stubs/components/google_assistant_sdk/services.pyi +13 -0
- homeassistant-stubs/components/google_photos/services.pyi +4 -2
- homeassistant-stubs/components/google_sheets/__init__.pyi +7 -10
- homeassistant-stubs/components/google_sheets/services.pyi +18 -0
- homeassistant-stubs/components/group/sensor.pyi +1 -1
- homeassistant-stubs/components/habitica/services.pyi +8 -1
- homeassistant-stubs/components/here_travel_time/model.pyi +2 -1
- homeassistant-stubs/components/home_connect/diagnostics.pyi +2 -0
- homeassistant-stubs/components/homeassistant/__init__.pyi +2 -3
- homeassistant-stubs/components/homeassistant_hardware/firmware_config_flow.pyi +7 -7
- homeassistant-stubs/components/homeassistant_hardware/update.pyi +2 -6
- homeassistant-stubs/components/homeassistant_hardware/util.pyi +3 -1
- homeassistant-stubs/components/homeassistant_sky_connect/config_flow.pyi +9 -5
- homeassistant-stubs/components/homeassistant_yellow/config_flow.pyi +12 -5
- homeassistant-stubs/components/homee/config_flow.pyi +1 -0
- homeassistant-stubs/components/homee/diagnostics.pyi +12 -0
- homeassistant-stubs/components/homee/entity.pyi +3 -2
- homeassistant-stubs/components/homee/event.pyi +8 -4
- homeassistant-stubs/components/homee/siren.pyi +19 -0
- homeassistant-stubs/components/homewizard/select.pyi +35 -0
- homeassistant-stubs/components/immich/coordinator.pyi +2 -1
- homeassistant-stubs/components/immich/update.pyi +21 -0
- homeassistant-stubs/components/isy994/__init__.pyi +3 -1
- homeassistant-stubs/components/isy994/services.pyi +0 -2
- homeassistant-stubs/components/jewish_calendar/__init__.pyi +1 -1
- homeassistant-stubs/components/jewish_calendar/{service.pyi → services.pyi} +2 -1
- homeassistant-stubs/components/kaleidescape/__init__.pyi +4 -4
- homeassistant-stubs/components/kaleidescape/media_player.pyi +2 -3
- homeassistant-stubs/components/kaleidescape/remote.pyi +2 -3
- homeassistant-stubs/components/kaleidescape/sensor.pyi +2 -3
- homeassistant-stubs/components/lacrosse_view/__init__.pyi +3 -5
- homeassistant-stubs/components/lacrosse_view/coordinator.pyi +3 -2
- homeassistant-stubs/components/lacrosse_view/diagnostics.pyi +2 -4
- homeassistant-stubs/components/lacrosse_view/sensor.pyi +2 -2
- homeassistant-stubs/components/lametric/__init__.pyi +3 -4
- homeassistant-stubs/components/lametric/button.pyi +2 -4
- homeassistant-stubs/components/lametric/coordinator.pyi +3 -2
- homeassistant-stubs/components/lametric/diagnostics.pyi +2 -4
- homeassistant-stubs/components/lametric/entity.pyi +1 -1
- homeassistant-stubs/components/lametric/helpers.pyi +1 -1
- homeassistant-stubs/components/lametric/notify.pyi +2 -2
- homeassistant-stubs/components/lametric/number.pyi +2 -4
- homeassistant-stubs/components/lametric/select.pyi +2 -4
- homeassistant-stubs/components/lametric/sensor.pyi +2 -4
- homeassistant-stubs/components/lametric/switch.pyi +2 -4
- homeassistant-stubs/components/lametric/update.pyi +17 -0
- homeassistant-stubs/components/laundrify/__init__.pyi +4 -6
- homeassistant-stubs/components/laundrify/binary_sensor.pyi +2 -3
- homeassistant-stubs/components/laundrify/coordinator.pyi +1 -0
- homeassistant-stubs/components/laundrify/sensor.pyi +2 -3
- homeassistant-stubs/components/lcn/__init__.pyi +9 -10
- homeassistant-stubs/components/lcn/binary_sensor.pyi +9 -8
- homeassistant-stubs/components/lcn/climate.pyi +5 -6
- homeassistant-stubs/components/lcn/const.pyi +0 -4
- homeassistant-stubs/components/lcn/cover.pyi +6 -7
- homeassistant-stubs/components/lcn/entity.pyi +2 -3
- homeassistant-stubs/components/lcn/helpers.pyi +15 -5
- homeassistant-stubs/components/lcn/light.pyi +6 -7
- homeassistant-stubs/components/lcn/scene.pyi +5 -5
- homeassistant-stubs/components/lcn/sensor.pyi +7 -7
- homeassistant-stubs/components/lcn/services.pyi +5 -4
- homeassistant-stubs/components/lcn/switch.pyi +8 -9
- homeassistant-stubs/components/lcn/websocket.pyi +12 -13
- homeassistant-stubs/components/ld2410_ble/__init__.pyi +4 -6
- homeassistant-stubs/components/ld2410_ble/binary_sensor.pyi +2 -4
- homeassistant-stubs/components/ld2410_ble/coordinator.pyi +3 -3
- homeassistant-stubs/components/ld2410_ble/models.pyi +2 -0
- homeassistant-stubs/components/ld2410_ble/sensor.pyi +4 -5
- homeassistant-stubs/components/led_ble/__init__.pyi +5 -6
- homeassistant-stubs/components/led_ble/light.pyi +3 -4
- homeassistant-stubs/components/led_ble/models.pyi +2 -0
- homeassistant-stubs/components/lifx/__init__.pyi +4 -5
- homeassistant-stubs/components/lifx/binary_sensor.pyi +3 -4
- homeassistant-stubs/components/lifx/button.pyi +3 -4
- homeassistant-stubs/components/lifx/const.pyi +3 -1
- homeassistant-stubs/components/lifx/coordinator.pyi +3 -2
- homeassistant-stubs/components/lifx/diagnostics.pyi +3 -4
- homeassistant-stubs/components/lifx/light.pyi +3 -4
- homeassistant-stubs/components/lifx/manager.pyi +2 -2
- homeassistant-stubs/components/lifx/migration.pyi +3 -3
- homeassistant-stubs/components/lifx/select.pyi +3 -4
- homeassistant-stubs/components/lifx/sensor.pyi +3 -4
- homeassistant-stubs/components/lifx/util.pyi +3 -3
- homeassistant-stubs/components/linear_garage_door/__init__.pyi +4 -5
- homeassistant-stubs/components/linear_garage_door/coordinator.pyi +3 -2
- homeassistant-stubs/components/linear_garage_door/cover.pyi +2 -4
- homeassistant-stubs/components/linear_garage_door/diagnostics.pyi +2 -4
- homeassistant-stubs/components/linear_garage_door/light.pyi +2 -4
- homeassistant-stubs/components/lookin/__init__.pyi +4 -5
- homeassistant-stubs/components/lookin/climate.pyi +3 -4
- homeassistant-stubs/components/lookin/coordinator.pyi +3 -3
- homeassistant-stubs/components/lookin/light.pyi +3 -4
- homeassistant-stubs/components/lookin/media_player.pyi +3 -4
- homeassistant-stubs/components/lookin/models.pyi +2 -0
- homeassistant-stubs/components/lookin/sensor.pyi +2 -4
- homeassistant-stubs/components/luftdaten/__init__.pyi +4 -6
- homeassistant-stubs/components/luftdaten/coordinator.pyi +15 -0
- homeassistant-stubs/components/luftdaten/diagnostics.pyi +3 -4
- homeassistant-stubs/components/luftdaten/sensor.pyi +4 -4
- homeassistant-stubs/components/matrix/__init__.pyi +2 -7
- homeassistant-stubs/components/matrix/const.pyi +3 -0
- homeassistant-stubs/components/matrix/services.pyi +12 -0
- homeassistant-stubs/components/matter/sensor.pyi +7 -2
- homeassistant-stubs/components/matter/vacuum.pyi +4 -4
- homeassistant-stubs/components/mealie/__init__.pyi +1 -1
- homeassistant-stubs/components/mealie/services.pyi +9 -3
- homeassistant-stubs/components/media_player/__init__.pyi +0 -2
- homeassistant-stubs/components/media_player/intent.pyi +1 -1
- homeassistant-stubs/components/miele/const.pyi +24 -0
- homeassistant-stubs/components/miele/sensor.pyi +1 -2
- homeassistant-stubs/components/mqtt/config_flow.pyi +4 -1
- homeassistant-stubs/components/mqtt/sensor.pyi +1 -4
- homeassistant-stubs/components/music_assistant/__init__.pyi +5 -1
- homeassistant-stubs/components/music_assistant/button.pyi +17 -0
- homeassistant-stubs/components/music_assistant/helpers.pyi +5 -0
- homeassistant-stubs/components/music_assistant/media_player.pyi +4 -4
- homeassistant-stubs/components/nextdns/binary_sensor.pyi +6 -12
- homeassistant-stubs/components/nextdns/button.pyi +2 -9
- homeassistant-stubs/components/nextdns/coordinator.pyi +2 -7
- homeassistant-stubs/components/nextdns/entity.pyi +14 -0
- homeassistant-stubs/components/nextdns/sensor.pyi +8 -15
- homeassistant-stubs/components/nextdns/switch.pyi +3 -6
- homeassistant-stubs/components/nfandroidtv/__init__.pyi +0 -1
- homeassistant-stubs/components/nfandroidtv/notify.pyi +5 -4
- homeassistant-stubs/components/nordpool/services.pyi +2 -1
- homeassistant-stubs/components/ntfy/__init__.pyi +1 -3
- homeassistant-stubs/components/ntfy/config_flow.pyi +3 -0
- homeassistant-stubs/components/ntfy/coordinator.pyi +16 -0
- homeassistant-stubs/components/ntfy/notify.pyi +1 -1
- homeassistant-stubs/components/ntfy/sensor.pyi +56 -0
- homeassistant-stubs/components/ohme/services.pyi +2 -1
- homeassistant-stubs/components/onedrive/__init__.pyi +1 -1
- homeassistant-stubs/components/onedrive/services.pyi +3 -2
- homeassistant-stubs/components/onewire/binary_sensor.pyi +3 -2
- homeassistant-stubs/components/onewire/const.pyi +0 -1
- homeassistant-stubs/components/onewire/entity.pyi +2 -3
- homeassistant-stubs/components/onewire/switch.pyi +3 -2
- homeassistant-stubs/components/onkyo/__init__.pyi +1 -1
- homeassistant-stubs/components/onkyo/services.pyi +3 -2
- homeassistant-stubs/components/openai_conversation/__init__.pyi +2 -1
- homeassistant-stubs/components/openai_conversation/config_flow.pyi +18 -14
- homeassistant-stubs/components/openai_conversation/const.pyi +1 -0
- homeassistant-stubs/components/openai_conversation/conversation.pyi +4 -4
- homeassistant-stubs/components/overseerr/__init__.pyi +1 -1
- homeassistant-stubs/components/overseerr/services.pyi +6 -4
- homeassistant-stubs/components/paperless_ngx/__init__.pyi +1 -1
- homeassistant-stubs/components/paperless_ngx/config_flow.pyi +2 -2
- homeassistant-stubs/components/paperless_ngx/coordinator.pyi +3 -5
- homeassistant-stubs/components/paperless_ngx/entity.pyi +2 -5
- homeassistant-stubs/components/paperless_ngx/sensor.pyi +8 -8
- homeassistant-stubs/components/paperless_ngx/update.pyi +25 -0
- homeassistant-stubs/components/plugwise/climate.pyi +0 -1
- homeassistant-stubs/components/qbus/climate.pyi +3 -2
- homeassistant-stubs/components/qbus/cover.pyi +39 -0
- homeassistant-stubs/components/qbus/entity.pyi +7 -3
- homeassistant-stubs/components/qbus/light.pyi +4 -3
- homeassistant-stubs/components/qbus/scene.pyi +2 -2
- homeassistant-stubs/components/qbus/switch.pyi +3 -2
- homeassistant-stubs/components/recorder/__init__.pyi +1 -1
- homeassistant-stubs/components/recorder/services.pyi +7 -12
- homeassistant-stubs/components/reolink/__init__.pyi +1 -1
- homeassistant-stubs/components/reolink/config_flow.pyi +1 -1
- homeassistant-stubs/components/reolink/const.pyi +1 -0
- homeassistant-stubs/components/reolink/entity.pyi +1 -1
- homeassistant-stubs/components/reolink/host.pyi +1 -1
- homeassistant-stubs/components/reolink/services.pyi +2 -0
- homeassistant-stubs/components/rest/data.pyi +7 -6
- homeassistant-stubs/components/russound_rio/__init__.pyi +1 -0
- homeassistant-stubs/components/russound_rio/entity.pyi +6 -2
- homeassistant-stubs/components/russound_rio/media_player.pyi +1 -5
- homeassistant-stubs/components/russound_rio/number.pyi +30 -0
- homeassistant-stubs/components/russound_rio/switch.pyi +33 -0
- homeassistant-stubs/components/shopping_list/__init__.pyi +1 -0
- homeassistant-stubs/components/shopping_list/intent.pyi +9 -1
- homeassistant-stubs/components/squeezebox/button.pyi +0 -2
- homeassistant-stubs/components/squeezebox/entity.pyi +2 -0
- homeassistant-stubs/components/squeezebox/media_player.pyi +0 -2
- homeassistant-stubs/components/sun/__init__.pyi +1 -0
- homeassistant-stubs/components/sun/binary_sensor.pyi +36 -0
- homeassistant-stubs/components/sun/condition.pyi +13 -3
- homeassistant-stubs/components/sun/sensor.pyi +2 -0
- homeassistant-stubs/components/switch/light.pyi +1 -0
- homeassistant-stubs/components/switch_as_x/entity.pyi +1 -0
- homeassistant-stubs/components/synology_dsm/__init__.pyi +4 -1
- homeassistant-stubs/components/synology_dsm/{service.pyi → services.pyi} +4 -2
- homeassistant-stubs/components/tedee/binary_sensor.pyi +4 -0
- homeassistant-stubs/components/telegram_bot/__init__.pyi +34 -0
- homeassistant-stubs/components/telegram_bot/bot.pyi +63 -0
- homeassistant-stubs/components/telegram_bot/broadcast.pyi +5 -0
- homeassistant-stubs/components/telegram_bot/config_flow.pyi +53 -0
- homeassistant-stubs/components/telegram_bot/const.pyi +92 -0
- homeassistant-stubs/components/telegram_bot/polling.pyi +19 -0
- homeassistant-stubs/components/telegram_bot/webhooks.pyi +47 -0
- homeassistant-stubs/components/tplink/climate.pyi +1 -2
- homeassistant-stubs/components/trend/binary_sensor.pyi +1 -1
- homeassistant-stubs/components/tts/entity.pyi +1 -2
- homeassistant-stubs/components/unifi/button.pyi +5 -5
- homeassistant-stubs/components/unifi/device_tracker.pyi +5 -5
- homeassistant-stubs/components/unifi/entity.pyi +5 -8
- homeassistant-stubs/components/unifi/hub/hub.pyi +1 -1
- homeassistant-stubs/components/unifi/image.pyi +5 -5
- homeassistant-stubs/components/unifi/sensor.pyi +5 -5
- homeassistant-stubs/components/unifi/switch.pyi +7 -7
- homeassistant-stubs/components/unifi/update.pyi +3 -5
- homeassistant-stubs/components/unifiprotect/services.pyi +1 -0
- homeassistant-stubs/components/vacuum/__init__.pyi +0 -2
- homeassistant-stubs/components/websocket_api/commands.pyi +6 -3
- homeassistant-stubs/components/websocket_api/messages.pyi +1 -0
- homeassistant-stubs/components/wiz/__init__.pyi +3 -3
- homeassistant-stubs/components/zwave_js/__init__.pyi +1 -1
- homeassistant-stubs/components/zwave_js/api.pyi +2 -2
- homeassistant-stubs/components/zwave_js/device_trigger.pyi +0 -1
- homeassistant-stubs/components/zwave_js/services.pyi +2 -0
- homeassistant-stubs/components/zwave_js/trigger.pyi +3 -7
- homeassistant-stubs/components/zwave_js/triggers/event.pyi +9 -1
- homeassistant-stubs/components/zwave_js/triggers/value_updated.pyi +9 -1
- homeassistant-stubs/const.pyi +1 -0
- homeassistant-stubs/helpers/condition.pyi +11 -3
- homeassistant-stubs/helpers/device_registry.pyi +5 -1
- homeassistant-stubs/helpers/entity.pyi +1 -4
- homeassistant-stubs/helpers/entity_registry.pyi +11 -1
- homeassistant-stubs/helpers/llm.pyi +0 -1
- homeassistant-stubs/helpers/selector.pyi +24 -4
- homeassistant-stubs/helpers/system_info.pyi +2 -0
- homeassistant-stubs/helpers/template.pyi +2 -1
- homeassistant-stubs/helpers/trigger.pyi +33 -2
- homeassistant-stubs/loader.pyi +3 -1
- homeassistant-stubs/util/timeout.pyi +6 -3
- homeassistant-stubs/util/yaml/loader.pyi +3 -1
- {homeassistant_stubs-2025.6.3.dist-info → homeassistant_stubs-2025.7.0b0.dist-info}/METADATA +2 -2
- {homeassistant_stubs-2025.6.3.dist-info → homeassistant_stubs-2025.7.0b0.dist-info}/RECORD +315 -279
- homeassistant-stubs/backports/enum.pyi +0 -7
- homeassistant-stubs/backports/functools.pyi +0 -7
- homeassistant-stubs/components/devolo_home_control/devolo_multi_level_switch.pyi +0 -10
- {homeassistant_stubs-2025.6.3.dist-info → homeassistant_stubs-2025.7.0b0.dist-info}/WHEEL +0 -0
- {homeassistant_stubs-2025.6.3.dist-info → homeassistant_stubs-2025.7.0b0.dist-info}/licenses/LICENSE +0 -0
@@ -1,10 +1,9 @@
|
|
1
|
-
from .const import
|
1
|
+
from .const import CONF_DIMMABLE as CONF_DIMMABLE, CONF_DOMAIN_DATA as CONF_DOMAIN_DATA, CONF_OUTPUT as CONF_OUTPUT, CONF_TRANSITION as CONF_TRANSITION, OUTPUT_PORTS as OUTPUT_PORTS
|
2
2
|
from .entity import LcnEntity as LcnEntity
|
3
|
-
from .helpers import InputType as InputType
|
3
|
+
from .helpers import InputType as InputType, LcnConfigEntry as LcnConfigEntry
|
4
4
|
from _typeshed import Incomplete
|
5
5
|
from collections.abc import Iterable
|
6
6
|
from homeassistant.components.light import ATTR_BRIGHTNESS as ATTR_BRIGHTNESS, ATTR_TRANSITION as ATTR_TRANSITION, ColorMode as ColorMode, LightEntity as LightEntity, LightEntityFeature as LightEntityFeature
|
7
|
-
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
8
7
|
from homeassistant.const import CONF_DOMAIN as CONF_DOMAIN, CONF_ENTITIES as CONF_ENTITIES
|
9
8
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
10
9
|
from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback as AddConfigEntryEntitiesCallback
|
@@ -13,8 +12,8 @@ from typing import Any
|
|
13
12
|
|
14
13
|
PARALLEL_UPDATES: int
|
15
14
|
|
16
|
-
def add_lcn_entities(config_entry:
|
17
|
-
async def async_setup_entry(hass: HomeAssistant, config_entry:
|
15
|
+
def add_lcn_entities(config_entry: LcnConfigEntry, async_add_entities: AddConfigEntryEntitiesCallback, entity_configs: Iterable[ConfigType]) -> None: ...
|
16
|
+
async def async_setup_entry(hass: HomeAssistant, config_entry: LcnConfigEntry, async_add_entities: AddConfigEntryEntitiesCallback) -> None: ...
|
18
17
|
|
19
18
|
class LcnOutputLight(LcnEntity, LightEntity):
|
20
19
|
_attr_supported_features: Incomplete
|
@@ -26,7 +25,7 @@ class LcnOutputLight(LcnEntity, LightEntity):
|
|
26
25
|
_is_dimming_to_zero: bool
|
27
26
|
_attr_color_mode: Incomplete
|
28
27
|
_attr_supported_color_modes: Incomplete
|
29
|
-
def __init__(self, config: ConfigType, config_entry:
|
28
|
+
def __init__(self, config: ConfigType, config_entry: LcnConfigEntry) -> None: ...
|
30
29
|
async def async_added_to_hass(self) -> None: ...
|
31
30
|
async def async_will_remove_from_hass(self) -> None: ...
|
32
31
|
async def async_turn_on(self, **kwargs: Any) -> None: ...
|
@@ -38,7 +37,7 @@ class LcnRelayLight(LcnEntity, LightEntity):
|
|
38
37
|
_attr_supported_color_modes: Incomplete
|
39
38
|
_attr_is_on: bool
|
40
39
|
output: Incomplete
|
41
|
-
def __init__(self, config: ConfigType, config_entry:
|
40
|
+
def __init__(self, config: ConfigType, config_entry: LcnConfigEntry) -> None: ...
|
42
41
|
async def async_added_to_hass(self) -> None: ...
|
43
42
|
async def async_will_remove_from_hass(self) -> None: ...
|
44
43
|
async def async_turn_on(self, **kwargs: Any) -> None: ...
|
@@ -1,9 +1,9 @@
|
|
1
|
-
from .const import
|
1
|
+
from .const import CONF_DOMAIN_DATA as CONF_DOMAIN_DATA, CONF_OUTPUTS as CONF_OUTPUTS, CONF_REGISTER as CONF_REGISTER, CONF_TRANSITION as CONF_TRANSITION, OUTPUT_PORTS as OUTPUT_PORTS
|
2
2
|
from .entity import LcnEntity as LcnEntity
|
3
|
+
from .helpers import LcnConfigEntry as LcnConfigEntry
|
3
4
|
from _typeshed import Incomplete
|
4
5
|
from collections.abc import Iterable
|
5
6
|
from homeassistant.components.scene import Scene as Scene
|
6
|
-
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
7
7
|
from homeassistant.const import CONF_DOMAIN as CONF_DOMAIN, CONF_ENTITIES as CONF_ENTITIES, CONF_SCENE as CONF_SCENE
|
8
8
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
9
9
|
from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback as AddConfigEntryEntitiesCallback
|
@@ -12,8 +12,8 @@ from typing import Any
|
|
12
12
|
|
13
13
|
PARALLEL_UPDATES: int
|
14
14
|
|
15
|
-
def add_lcn_entities(config_entry:
|
16
|
-
async def async_setup_entry(hass: HomeAssistant, config_entry:
|
15
|
+
def add_lcn_entities(config_entry: LcnConfigEntry, async_add_entities: AddConfigEntryEntitiesCallback, entity_configs: Iterable[ConfigType]) -> None: ...
|
16
|
+
async def async_setup_entry(hass: HomeAssistant, config_entry: LcnConfigEntry, async_add_entities: AddConfigEntryEntitiesCallback) -> None: ...
|
17
17
|
|
18
18
|
class LcnScene(LcnEntity, Scene):
|
19
19
|
register_id: Incomplete
|
@@ -21,5 +21,5 @@ class LcnScene(LcnEntity, Scene):
|
|
21
21
|
output_ports: Incomplete
|
22
22
|
relay_ports: Incomplete
|
23
23
|
transition: Incomplete
|
24
|
-
def __init__(self, config: ConfigType, config_entry:
|
24
|
+
def __init__(self, config: ConfigType, config_entry: LcnConfigEntry) -> None: ...
|
25
25
|
async def async_activate(self, **kwargs: Any) -> None: ...
|
@@ -1,27 +1,27 @@
|
|
1
|
-
from .const import
|
1
|
+
from .const import CONF_DOMAIN_DATA as CONF_DOMAIN_DATA, LED_PORTS as LED_PORTS, S0_INPUTS as S0_INPUTS, SETPOINTS as SETPOINTS, THRESHOLDS as THRESHOLDS, VARIABLES as VARIABLES
|
2
2
|
from .entity import LcnEntity as LcnEntity
|
3
|
-
from .helpers import InputType as InputType
|
3
|
+
from .helpers import InputType as InputType, LcnConfigEntry as LcnConfigEntry
|
4
4
|
from _typeshed import Incomplete
|
5
5
|
from collections.abc import Iterable
|
6
6
|
from homeassistant.components.sensor import SensorDeviceClass as SensorDeviceClass, SensorEntity as SensorEntity
|
7
|
-
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
8
7
|
from homeassistant.const import CONCENTRATION_PARTS_PER_MILLION as CONCENTRATION_PARTS_PER_MILLION, CONF_DOMAIN as CONF_DOMAIN, CONF_ENTITIES as CONF_ENTITIES, CONF_SOURCE as CONF_SOURCE, CONF_UNIT_OF_MEASUREMENT as CONF_UNIT_OF_MEASUREMENT, LIGHT_LUX as LIGHT_LUX, UnitOfElectricCurrent as UnitOfElectricCurrent, UnitOfElectricPotential as UnitOfElectricPotential, UnitOfSpeed as UnitOfSpeed, UnitOfTemperature as UnitOfTemperature
|
9
8
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
10
9
|
from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback as AddConfigEntryEntitiesCallback
|
11
10
|
from homeassistant.helpers.typing import ConfigType as ConfigType
|
12
11
|
|
12
|
+
PARALLEL_UPDATES: int
|
13
13
|
DEVICE_CLASS_MAPPING: Incomplete
|
14
14
|
UNIT_OF_MEASUREMENT_MAPPING: Incomplete
|
15
15
|
|
16
|
-
def add_lcn_entities(config_entry:
|
17
|
-
async def async_setup_entry(hass: HomeAssistant, config_entry:
|
16
|
+
def add_lcn_entities(config_entry: LcnConfigEntry, async_add_entities: AddConfigEntryEntitiesCallback, entity_configs: Iterable[ConfigType]) -> None: ...
|
17
|
+
async def async_setup_entry(hass: HomeAssistant, config_entry: LcnConfigEntry, async_add_entities: AddConfigEntryEntitiesCallback) -> None: ...
|
18
18
|
|
19
19
|
class LcnVariableSensor(LcnEntity, SensorEntity):
|
20
20
|
variable: Incomplete
|
21
21
|
unit: Incomplete
|
22
22
|
_attr_native_unit_of_measurement: Incomplete
|
23
23
|
_attr_device_class: Incomplete
|
24
|
-
def __init__(self, config: ConfigType, config_entry:
|
24
|
+
def __init__(self, config: ConfigType, config_entry: LcnConfigEntry) -> None: ...
|
25
25
|
async def async_added_to_hass(self) -> None: ...
|
26
26
|
async def async_will_remove_from_hass(self) -> None: ...
|
27
27
|
_attr_native_value: Incomplete
|
@@ -29,7 +29,7 @@ class LcnVariableSensor(LcnEntity, SensorEntity):
|
|
29
29
|
|
30
30
|
class LcnLedLogicSensor(LcnEntity, SensorEntity):
|
31
31
|
source: Incomplete
|
32
|
-
def __init__(self, config: ConfigType, config_entry:
|
32
|
+
def __init__(self, config: ConfigType, config_entry: LcnConfigEntry) -> None: ...
|
33
33
|
async def async_added_to_hass(self) -> None: ...
|
34
34
|
async def async_will_remove_from_hass(self) -> None: ...
|
35
35
|
_attr_native_value: Incomplete
|
@@ -1,9 +1,9 @@
|
|
1
|
-
from .const import CONF_KEYS as CONF_KEYS, CONF_LED as CONF_LED, CONF_OUTPUT as CONF_OUTPUT, CONF_PCK as CONF_PCK, CONF_RELVARREF as CONF_RELVARREF, CONF_ROW as CONF_ROW, CONF_SETPOINT as CONF_SETPOINT, CONF_TABLE as CONF_TABLE, CONF_TEXT as CONF_TEXT, CONF_TIME as CONF_TIME, CONF_TIME_UNIT as CONF_TIME_UNIT, CONF_TRANSITION as CONF_TRANSITION, CONF_VALUE as CONF_VALUE, CONF_VARIABLE as CONF_VARIABLE,
|
2
|
-
from .helpers import DeviceConnectionType as DeviceConnectionType, is_states_string as is_states_string
|
1
|
+
from .const import CONF_KEYS as CONF_KEYS, CONF_LED as CONF_LED, CONF_OUTPUT as CONF_OUTPUT, CONF_PCK as CONF_PCK, CONF_RELVARREF as CONF_RELVARREF, CONF_ROW as CONF_ROW, CONF_SETPOINT as CONF_SETPOINT, CONF_TABLE as CONF_TABLE, CONF_TEXT as CONF_TEXT, CONF_TIME as CONF_TIME, CONF_TIME_UNIT as CONF_TIME_UNIT, CONF_TRANSITION as CONF_TRANSITION, CONF_VALUE as CONF_VALUE, CONF_VARIABLE as CONF_VARIABLE, DOMAIN as DOMAIN, LED_PORTS as LED_PORTS, LED_STATUS as LED_STATUS, OUTPUT_PORTS as OUTPUT_PORTS, RELVARREF as RELVARREF, SENDKEYCOMMANDS as SENDKEYCOMMANDS, SETPOINTS as SETPOINTS, THRESHOLDS as THRESHOLDS, TIME_UNITS as TIME_UNITS, VARIABLES as VARIABLES, VAR_UNITS as VAR_UNITS
|
2
|
+
from .helpers import DeviceConnectionType as DeviceConnectionType, LcnConfigEntry as LcnConfigEntry, is_states_string as is_states_string
|
3
3
|
from _typeshed import Incomplete
|
4
4
|
from enum import StrEnum
|
5
5
|
from homeassistant.const import CONF_BRIGHTNESS as CONF_BRIGHTNESS, CONF_DEVICE_ID as CONF_DEVICE_ID, CONF_STATE as CONF_STATE, CONF_UNIT_OF_MEASUREMENT as CONF_UNIT_OF_MEASUREMENT
|
6
|
-
from homeassistant.core import HomeAssistant as HomeAssistant, ServiceCall as ServiceCall, ServiceResponse as ServiceResponse, SupportsResponse as SupportsResponse
|
6
|
+
from homeassistant.core import HomeAssistant as HomeAssistant, ServiceCall as ServiceCall, ServiceResponse as ServiceResponse, SupportsResponse as SupportsResponse, callback as callback
|
7
7
|
from homeassistant.exceptions import ServiceValidationError as ServiceValidationError
|
8
8
|
|
9
9
|
class LcnServiceCall:
|
@@ -83,4 +83,5 @@ class LcnService(StrEnum):
|
|
83
83
|
|
84
84
|
SERVICES: Incomplete
|
85
85
|
|
86
|
-
|
86
|
+
@callback
|
87
|
+
def async_setup_services(hass: HomeAssistant) -> None: ...
|
@@ -1,10 +1,9 @@
|
|
1
|
-
from .const import
|
1
|
+
from .const import CONF_DOMAIN_DATA as CONF_DOMAIN_DATA, CONF_OUTPUT as CONF_OUTPUT, OUTPUT_PORTS as OUTPUT_PORTS, RELAY_PORTS as RELAY_PORTS, SETPOINTS as SETPOINTS
|
2
2
|
from .entity import LcnEntity as LcnEntity
|
3
|
-
from .helpers import InputType as InputType
|
3
|
+
from .helpers import InputType as InputType, LcnConfigEntry as LcnConfigEntry
|
4
4
|
from _typeshed import Incomplete
|
5
5
|
from collections.abc import Iterable
|
6
6
|
from homeassistant.components.switch import SwitchEntity as SwitchEntity
|
7
|
-
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
8
7
|
from homeassistant.const import CONF_DOMAIN as CONF_DOMAIN, CONF_ENTITIES as CONF_ENTITIES
|
9
8
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
10
9
|
from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback as AddConfigEntryEntitiesCallback
|
@@ -13,13 +12,13 @@ from typing import Any
|
|
13
12
|
|
14
13
|
PARALLEL_UPDATES: int
|
15
14
|
|
16
|
-
def add_lcn_switch_entities(config_entry:
|
17
|
-
async def async_setup_entry(hass: HomeAssistant, config_entry:
|
15
|
+
def add_lcn_switch_entities(config_entry: LcnConfigEntry, async_add_entities: AddConfigEntryEntitiesCallback, entity_configs: Iterable[ConfigType]) -> None: ...
|
16
|
+
async def async_setup_entry(hass: HomeAssistant, config_entry: LcnConfigEntry, async_add_entities: AddConfigEntryEntitiesCallback) -> None: ...
|
18
17
|
|
19
18
|
class LcnOutputSwitch(LcnEntity, SwitchEntity):
|
20
19
|
_attr_is_on: bool
|
21
20
|
output: Incomplete
|
22
|
-
def __init__(self, config: ConfigType, config_entry:
|
21
|
+
def __init__(self, config: ConfigType, config_entry: LcnConfigEntry) -> None: ...
|
23
22
|
async def async_added_to_hass(self) -> None: ...
|
24
23
|
async def async_will_remove_from_hass(self) -> None: ...
|
25
24
|
async def async_turn_on(self, **kwargs: Any) -> None: ...
|
@@ -29,7 +28,7 @@ class LcnOutputSwitch(LcnEntity, SwitchEntity):
|
|
29
28
|
class LcnRelaySwitch(LcnEntity, SwitchEntity):
|
30
29
|
_attr_is_on: bool
|
31
30
|
output: Incomplete
|
32
|
-
def __init__(self, config: ConfigType, config_entry:
|
31
|
+
def __init__(self, config: ConfigType, config_entry: LcnConfigEntry) -> None: ...
|
33
32
|
async def async_added_to_hass(self) -> None: ...
|
34
33
|
async def async_will_remove_from_hass(self) -> None: ...
|
35
34
|
async def async_turn_on(self, **kwargs: Any) -> None: ...
|
@@ -40,7 +39,7 @@ class LcnRegulatorLockSwitch(LcnEntity, SwitchEntity):
|
|
40
39
|
_attr_is_on: bool
|
41
40
|
setpoint_variable: Incomplete
|
42
41
|
reg_id: Incomplete
|
43
|
-
def __init__(self, config: ConfigType, config_entry:
|
42
|
+
def __init__(self, config: ConfigType, config_entry: LcnConfigEntry) -> None: ...
|
44
43
|
async def async_added_to_hass(self) -> None: ...
|
45
44
|
async def async_will_remove_from_hass(self) -> None: ...
|
46
45
|
async def async_turn_on(self, **kwargs: Any) -> None: ...
|
@@ -52,7 +51,7 @@ class LcnKeyLockSwitch(LcnEntity, SwitchEntity):
|
|
52
51
|
key: Incomplete
|
53
52
|
table_id: Incomplete
|
54
53
|
key_id: Incomplete
|
55
|
-
def __init__(self, config: ConfigType, config_entry:
|
54
|
+
def __init__(self, config: ConfigType, config_entry: LcnConfigEntry) -> None: ...
|
56
55
|
async def async_added_to_hass(self) -> None: ...
|
57
56
|
async def async_will_remove_from_hass(self) -> None: ...
|
58
57
|
async def async_turn_on(self, **kwargs: Any) -> None: ...
|
@@ -1,17 +1,16 @@
|
|
1
|
-
from .const import
|
2
|
-
from .helpers import DeviceConnectionType as DeviceConnectionType, async_update_device_config as async_update_device_config, generate_unique_id as generate_unique_id, get_device_config as get_device_config, get_device_connection as get_device_connection, get_resource as get_resource, purge_device_registry as purge_device_registry, purge_entity_registry as purge_entity_registry, register_lcn_address_devices as register_lcn_address_devices
|
1
|
+
from .const import CONF_DOMAIN_DATA as CONF_DOMAIN_DATA, CONF_HARDWARE_SERIAL as CONF_HARDWARE_SERIAL, CONF_HARDWARE_TYPE as CONF_HARDWARE_TYPE, CONF_SOFTWARE_SERIAL as CONF_SOFTWARE_SERIAL, DOMAIN as DOMAIN
|
2
|
+
from .helpers import DeviceConnectionType as DeviceConnectionType, LcnConfigEntry as LcnConfigEntry, async_update_device_config as async_update_device_config, generate_unique_id as generate_unique_id, get_device_config as get_device_config, get_device_connection as get_device_connection, get_resource as get_resource, purge_device_registry as purge_device_registry, purge_entity_registry as purge_entity_registry, register_lcn_address_devices as register_lcn_address_devices
|
3
3
|
from .schemas import ADDRESS_SCHEMA as ADDRESS_SCHEMA, DOMAIN_DATA_BINARY_SENSOR as DOMAIN_DATA_BINARY_SENSOR, DOMAIN_DATA_CLIMATE as DOMAIN_DATA_CLIMATE, DOMAIN_DATA_COVER as DOMAIN_DATA_COVER, DOMAIN_DATA_LIGHT as DOMAIN_DATA_LIGHT, DOMAIN_DATA_SCENE as DOMAIN_DATA_SCENE, DOMAIN_DATA_SENSOR as DOMAIN_DATA_SENSOR, DOMAIN_DATA_SWITCH as DOMAIN_DATA_SWITCH
|
4
4
|
from collections.abc import Awaitable, Callable
|
5
5
|
from homeassistant.components import panel_custom as panel_custom, websocket_api as websocket_api
|
6
6
|
from homeassistant.components.http import StaticPathConfig as StaticPathConfig
|
7
7
|
from homeassistant.components.websocket_api import ActiveConnection as ActiveConnection, AsyncWebSocketCommandHandler as AsyncWebSocketCommandHandler
|
8
|
-
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
9
8
|
from homeassistant.const import CONF_ADDRESS as CONF_ADDRESS, CONF_DEVICES as CONF_DEVICES, CONF_DOMAIN as CONF_DOMAIN, CONF_ENTITIES as CONF_ENTITIES, CONF_NAME as CONF_NAME
|
10
9
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
11
10
|
from homeassistant.helpers import entity_registry as er
|
12
11
|
from typing import Any, Final
|
13
12
|
|
14
|
-
type AsyncLcnWebSocketCommandHandler = Callable[[HomeAssistant, ActiveConnection, dict[str, Any],
|
13
|
+
type AsyncLcnWebSocketCommandHandler = Callable[[HomeAssistant, ActiveConnection, dict[str, Any], LcnConfigEntry], Awaitable[None]]
|
15
14
|
URL_BASE: Final[str]
|
16
15
|
|
17
16
|
async def register_panel_and_ws_api(hass: HomeAssistant) -> None: ...
|
@@ -19,30 +18,30 @@ def get_config_entry(func: AsyncLcnWebSocketCommandHandler) -> AsyncWebSocketCom
|
|
19
18
|
@websocket_api.require_admin
|
20
19
|
@websocket_api.async_response
|
21
20
|
@get_config_entry
|
22
|
-
async def websocket_get_device_configs(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict, config_entry:
|
21
|
+
async def websocket_get_device_configs(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict, config_entry: LcnConfigEntry) -> None: ...
|
23
22
|
@websocket_api.require_admin
|
24
23
|
@websocket_api.async_response
|
25
24
|
@get_config_entry
|
26
|
-
async def websocket_get_entity_configs(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict, config_entry:
|
25
|
+
async def websocket_get_entity_configs(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict, config_entry: LcnConfigEntry) -> None: ...
|
27
26
|
@websocket_api.require_admin
|
28
27
|
@websocket_api.async_response
|
29
28
|
@get_config_entry
|
30
|
-
async def websocket_scan_devices(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict, config_entry:
|
29
|
+
async def websocket_scan_devices(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict, config_entry: LcnConfigEntry) -> None: ...
|
31
30
|
@websocket_api.require_admin
|
32
31
|
@websocket_api.async_response
|
33
32
|
@get_config_entry
|
34
|
-
async def websocket_add_device(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict, config_entry:
|
33
|
+
async def websocket_add_device(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict, config_entry: LcnConfigEntry) -> None: ...
|
35
34
|
@websocket_api.require_admin
|
36
35
|
@websocket_api.async_response
|
37
36
|
@get_config_entry
|
38
|
-
async def websocket_delete_device(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict, config_entry:
|
37
|
+
async def websocket_delete_device(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict, config_entry: LcnConfigEntry) -> None: ...
|
39
38
|
@websocket_api.require_admin
|
40
39
|
@websocket_api.async_response
|
41
40
|
@get_config_entry
|
42
|
-
async def websocket_add_entity(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict, config_entry:
|
41
|
+
async def websocket_add_entity(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict, config_entry: LcnConfigEntry) -> None: ...
|
43
42
|
@websocket_api.require_admin
|
44
43
|
@websocket_api.async_response
|
45
44
|
@get_config_entry
|
46
|
-
async def websocket_delete_entity(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict, config_entry:
|
47
|
-
async def async_create_or_update_device_in_config_entry(hass: HomeAssistant, device_connection: DeviceConnectionType, config_entry:
|
48
|
-
def get_entity_entry(hass: HomeAssistant, entity_config: dict, config_entry:
|
45
|
+
async def websocket_delete_entity(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict, config_entry: LcnConfigEntry) -> None: ...
|
46
|
+
async def async_create_or_update_device_in_config_entry(hass: HomeAssistant, device_connection: DeviceConnectionType, config_entry: LcnConfigEntry) -> None: ...
|
47
|
+
def get_entity_entry(hass: HomeAssistant, entity_config: dict, config_entry: LcnConfigEntry) -> er.RegistryEntry | None: ...
|
@@ -1,10 +1,8 @@
|
|
1
|
-
from .const import DOMAIN as DOMAIN
|
2
1
|
from .coordinator import LD2410BLECoordinator as LD2410BLECoordinator
|
3
|
-
from .models import LD2410BLEData as LD2410BLEData
|
2
|
+
from .models import LD2410BLEConfigEntry as LD2410BLEConfigEntry, LD2410BLEData as LD2410BLEData
|
4
3
|
from _typeshed import Incomplete
|
5
4
|
from homeassistant.components import bluetooth as bluetooth
|
6
5
|
from homeassistant.components.bluetooth.match import ADDRESS as ADDRESS, BluetoothCallbackMatcher as BluetoothCallbackMatcher
|
7
|
-
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
8
6
|
from homeassistant.const import CONF_ADDRESS as CONF_ADDRESS, EVENT_HOMEASSISTANT_STOP as EVENT_HOMEASSISTANT_STOP, Platform as Platform
|
9
7
|
from homeassistant.core import Event as Event, HomeAssistant as HomeAssistant, callback as callback
|
10
8
|
from homeassistant.exceptions import ConfigEntryNotReady as ConfigEntryNotReady
|
@@ -12,6 +10,6 @@ from homeassistant.exceptions import ConfigEntryNotReady as ConfigEntryNotReady
|
|
12
10
|
PLATFORMS: list[Platform]
|
13
11
|
_LOGGER: Incomplete
|
14
12
|
|
15
|
-
async def async_setup_entry(hass: HomeAssistant, entry:
|
16
|
-
async def _async_update_listener(hass: HomeAssistant, entry:
|
17
|
-
async def async_unload_entry(hass: HomeAssistant, entry:
|
13
|
+
async def async_setup_entry(hass: HomeAssistant, entry: LD2410BLEConfigEntry) -> bool: ...
|
14
|
+
async def _async_update_listener(hass: HomeAssistant, entry: LD2410BLEConfigEntry) -> None: ...
|
15
|
+
async def async_unload_entry(hass: HomeAssistant, entry: LD2410BLEConfigEntry) -> bool: ...
|
@@ -1,9 +1,7 @@
|
|
1
1
|
from . import LD2410BLE as LD2410BLE, LD2410BLECoordinator as LD2410BLECoordinator
|
2
|
-
from .
|
3
|
-
from .models import LD2410BLEData as LD2410BLEData
|
2
|
+
from .models import LD2410BLEConfigEntry as LD2410BLEConfigEntry
|
4
3
|
from _typeshed import Incomplete
|
5
4
|
from homeassistant.components.binary_sensor import BinarySensorDeviceClass as BinarySensorDeviceClass, BinarySensorEntity as BinarySensorEntity, BinarySensorEntityDescription as BinarySensorEntityDescription
|
6
|
-
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
7
5
|
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
8
6
|
from homeassistant.helpers.device_registry import DeviceInfo as DeviceInfo
|
9
7
|
from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback as AddConfigEntryEntitiesCallback
|
@@ -11,7 +9,7 @@ from homeassistant.helpers.update_coordinator import CoordinatorEntity as Coordi
|
|
11
9
|
|
12
10
|
ENTITY_DESCRIPTIONS: Incomplete
|
13
11
|
|
14
|
-
async def async_setup_entry(hass: HomeAssistant, entry:
|
12
|
+
async def async_setup_entry(hass: HomeAssistant, entry: LD2410BLEConfigEntry, async_add_entities: AddConfigEntryEntitiesCallback) -> None: ...
|
15
13
|
|
16
14
|
class LD2410BLEBinarySensor(CoordinatorEntity[LD2410BLECoordinator], BinarySensorEntity):
|
17
15
|
_attr_has_entity_name: bool
|
@@ -1,7 +1,7 @@
|
|
1
1
|
from .const import DOMAIN as DOMAIN
|
2
|
+
from .models import LD2410BLEConfigEntry as LD2410BLEConfigEntry
|
2
3
|
from _typeshed import Incomplete
|
3
4
|
from datetime import datetime
|
4
|
-
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
5
5
|
from homeassistant.core import CALLBACK_TYPE as CALLBACK_TYPE, HassJob as HassJob, HomeAssistant as HomeAssistant, callback as callback
|
6
6
|
from homeassistant.helpers.event import async_call_later as async_call_later
|
7
7
|
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator as DataUpdateCoordinator
|
@@ -12,13 +12,13 @@ NEVER_TIME: float
|
|
12
12
|
DEBOUNCE_SECONDS: float
|
13
13
|
|
14
14
|
class LD2410BLECoordinator(DataUpdateCoordinator[None]):
|
15
|
-
config_entry:
|
15
|
+
config_entry: LD2410BLEConfigEntry
|
16
16
|
_ld2410_ble: Incomplete
|
17
17
|
connected: bool
|
18
18
|
_last_update_time: Incomplete
|
19
19
|
_debounce_cancel: CALLBACK_TYPE | None
|
20
20
|
_debounced_update_job: Incomplete
|
21
|
-
def __init__(self, hass: HomeAssistant, config_entry:
|
21
|
+
def __init__(self, hass: HomeAssistant, config_entry: LD2410BLEConfigEntry, ld2410_ble: LD2410BLE) -> None: ...
|
22
22
|
@callback
|
23
23
|
def _async_handle_debounced_update(self, _now: datetime) -> None: ...
|
24
24
|
@callback
|
@@ -1,7 +1,9 @@
|
|
1
1
|
from .coordinator import LD2410BLECoordinator as LD2410BLECoordinator
|
2
2
|
from dataclasses import dataclass
|
3
|
+
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
3
4
|
from ld2410_ble import LD2410BLE as LD2410BLE
|
4
5
|
|
6
|
+
type LD2410BLEConfigEntry = ConfigEntry[LD2410BLEData]
|
5
7
|
@dataclass
|
6
8
|
class LD2410BLEData:
|
7
9
|
title: str
|
@@ -1,14 +1,13 @@
|
|
1
|
-
from . import
|
2
|
-
from .
|
3
|
-
from .models import LD2410BLEData as LD2410BLEData
|
1
|
+
from .coordinator import LD2410BLECoordinator as LD2410BLECoordinator
|
2
|
+
from .models import LD2410BLEConfigEntry as LD2410BLEConfigEntry
|
4
3
|
from _typeshed import Incomplete
|
5
4
|
from homeassistant.components.sensor import SensorDeviceClass as SensorDeviceClass, SensorEntity as SensorEntity, SensorEntityDescription as SensorEntityDescription, SensorStateClass as SensorStateClass
|
6
|
-
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
7
5
|
from homeassistant.const import EntityCategory as EntityCategory, UnitOfLength as UnitOfLength
|
8
6
|
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
9
7
|
from homeassistant.helpers.device_registry import DeviceInfo as DeviceInfo
|
10
8
|
from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback as AddConfigEntryEntitiesCallback
|
11
9
|
from homeassistant.helpers.update_coordinator import CoordinatorEntity as CoordinatorEntity
|
10
|
+
from ld2410_ble import LD2410BLE as LD2410BLE
|
12
11
|
|
13
12
|
MOVING_TARGET_DISTANCE_DESCRIPTION: Incomplete
|
14
13
|
STATIC_TARGET_DISTANCE_DESCRIPTION: Incomplete
|
@@ -21,7 +20,7 @@ MOTION_ENERGY_GATES: Incomplete
|
|
21
20
|
STATIC_ENERGY_GATES: Incomplete
|
22
21
|
SENSOR_DESCRIPTIONS: Incomplete
|
23
22
|
|
24
|
-
async def async_setup_entry(hass: HomeAssistant, entry:
|
23
|
+
async def async_setup_entry(hass: HomeAssistant, entry: LD2410BLEConfigEntry, async_add_entities: AddConfigEntryEntitiesCallback) -> None: ...
|
25
24
|
|
26
25
|
class LD2410BLESensor(CoordinatorEntity[LD2410BLECoordinator], SensorEntity):
|
27
26
|
_attr_has_entity_name: bool
|
@@ -1,9 +1,8 @@
|
|
1
|
-
from .const import DEVICE_TIMEOUT as DEVICE_TIMEOUT,
|
2
|
-
from .models import LEDBLEData as LEDBLEData
|
1
|
+
from .const import DEVICE_TIMEOUT as DEVICE_TIMEOUT, UPDATE_SECONDS as UPDATE_SECONDS
|
2
|
+
from .models import LEDBLEConfigEntry as LEDBLEConfigEntry, LEDBLEData as LEDBLEData
|
3
3
|
from _typeshed import Incomplete
|
4
4
|
from homeassistant.components import bluetooth as bluetooth
|
5
5
|
from homeassistant.components.bluetooth.match import ADDRESS as ADDRESS, BluetoothCallbackMatcher as BluetoothCallbackMatcher
|
6
|
-
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
7
6
|
from homeassistant.const import CONF_ADDRESS as CONF_ADDRESS, EVENT_HOMEASSISTANT_STOP as EVENT_HOMEASSISTANT_STOP, Platform as Platform
|
8
7
|
from homeassistant.core import Event as Event, HomeAssistant as HomeAssistant, callback as callback
|
9
8
|
from homeassistant.exceptions import ConfigEntryNotReady as ConfigEntryNotReady
|
@@ -12,6 +11,6 @@ from homeassistant.helpers.update_coordinator import DataUpdateCoordinator as Da
|
|
12
11
|
PLATFORMS: list[Platform]
|
13
12
|
_LOGGER: Incomplete
|
14
13
|
|
15
|
-
async def async_setup_entry(hass: HomeAssistant, entry:
|
16
|
-
async def _async_update_listener(hass: HomeAssistant, entry:
|
17
|
-
async def async_unload_entry(hass: HomeAssistant, entry:
|
14
|
+
async def async_setup_entry(hass: HomeAssistant, entry: LEDBLEConfigEntry) -> bool: ...
|
15
|
+
async def _async_update_listener(hass: HomeAssistant, entry: LEDBLEConfigEntry) -> None: ...
|
16
|
+
async def async_unload_entry(hass: HomeAssistant, entry: LEDBLEConfigEntry) -> bool: ...
|
@@ -1,8 +1,7 @@
|
|
1
|
-
from .const import DEFAULT_EFFECT_SPEED as DEFAULT_EFFECT_SPEED
|
2
|
-
from .models import
|
1
|
+
from .const import DEFAULT_EFFECT_SPEED as DEFAULT_EFFECT_SPEED
|
2
|
+
from .models import LEDBLEConfigEntry as LEDBLEConfigEntry
|
3
3
|
from _typeshed import Incomplete
|
4
4
|
from homeassistant.components.light import ATTR_BRIGHTNESS as ATTR_BRIGHTNESS, ATTR_EFFECT as ATTR_EFFECT, ATTR_RGB_COLOR as ATTR_RGB_COLOR, ATTR_WHITE as ATTR_WHITE, ColorMode as ColorMode, LightEntity as LightEntity, LightEntityFeature as LightEntityFeature
|
5
|
-
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
6
5
|
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
7
6
|
from homeassistant.helpers.device_registry import DeviceInfo as DeviceInfo
|
8
7
|
from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback as AddConfigEntryEntitiesCallback
|
@@ -10,7 +9,7 @@ from homeassistant.helpers.update_coordinator import CoordinatorEntity as Coordi
|
|
10
9
|
from led_ble import LEDBLE as LEDBLE
|
11
10
|
from typing import Any
|
12
11
|
|
13
|
-
async def async_setup_entry(hass: HomeAssistant, entry:
|
12
|
+
async def async_setup_entry(hass: HomeAssistant, entry: LEDBLEConfigEntry, async_add_entities: AddConfigEntryEntitiesCallback) -> None: ...
|
14
13
|
|
15
14
|
class LEDBLEEntity(CoordinatorEntity[DataUpdateCoordinator[None]], LightEntity):
|
16
15
|
_attr_supported_color_modes: Incomplete
|
@@ -1,7 +1,9 @@
|
|
1
1
|
from dataclasses import dataclass
|
2
|
+
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
2
3
|
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator as DataUpdateCoordinator
|
3
4
|
from led_ble import LEDBLE as LEDBLE
|
4
5
|
|
6
|
+
type LEDBLEConfigEntry = ConfigEntry[LEDBLEData]
|
5
7
|
@dataclass
|
6
8
|
class LEDBLEData:
|
7
9
|
title: str
|
@@ -1,5 +1,5 @@
|
|
1
1
|
from .const import DATA_LIFX_MANAGER as DATA_LIFX_MANAGER, DOMAIN as DOMAIN, TARGET_ANY as TARGET_ANY, _LOGGER as _LOGGER
|
2
|
-
from .coordinator import LIFXUpdateCoordinator as LIFXUpdateCoordinator
|
2
|
+
from .coordinator import LIFXConfigEntry as LIFXConfigEntry, LIFXUpdateCoordinator as LIFXUpdateCoordinator
|
3
3
|
from .discovery import async_discover_devices as async_discover_devices, async_trigger_discovery as async_trigger_discovery
|
4
4
|
from .manager import LIFXManager as LIFXManager
|
5
5
|
from .migration import async_migrate_entities_devices as async_migrate_entities_devices, async_migrate_legacy_entries as async_migrate_legacy_entries
|
@@ -7,7 +7,6 @@ from .util import async_entry_is_legacy as async_entry_is_legacy, async_get_lega
|
|
7
7
|
from _typeshed import Incomplete
|
8
8
|
from aiolifx.aiolifx import Light as Light
|
9
9
|
from collections.abc import Iterable
|
10
|
-
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
11
10
|
from homeassistant.const import CONF_HOST as CONF_HOST, CONF_PORT as CONF_PORT, EVENT_HOMEASSISTANT_STARTED as EVENT_HOMEASSISTANT_STARTED, Platform as Platform
|
12
11
|
from homeassistant.core import CALLBACK_TYPE as CALLBACK_TYPE, HassJob as HassJob, HomeAssistant as HomeAssistant, callback as callback
|
13
12
|
from homeassistant.exceptions import ConfigEntryNotReady as ConfigEntryNotReady
|
@@ -24,7 +23,7 @@ DISCOVERY_INTERVAL: Incomplete
|
|
24
23
|
MIGRATION_INTERVAL: Incomplete
|
25
24
|
DISCOVERY_COOLDOWN: int
|
26
25
|
|
27
|
-
async def async_legacy_migration(hass: HomeAssistant, legacy_entry:
|
26
|
+
async def async_legacy_migration(hass: HomeAssistant, legacy_entry: LIFXConfigEntry, discovered_devices: Iterable[Light]) -> bool: ...
|
28
27
|
|
29
28
|
class LIFXDiscoveryManager:
|
30
29
|
hass: Incomplete
|
@@ -37,5 +36,5 @@ class LIFXDiscoveryManager:
|
|
37
36
|
async def async_discovery(self, *_: Any) -> None: ...
|
38
37
|
|
39
38
|
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: ...
|
40
|
-
async def async_setup_entry(hass: HomeAssistant, entry:
|
41
|
-
async def async_unload_entry(hass: HomeAssistant, entry:
|
39
|
+
async def async_setup_entry(hass: HomeAssistant, entry: LIFXConfigEntry) -> bool: ...
|
40
|
+
async def async_unload_entry(hass: HomeAssistant, entry: LIFXConfigEntry) -> bool: ...
|
@@ -1,17 +1,16 @@
|
|
1
|
-
from .const import
|
2
|
-
from .coordinator import LIFXUpdateCoordinator as LIFXUpdateCoordinator
|
1
|
+
from .const import HEV_CYCLE_STATE as HEV_CYCLE_STATE
|
2
|
+
from .coordinator import LIFXConfigEntry as LIFXConfigEntry, LIFXUpdateCoordinator as LIFXUpdateCoordinator
|
3
3
|
from .entity import LIFXEntity as LIFXEntity
|
4
4
|
from .util import lifx_features as lifx_features
|
5
5
|
from _typeshed import Incomplete
|
6
6
|
from homeassistant.components.binary_sensor import BinarySensorDeviceClass as BinarySensorDeviceClass, BinarySensorEntity as BinarySensorEntity, BinarySensorEntityDescription as BinarySensorEntityDescription
|
7
|
-
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
8
7
|
from homeassistant.const import EntityCategory as EntityCategory
|
9
8
|
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
10
9
|
from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback as AddConfigEntryEntitiesCallback
|
11
10
|
|
12
11
|
HEV_CYCLE_STATE_SENSOR: Incomplete
|
13
12
|
|
14
|
-
async def async_setup_entry(hass: HomeAssistant, entry:
|
13
|
+
async def async_setup_entry(hass: HomeAssistant, entry: LIFXConfigEntry, async_add_entities: AddConfigEntryEntitiesCallback) -> None: ...
|
15
14
|
|
16
15
|
class LIFXHevCycleBinarySensorEntity(LIFXEntity, BinarySensorEntity):
|
17
16
|
entity_description: Incomplete
|
@@ -1,9 +1,8 @@
|
|
1
|
-
from .const import
|
2
|
-
from .coordinator import LIFXUpdateCoordinator as LIFXUpdateCoordinator
|
1
|
+
from .const import IDENTIFY as IDENTIFY, RESTART as RESTART
|
2
|
+
from .coordinator import LIFXConfigEntry as LIFXConfigEntry, LIFXUpdateCoordinator as LIFXUpdateCoordinator
|
3
3
|
from .entity import LIFXEntity as LIFXEntity
|
4
4
|
from _typeshed import Incomplete
|
5
5
|
from homeassistant.components.button import ButtonDeviceClass as ButtonDeviceClass, ButtonEntity as ButtonEntity, ButtonEntityDescription as ButtonEntityDescription
|
6
|
-
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
7
6
|
from homeassistant.const import EntityCategory as EntityCategory
|
8
7
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
9
8
|
from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback as AddConfigEntryEntitiesCallback
|
@@ -11,7 +10,7 @@ from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback
|
|
11
10
|
RESTART_BUTTON_DESCRIPTION: Incomplete
|
12
11
|
IDENTIFY_BUTTON_DESCRIPTION: Incomplete
|
13
12
|
|
14
|
-
async def async_setup_entry(hass: HomeAssistant, entry:
|
13
|
+
async def async_setup_entry(hass: HomeAssistant, entry: LIFXConfigEntry, async_add_entities: AddConfigEntryEntitiesCallback) -> None: ...
|
15
14
|
|
16
15
|
class LIFXButton(LIFXEntity, ButtonEntity):
|
17
16
|
_attr_should_poll: bool
|
@@ -1,6 +1,9 @@
|
|
1
|
+
from .manager import LIFXManager as LIFXManager
|
1
2
|
from _typeshed import Incomplete
|
3
|
+
from homeassistant.util.hass_dict import HassKey as HassKey
|
2
4
|
|
3
5
|
DOMAIN: str
|
6
|
+
DATA_LIFX_MANAGER: HassKey[LIFXManager]
|
4
7
|
TARGET_ANY: str
|
5
8
|
DISCOVERY_INTERVAL: int
|
6
9
|
MESSAGE_TIMEOUT: int
|
@@ -26,7 +29,6 @@ ATTR_THEME: str
|
|
26
29
|
HEV_CYCLE_STATE: str
|
27
30
|
INFRARED_BRIGHTNESS: str
|
28
31
|
INFRARED_BRIGHTNESS_VALUES_MAP: Incomplete
|
29
|
-
DATA_LIFX_MANAGER: str
|
30
32
|
LIFX_CEILING_PRODUCT_IDS: Incomplete
|
31
33
|
_LOGGER: Incomplete
|
32
34
|
_ATTR_COLOR_TEMP: str
|
@@ -19,6 +19,7 @@ REQUEST_REFRESH_DELAY: float
|
|
19
19
|
LIFX_IDENTIFY_DELAY: float
|
20
20
|
ZONES_PER_COLOR_UPDATE_REQUEST: int
|
21
21
|
RSSI_DBM_FW: Incomplete
|
22
|
+
type LIFXConfigEntry = ConfigEntry[LIFXUpdateCoordinator]
|
22
23
|
|
23
24
|
class FirmwareEffect(IntEnum):
|
24
25
|
OFF = 0
|
@@ -33,7 +34,7 @@ class SkyType(IntEnum):
|
|
33
34
|
CLOUDS = 2
|
34
35
|
|
35
36
|
class LIFXUpdateCoordinator(DataUpdateCoordinator[None]):
|
36
|
-
config_entry:
|
37
|
+
config_entry: LIFXConfigEntry
|
37
38
|
connection: Incomplete
|
38
39
|
device: Light
|
39
40
|
lock: Incomplete
|
@@ -41,7 +42,7 @@ class LIFXUpdateCoordinator(DataUpdateCoordinator[None]):
|
|
41
42
|
_update_rssi: bool
|
42
43
|
_rssi: int
|
43
44
|
last_used_theme: str
|
44
|
-
def __init__(self, hass: HomeAssistant, config_entry:
|
45
|
+
def __init__(self, hass: HomeAssistant, config_entry: LIFXConfigEntry, connection: LIFXConnection) -> None: ...
|
45
46
|
@callback
|
46
47
|
def async_setup(self) -> None: ...
|
47
48
|
@property
|
@@ -1,12 +1,11 @@
|
|
1
|
-
from .const import CONF_LABEL as CONF_LABEL
|
2
|
-
from .coordinator import
|
1
|
+
from .const import CONF_LABEL as CONF_LABEL
|
2
|
+
from .coordinator import LIFXConfigEntry as LIFXConfigEntry
|
3
3
|
from _typeshed import Incomplete
|
4
4
|
from homeassistant.components.diagnostics import async_redact_data as async_redact_data
|
5
|
-
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
6
5
|
from homeassistant.const import CONF_HOST as CONF_HOST, CONF_IP_ADDRESS as CONF_IP_ADDRESS, CONF_MAC as CONF_MAC
|
7
6
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
8
7
|
from typing import Any
|
9
8
|
|
10
9
|
TO_REDACT: Incomplete
|
11
10
|
|
12
|
-
async def async_get_config_entry_diagnostics(hass: HomeAssistant, entry:
|
11
|
+
async def async_get_config_entry_diagnostics(hass: HomeAssistant, entry: LIFXConfigEntry) -> dict[str, Any]: ...
|
@@ -1,12 +1,11 @@
|
|
1
1
|
import aiolifx_effects as aiolifx_effects_module
|
2
2
|
from .const import ATTR_DURATION as ATTR_DURATION, ATTR_INFRARED as ATTR_INFRARED, ATTR_POWER as ATTR_POWER, ATTR_ZONES as ATTR_ZONES, DATA_LIFX_MANAGER as DATA_LIFX_MANAGER, DOMAIN as DOMAIN, INFRARED_BRIGHTNESS as INFRARED_BRIGHTNESS, LIFX_CEILING_PRODUCT_IDS as LIFX_CEILING_PRODUCT_IDS, _LOGGER as _LOGGER
|
3
|
-
from .coordinator import FirmwareEffect as FirmwareEffect, LIFXUpdateCoordinator as LIFXUpdateCoordinator
|
3
|
+
from .coordinator import FirmwareEffect as FirmwareEffect, LIFXConfigEntry as LIFXConfigEntry, LIFXUpdateCoordinator as LIFXUpdateCoordinator
|
4
4
|
from .entity import LIFXEntity as LIFXEntity
|
5
5
|
from .manager import LIFXManager as LIFXManager, SERVICE_EFFECT_COLORLOOP as SERVICE_EFFECT_COLORLOOP, SERVICE_EFFECT_FLAME as SERVICE_EFFECT_FLAME, SERVICE_EFFECT_MORPH as SERVICE_EFFECT_MORPH, SERVICE_EFFECT_MOVE as SERVICE_EFFECT_MOVE, SERVICE_EFFECT_PULSE as SERVICE_EFFECT_PULSE, SERVICE_EFFECT_SKY as SERVICE_EFFECT_SKY, SERVICE_EFFECT_STOP as SERVICE_EFFECT_STOP
|
6
6
|
from .util import convert_16_to_8 as convert_16_to_8, convert_8_to_16 as convert_8_to_16, find_hsbk as find_hsbk, lifx_features as lifx_features, merge_hsbk as merge_hsbk
|
7
7
|
from _typeshed import Incomplete
|
8
8
|
from homeassistant.components.light import ATTR_EFFECT as ATTR_EFFECT, ATTR_TRANSITION as ATTR_TRANSITION, ColorMode as ColorMode, LIGHT_TURN_ON_SCHEMA as LIGHT_TURN_ON_SCHEMA, LightEntity as LightEntity, LightEntityFeature as LightEntityFeature
|
9
|
-
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
10
9
|
from homeassistant.const import ATTR_ENTITY_ID as ATTR_ENTITY_ID, Platform as Platform
|
11
10
|
from homeassistant.core import CALLBACK_TYPE as CALLBACK_TYPE, HomeAssistant as HomeAssistant
|
12
11
|
from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
|
@@ -26,7 +25,7 @@ HSBK_SATURATION: int
|
|
26
25
|
HSBK_BRIGHTNESS: int
|
27
26
|
HSBK_KELVIN: int
|
28
27
|
|
29
|
-
async def async_setup_entry(hass: HomeAssistant, entry:
|
28
|
+
async def async_setup_entry(hass: HomeAssistant, entry: LIFXConfigEntry, async_add_entities: AddConfigEntryEntitiesCallback) -> None: ...
|
30
29
|
|
31
30
|
class LIFXLight(LIFXEntity, LightEntity):
|
32
31
|
_attr_supported_features: Incomplete
|
@@ -42,7 +41,7 @@ class LIFXLight(LIFXEntity, LightEntity):
|
|
42
41
|
_attr_color_mode: Incomplete
|
43
42
|
_attr_supported_color_modes: Incomplete
|
44
43
|
_attr_effect: Incomplete
|
45
|
-
def __init__(self, coordinator: LIFXUpdateCoordinator, manager: LIFXManager, entry:
|
44
|
+
def __init__(self, coordinator: LIFXUpdateCoordinator, manager: LIFXManager, entry: LIFXConfigEntry) -> None: ...
|
46
45
|
@property
|
47
46
|
def brightness(self) -> int: ...
|
48
47
|
@property
|
@@ -1,5 +1,5 @@
|
|
1
|
-
from .const import ATTR_THEME as ATTR_THEME,
|
2
|
-
from .coordinator import LIFXUpdateCoordinator as LIFXUpdateCoordinator
|
1
|
+
from .const import ATTR_THEME as ATTR_THEME, DOMAIN as DOMAIN, _ATTR_COLOR_TEMP as _ATTR_COLOR_TEMP
|
2
|
+
from .coordinator import LIFXConfigEntry as LIFXConfigEntry, LIFXUpdateCoordinator as LIFXUpdateCoordinator
|
3
3
|
from .util import convert_8_to_16 as convert_8_to_16, find_hsbk as find_hsbk
|
4
4
|
from _typeshed import Incomplete
|
5
5
|
from aiolifx.aiolifx import Light as Light
|
@@ -1,9 +1,9 @@
|
|
1
1
|
from .const import DOMAIN as DOMAIN, _LOGGER as _LOGGER
|
2
|
+
from .coordinator import LIFXConfigEntry as LIFXConfigEntry
|
2
3
|
from .discovery import async_init_discovery_flow as async_init_discovery_flow
|
3
|
-
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
4
4
|
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
5
5
|
|
6
6
|
@callback
|
7
|
-
def async_migrate_legacy_entries(hass: HomeAssistant, discovered_hosts_by_serial: dict[str, str], existing_serials: set[str], legacy_entry:
|
7
|
+
def async_migrate_legacy_entries(hass: HomeAssistant, discovered_hosts_by_serial: dict[str, str], existing_serials: set[str], legacy_entry: LIFXConfigEntry) -> int: ...
|
8
8
|
@callback
|
9
|
-
def async_migrate_entities_devices(hass: HomeAssistant, legacy_entry_id: str, new_entry:
|
9
|
+
def async_migrate_entities_devices(hass: HomeAssistant, legacy_entry_id: str, new_entry: LIFXConfigEntry) -> None: ...
|