homeassistant-stubs 2023.3.6__py3-none-any.whl → 2023.4.0b1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- homeassistant-stubs/auth/__init__.pyi +1 -1
- homeassistant-stubs/auth/jwt_wrapper.pyi +14 -0
- homeassistant-stubs/auth/permissions/models.pyi +3 -3
- homeassistant-stubs/bootstrap.pyi +1 -1
- homeassistant-stubs/components/aladdin_connect/config_flow.pyi +0 -2
- homeassistant-stubs/components/aladdin_connect/cover.pyi +5 -7
- homeassistant-stubs/components/alarm_control_panel/device_action.pyi +0 -1
- homeassistant-stubs/components/alarm_control_panel/device_condition.pyi +1 -1
- homeassistant-stubs/components/alarm_control_panel/device_trigger.pyi +0 -1
- homeassistant-stubs/components/amazon_polly/tts.pyi +2 -2
- homeassistant-stubs/components/amcrest/camera.pyi +0 -1
- homeassistant-stubs/components/awair/sensor.pyi +2 -1
- homeassistant-stubs/components/backup/manager.pyi +2 -1
- homeassistant-stubs/components/bayesian/issues.pyi +0 -1
- homeassistant-stubs/components/bluetooth/wrappers.pyi +1 -0
- homeassistant-stubs/components/bmw_connected_drive/config_flow.pyi +3 -0
- homeassistant-stubs/components/bmw_connected_drive/coordinator.pyi +1 -0
- homeassistant-stubs/components/braviatv/media_player.pyi +2 -2
- homeassistant-stubs/components/button/device_action.pyi +0 -1
- homeassistant-stubs/components/button/device_trigger.pyi +0 -1
- homeassistant-stubs/components/calendar/__init__.pyi +8 -4
- homeassistant-stubs/components/calendar/const.pyi +2 -2
- homeassistant-stubs/components/calendar/trigger.pyi +25 -8
- homeassistant-stubs/components/camera/__init__.pyi +1 -1
- homeassistant-stubs/components/cover/device_action.pyi +0 -1
- homeassistant-stubs/components/cover/device_condition.pyi +1 -1
- homeassistant-stubs/components/cover/device_trigger.pyi +0 -1
- homeassistant-stubs/components/demo/sensor.pyi +2 -1
- homeassistant-stubs/components/demo/stt.pyi +2 -2
- homeassistant-stubs/components/device_automation/condition.pyi +2 -4
- homeassistant-stubs/components/device_tracker/device_condition.pyi +1 -1
- homeassistant-stubs/components/device_tracker/device_trigger.pyi +0 -1
- homeassistant-stubs/components/devolo_home_network/device_tracker.pyi +0 -1
- homeassistant-stubs/components/devolo_home_network/entity.pyi +1 -0
- homeassistant-stubs/components/dlna_dmr/config_flow.pyi +0 -1
- homeassistant-stubs/components/dlna_dmr/media_player.pyi +1 -2
- homeassistant-stubs/components/dormakaba_dkey/__init__.pyi +1 -1
- homeassistant-stubs/components/dormakaba_dkey/config_flow.pyi +5 -1
- homeassistant-stubs/components/efergy/sensor.pyi +2 -2
- homeassistant-stubs/components/emulated_hue/hue_api.pyi +1 -0
- homeassistant-stubs/components/energy/types.pyi +2 -2
- homeassistant-stubs/components/energy/websocket_api.pyi +1 -0
- homeassistant-stubs/components/esphome/bluetooth/client.pyi +3 -1
- homeassistant-stubs/components/esphome/entry_data.pyi +1 -0
- homeassistant-stubs/components/esphome/media_player.pyi +1 -1
- homeassistant-stubs/components/fan/device_condition.pyi +1 -1
- homeassistant-stubs/components/filesize/__init__.pyi +1 -2
- homeassistant-stubs/components/fitbit/sensor.pyi +1 -1
- homeassistant-stubs/components/fritz/binary_sensor.pyi +7 -11
- homeassistant-stubs/components/fritz/common.pyi +25 -3
- homeassistant-stubs/components/fritz/sensor.pyi +6 -15
- homeassistant-stubs/components/fritzbox/sensor.pyi +0 -1
- homeassistant-stubs/components/fronius/coordinator.pyi +2 -3
- homeassistant-stubs/components/fronius/sensor.pyi +13 -8
- homeassistant-stubs/components/fully_kiosk/media_player.pyi +3 -3
- homeassistant-stubs/components/fully_kiosk/sensor.pyi +3 -3
- homeassistant-stubs/components/gios/__init__.pyi +3 -3
- homeassistant-stubs/components/gios/const.pyi +0 -2
- homeassistant-stubs/components/gios/sensor.pyi +10 -13
- homeassistant-stubs/components/google/__init__.pyi +1 -1
- homeassistant-stubs/components/google/calendar.pyi +1 -1
- homeassistant-stubs/components/google/const.pyi +1 -0
- homeassistant-stubs/components/group/media_player.pyi +4 -3
- homeassistant-stubs/components/group/notify.pyi +1 -1
- homeassistant-stubs/components/group/sensor.pyi +2 -0
- homeassistant-stubs/components/guardian/util.pyi +0 -1
- homeassistant-stubs/components/history/websocket_api.pyi +2 -1
- homeassistant-stubs/components/homeassistant_alerts/__init__.pyi +4 -2
- homeassistant-stubs/components/homeassistant_hardware/silabs_multiprotocol_addon.pyi +7 -2
- homeassistant-stubs/components/homeassistant_sky_connect/__init__.pyi +2 -8
- homeassistant-stubs/components/homeassistant_yellow/__init__.pyi +3 -7
- homeassistant-stubs/components/homekit/__init__.pyi +6 -6
- homeassistant-stubs/components/homekit/config_flow.pyi +2 -2
- homeassistant-stubs/components/homekit/type_triggers.pyi +0 -1
- homeassistant-stubs/components/http/__init__.pyi +18 -1
- homeassistant-stubs/components/http/auth.pyi +1 -0
- homeassistant-stubs/components/http/security_filter.pyi +1 -0
- homeassistant-stubs/components/huawei_lte/__init__.pyi +1 -1
- homeassistant-stubs/components/huawei_lte/device_tracker.pyi +0 -1
- homeassistant-stubs/components/isy994/lock.pyi +8 -3
- homeassistant-stubs/components/isy994/services.pyi +6 -0
- homeassistant-stubs/components/jellyfin/coordinator.pyi +4 -2
- homeassistant-stubs/components/jellyfin/media_player.pyi +3 -3
- homeassistant-stubs/components/knx/__init__.pyi +3 -2
- homeassistant-stubs/components/knx/device.pyi +18 -0
- homeassistant-stubs/components/knx/light.pyi +2 -2
- homeassistant-stubs/components/knx/sensor.pyi +33 -2
- homeassistant-stubs/components/kraken/sensor.pyi +0 -1
- homeassistant-stubs/components/lametric/__init__.pyi +1 -2
- homeassistant-stubs/components/lidarr/const.pyi +0 -2
- homeassistant-stubs/components/lifx/__init__.pyi +2 -2
- homeassistant-stubs/components/light/intent.pyi +1 -1
- homeassistant-stubs/components/litejet/__init__.pyi +14 -0
- homeassistant-stubs/components/litejet/config_flow.pyi +18 -0
- homeassistant-stubs/components/litejet/const.pyi +8 -0
- homeassistant-stubs/components/litejet/diagnostics.pyi +7 -0
- homeassistant-stubs/components/litejet/light.pyi +39 -0
- homeassistant-stubs/components/litejet/scene.pyi +32 -0
- homeassistant-stubs/components/litejet/switch.pyi +37 -0
- homeassistant-stubs/components/litejet/trigger.pyi +16 -0
- homeassistant-stubs/components/litterrobot/select.pyi +11 -6
- homeassistant-stubs/components/lock/device_action.pyi +0 -1
- homeassistant-stubs/components/lock/device_condition.pyi +1 -1
- homeassistant-stubs/components/lock/device_trigger.pyi +0 -1
- homeassistant-stubs/components/logbook/__init__.pyi +3 -3
- homeassistant-stubs/components/logbook/const.pyi +0 -2
- homeassistant-stubs/components/logbook/helpers.pyi +1 -1
- homeassistant-stubs/components/logbook/models.pyi +25 -7
- homeassistant-stubs/components/logbook/processor.pyi +8 -7
- homeassistant-stubs/components/logbook/queries/__init__.pyi +3 -1
- homeassistant-stubs/components/logbook/queries/all.pyi +4 -4
- homeassistant-stubs/components/logbook/queries/common.pyi +2 -2
- homeassistant-stubs/components/logbook/queries/devices.pyi +1 -1
- homeassistant-stubs/components/logbook/queries/entities.pyi +6 -6
- homeassistant-stubs/components/logbook/queries/entities_and_devices.pyi +5 -5
- homeassistant-stubs/components/logbook/websocket_api.pyi +2 -2
- homeassistant-stubs/components/logger/helpers.pyi +1 -1
- homeassistant-stubs/components/logger/websocket_api.pyi +1 -1
- homeassistant-stubs/components/matter/binary_sensor.pyi +5 -1
- homeassistant-stubs/components/matter/entity.pyi +5 -1
- homeassistant-stubs/components/matter/lock.pyi +44 -0
- homeassistant-stubs/components/matter/models.pyi +2 -9
- homeassistant-stubs/components/matter/sensor.pyi +5 -1
- homeassistant-stubs/components/media_player/__init__.pyi +2 -2
- homeassistant-stubs/components/media_player/device_condition.pyi +1 -1
- homeassistant-stubs/components/media_player/device_trigger.pyi +0 -1
- homeassistant-stubs/components/metoffice/__init__.pyi +0 -2
- homeassistant-stubs/components/metoffice/sensor.pyi +2 -1
- homeassistant-stubs/components/mikrotik/const.pyi +2 -0
- homeassistant-stubs/components/mikrotik/device_tracker.pyi +0 -1
- homeassistant-stubs/components/mikrotik/hub.pyi +2 -1
- homeassistant-stubs/components/modbus/__init__.pyi +1 -1
- homeassistant-stubs/components/modbus/climate.pyi +3 -1
- homeassistant-stubs/components/modbus/const.pyi +1 -0
- homeassistant-stubs/components/modbus/modbus.pyi +1 -1
- homeassistant-stubs/components/modem_callerid/button.pyi +2 -2
- homeassistant-stubs/components/modem_callerid/sensor.pyi +2 -2
- homeassistant-stubs/components/moon/config_flow.pyi +0 -2
- homeassistant-stubs/components/moon/sensor.pyi +2 -7
- homeassistant-stubs/components/mqtt/__init__.pyi +5 -7
- homeassistant-stubs/components/mqtt/client.pyi +24 -2
- homeassistant-stubs/components/mqtt/config_integration.pyi +1 -1
- homeassistant-stubs/components/mqtt/const.pyi +0 -1
- homeassistant-stubs/components/mqtt/models.pyi +2 -1
- homeassistant-stubs/components/mysensors/__init__.pyi +4 -9
- homeassistant-stubs/components/mysensors/const.pyi +1 -3
- homeassistant-stubs/components/mysensors/device.pyi +1 -1
- homeassistant-stubs/components/mysensors/light.pyi +1 -1
- homeassistant-stubs/components/mysensors/switch.pyi +6 -20
- homeassistant-stubs/components/nam/__init__.pyi +0 -2
- homeassistant-stubs/components/nam/sensor.pyi +0 -1
- homeassistant-stubs/components/netatmo/device_trigger.pyi +0 -1
- homeassistant-stubs/components/nissan_leaf/sensor.pyi +2 -3
- homeassistant-stubs/components/notify/legacy.pyi +2 -2
- homeassistant-stubs/components/number/const.pyi +2 -0
- homeassistant-stubs/components/number/device_action.pyi +0 -1
- homeassistant-stubs/components/otbr/__init__.pyi +3 -0
- homeassistant-stubs/components/otbr/config_flow.pyi +3 -2
- homeassistant-stubs/components/otbr/util.pyi +6 -0
- homeassistant-stubs/components/otbr/websocket_api.pyi +7 -3
- homeassistant-stubs/components/overkiz/climate_entities/__init__.pyi +1 -0
- homeassistant-stubs/components/overkiz/climate_entities/atlantic_electrical_heater.pyi +2 -0
- homeassistant-stubs/components/overkiz/climate_entities/atlantic_electrical_heater_with_adjustable_temperature_setpoint.pyi +2 -0
- homeassistant-stubs/components/overkiz/climate_entities/atlantic_electrical_towel_dryer.pyi +2 -0
- homeassistant-stubs/components/overkiz/climate_entities/atlantic_heat_recovery_ventilation.pyi +2 -0
- homeassistant-stubs/components/overkiz/climate_entities/atlantic_pass_apc_heating_zone.pyi +2 -0
- homeassistant-stubs/components/overkiz/climate_entities/somfy_thermostat.pyi +2 -2
- homeassistant-stubs/components/overkiz/climate_entities/valve_heating_temperature_interface.pyi +37 -0
- homeassistant-stubs/components/overkiz/const.pyi +2 -1
- homeassistant-stubs/components/overkiz/sensor.pyi +3 -1
- homeassistant-stubs/components/overkiz/switch.pyi +2 -2
- homeassistant-stubs/components/pi_hole/sensor.pyi +2 -2
- homeassistant-stubs/components/rainmachine/util.pyi +0 -1
- homeassistant-stubs/components/recorder/__init__.pyi +3 -3
- homeassistant-stubs/components/recorder/auto_repairs/__init__.pyi +0 -0
- homeassistant-stubs/components/recorder/auto_repairs/events/__init__.pyi +0 -0
- homeassistant-stubs/components/recorder/auto_repairs/events/schema.pyi +6 -0
- homeassistant-stubs/components/recorder/auto_repairs/schema.pyi +23 -0
- homeassistant-stubs/components/recorder/auto_repairs/states/schema.pyi +9 -0
- homeassistant-stubs/components/recorder/auto_repairs/statistics/__init__.pyi +0 -0
- homeassistant-stubs/components/recorder/auto_repairs/statistics/duplicates.pyi +19 -0
- homeassistant-stubs/components/recorder/auto_repairs/statistics/schema.pyi +9 -0
- homeassistant-stubs/components/recorder/const.pyi +10 -0
- homeassistant-stubs/components/recorder/core.pyi +33 -29
- homeassistant-stubs/components/recorder/db_schema.pyi +36 -6
- homeassistant-stubs/components/recorder/entity_registry.pyi +10 -0
- homeassistant-stubs/components/recorder/filters.pyi +13 -11
- homeassistant-stubs/components/recorder/history/__init__.pyi +13 -0
- homeassistant-stubs/components/recorder/history/common.pyi +4 -0
- homeassistant-stubs/components/recorder/history/const.pyi +9 -0
- homeassistant-stubs/components/recorder/{history.pyi → history/legacy.pyi} +9 -14
- homeassistant-stubs/components/recorder/history/modern.pyi +41 -0
- homeassistant-stubs/components/recorder/migration.pyi +34 -6
- homeassistant-stubs/components/recorder/models/__init__.pyi +5 -0
- homeassistant-stubs/components/recorder/models/context.pyi +6 -0
- homeassistant-stubs/components/recorder/models/database.pyi +14 -0
- homeassistant-stubs/components/recorder/models/legacy.pyi +39 -0
- homeassistant-stubs/components/recorder/models/state.pyi +43 -0
- homeassistant-stubs/components/recorder/models/state_attributes.pyi +9 -0
- homeassistant-stubs/components/recorder/models/statistics.pyi +50 -0
- homeassistant-stubs/components/recorder/models/time.pyi +20 -0
- homeassistant-stubs/components/recorder/purge.pyi +9 -12
- homeassistant-stubs/components/recorder/queries.pyi +19 -3
- homeassistant-stubs/components/recorder/services.pyi +1 -1
- homeassistant-stubs/components/recorder/statistics.pyi +40 -42
- homeassistant-stubs/components/recorder/table_managers/__init__.pyi +20 -0
- homeassistant-stubs/components/recorder/table_managers/event_data.pyi +26 -0
- homeassistant-stubs/components/recorder/table_managers/event_types.pyi +20 -0
- homeassistant-stubs/components/recorder/{run_history.pyi → table_managers/recorder_runs.pyi} +3 -3
- homeassistant-stubs/components/recorder/table_managers/state_attributes.pyi +29 -0
- homeassistant-stubs/components/recorder/table_managers/states.pyi +14 -0
- homeassistant-stubs/components/recorder/table_managers/states_meta.pyi +23 -0
- homeassistant-stubs/components/recorder/table_managers/statistics_meta.pyi +35 -0
- homeassistant-stubs/components/recorder/tasks.pyi +39 -4
- homeassistant-stubs/components/recorder/util.pyi +2 -1
- homeassistant-stubs/components/recorder/websocket_api.pyi +2 -2
- homeassistant-stubs/components/renault/renault_vehicle.pyi +1 -0
- homeassistant-stubs/components/rest/__init__.pyi +1 -1
- homeassistant-stubs/components/rest/const.pyi +2 -0
- homeassistant-stubs/components/rest/data.pyi +3 -2
- homeassistant-stubs/components/rest/schema.pyi +1 -1
- homeassistant-stubs/components/ridwell/calendar.pyi +22 -0
- homeassistant-stubs/components/ridwell/coordinator.pyi +2 -2
- homeassistant-stubs/components/ridwell/entity.pyi +2 -4
- homeassistant-stubs/components/ridwell/sensor.pyi +2 -1
- homeassistant-stubs/components/ridwell/switch.pyi +4 -0
- homeassistant-stubs/components/roku/media_player.pyi +4 -4
- homeassistant-stubs/components/samsungtv/device_trigger.pyi +19 -0
- homeassistant-stubs/components/samsungtv/helpers.pyi +8 -0
- homeassistant-stubs/components/samsungtv/media_player.pyi +7 -2
- homeassistant-stubs/components/samsungtv/trigger.pyi +12 -0
- homeassistant-stubs/components/samsungtv/triggers/__init__.pyi +0 -0
- homeassistant-stubs/components/samsungtv/triggers/turn_on.pyi +14 -0
- homeassistant-stubs/components/scrape/config_flow.pyi +1 -1
- homeassistant-stubs/components/scrape/const.pyi +2 -0
- homeassistant-stubs/components/scrape/sensor.pyi +3 -6
- homeassistant-stubs/components/select/device_action.pyi +0 -1
- homeassistant-stubs/components/select/device_condition.pyi +1 -1
- homeassistant-stubs/components/select/device_trigger.pyi +0 -1
- homeassistant-stubs/components/sensor/const.pyi +2 -0
- homeassistant-stubs/components/sensor/recorder.pyi +3 -1
- homeassistant-stubs/components/sfr_box/__init__.pyi +1 -1
- homeassistant-stubs/components/sfr_box/binary_sensor.pyi +3 -1
- homeassistant-stubs/components/sfr_box/models.pyi +4 -2
- homeassistant-stubs/components/sfr_box/sensor.pyi +2 -1
- homeassistant-stubs/components/sleepiq/entity.pyi +0 -1
- homeassistant-stubs/components/statistics/sensor.pyi +2 -2
- homeassistant-stubs/components/sun/__init__.pyi +1 -1
- homeassistant-stubs/components/sun/sensor.pyi +36 -0
- homeassistant-stubs/components/switcher_kis/__init__.pyi +1 -1
- homeassistant-stubs/components/switcher_kis/button.pyi +0 -1
- homeassistant-stubs/components/switcher_kis/climate.pyi +0 -1
- homeassistant-stubs/components/switcher_kis/cover.pyi +0 -1
- homeassistant-stubs/components/switcher_kis/sensor.pyi +0 -1
- homeassistant-stubs/components/switcher_kis/switch.pyi +1 -1
- homeassistant-stubs/components/synology_dsm/sensor.pyi +5 -4
- homeassistant-stubs/components/threshold/__init__.pyi +7 -0
- homeassistant-stubs/components/threshold/binary_sensor.pyi +55 -0
- homeassistant-stubs/components/threshold/config_flow.pyi +19 -0
- homeassistant-stubs/components/threshold/const.pyi +5 -0
- homeassistant-stubs/components/tibber/config_flow.pyi +3 -0
- homeassistant-stubs/components/tibber/sensor.pyi +2 -1
- homeassistant-stubs/components/tplink/light.pyi +1 -1
- homeassistant-stubs/components/tplink_omada/__init__.pyi +1 -0
- homeassistant-stubs/components/tplink_omada/controller.pyi +21 -0
- homeassistant-stubs/components/tplink_omada/coordinator.pyi +3 -4
- homeassistant-stubs/components/tplink_omada/entity.pyi +6 -4
- homeassistant-stubs/components/tplink_omada/switch.pyi +4 -6
- homeassistant-stubs/components/tplink_omada/update.pyi +43 -0
- homeassistant-stubs/components/tradfri/sensor.pyi +0 -1
- homeassistant-stubs/components/tts/__init__.pyi +2 -1
- homeassistant-stubs/components/unifi/__init__.pyi +33 -0
- homeassistant-stubs/components/unifi/config_flow.pyi +46 -0
- homeassistant-stubs/components/unifi/const.pyi +30 -0
- homeassistant-stubs/components/unifi/controller.pyi +77 -0
- homeassistant-stubs/components/unifi/device_tracker.pyi +70 -0
- homeassistant-stubs/components/unifi/diagnostics.pyi +19 -0
- homeassistant-stubs/components/unifi/entity.pyi +58 -0
- homeassistant-stubs/components/unifi/errors.pyi +8 -0
- homeassistant-stubs/components/unifi/sensor.pyi +37 -0
- homeassistant-stubs/components/unifi/services.pyi +17 -0
- homeassistant-stubs/components/unifi/switch.pyi +55 -0
- homeassistant-stubs/components/unifi/update.pyi +1 -1
- homeassistant-stubs/components/unifiprotect/select.pyi +2 -2
- homeassistant-stubs/components/vacuum/device_action.pyi +0 -1
- homeassistant-stubs/components/vacuum/device_condition.pyi +1 -1
- homeassistant-stubs/components/vacuum/device_trigger.pyi +0 -1
- homeassistant-stubs/components/velbus/__init__.pyi +0 -2
- homeassistant-stubs/components/velbus/light.pyi +1 -1
- homeassistant-stubs/components/velbus/select.pyi +21 -0
- homeassistant-stubs/components/water_heater/device_action.pyi +0 -1
- homeassistant-stubs/components/weather/__init__.pyi +2 -23
- homeassistant-stubs/components/weather/const.pyi +25 -0
- homeassistant-stubs/components/weather/websocket_api.pyi +7 -0
- homeassistant-stubs/components/webostv/trigger.pyi +3 -3
- homeassistant-stubs/components/webostv/triggers/__init__.pyi +0 -5
- homeassistant-stubs/components/websocket_api/commands.pyi +2 -2
- homeassistant-stubs/components/websocket_api/connection.pyi +7 -1
- homeassistant-stubs/components/zwave_js/__init__.pyi +4 -4
- homeassistant-stubs/components/zwave_js/api.pyi +0 -1
- homeassistant-stubs/components/zwave_js/device_action.pyi +0 -1
- homeassistant-stubs/components/zwave_js/device_trigger.pyi +0 -1
- homeassistant-stubs/components/zwave_js/diagnostics.pyi +2 -1
- homeassistant-stubs/components/zwave_js/discovery.pyi +1 -1
- homeassistant-stubs/components/zwave_js/update.pyi +18 -8
- homeassistant-stubs/config_entries.pyi +4 -1
- homeassistant-stubs/core.pyi +4 -3
- homeassistant-stubs/helpers/condition.pyi +11 -3
- homeassistant-stubs/helpers/config_validation.pyi +1 -1
- homeassistant-stubs/helpers/debounce.pyi +1 -0
- homeassistant-stubs/helpers/device_registry.pyi +1 -1
- homeassistant-stubs/helpers/entity.pyi +1 -0
- homeassistant-stubs/helpers/entity_platform.pyi +2 -1
- homeassistant-stubs/helpers/entity_registry.pyi +9 -1
- homeassistant-stubs/helpers/event.pyi +3 -1
- homeassistant-stubs/helpers/httpx_client.pyi +1 -0
- homeassistant-stubs/helpers/integration_platform.pyi +3 -3
- homeassistant-stubs/helpers/script.pyi +5 -3
- homeassistant-stubs/helpers/selector.pyi +29 -12
- homeassistant-stubs/helpers/service.pyi +11 -0
- homeassistant-stubs/helpers/template.pyi +24 -3
- homeassistant-stubs/scripts/check_config.pyi +0 -1
- homeassistant-stubs/util/ssl.pyi +8 -0
- homeassistant-stubs/util/ulid.pyi +2 -1
- homeassistant-stubs/util/yaml/dumper.pyi +1 -1
- homeassistant-stubs/util/yaml/loader.pyi +4 -5
- homeassistant-stubs/util/yaml/objects.pyi +1 -0
- {homeassistant_stubs-2023.3.6.dist-info → homeassistant_stubs-2023.4.0b1.dist-info}/METADATA +2 -2
- {homeassistant_stubs-2023.3.6.dist-info → homeassistant_stubs-2023.4.0b1.dist-info}/RECORD +331 -265
- homeassistant-stubs/components/mysensors/notify.pyi +0 -23
- homeassistant-stubs/components/recorder/models.pyi +0 -148
- {homeassistant_stubs-2023.3.6.dist-info → homeassistant_stubs-2023.4.0b1.dist-info}/LICENSE +0 -0
- {homeassistant_stubs-2023.3.6.dist-info → homeassistant_stubs-2023.4.0b1.dist-info}/WHEEL +0 -0
@@ -1,17 +1,11 @@
|
|
1
1
|
from .const import DOMAIN as DOMAIN
|
2
2
|
from .util import get_usb_service_info as get_usb_service_info
|
3
|
-
from _typeshed import Incomplete
|
4
3
|
from homeassistant.components import usb as usb
|
5
|
-
from homeassistant.components.
|
6
|
-
from homeassistant.components.homeassistant_hardware.silabs_multiprotocol_addon import get_addon_manager as get_addon_manager, get_zigbee_socket as get_zigbee_socket
|
4
|
+
from homeassistant.components.homeassistant_hardware.silabs_multiprotocol_addon import check_multi_pan_addon as check_multi_pan_addon, get_zigbee_socket as get_zigbee_socket, multi_pan_addon_using_device as multi_pan_addon_using_device
|
7
5
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
8
6
|
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
9
|
-
from homeassistant.exceptions import ConfigEntryNotReady as ConfigEntryNotReady
|
7
|
+
from homeassistant.exceptions import ConfigEntryNotReady as ConfigEntryNotReady, HomeAssistantError as HomeAssistantError
|
10
8
|
|
11
|
-
_LOGGER: Incomplete
|
12
|
-
|
13
|
-
async def _wait_multi_pan_addon(hass: HomeAssistant, entry: ConfigEntry) -> None: ...
|
14
|
-
async def _multi_pan_addon_info(hass: HomeAssistant, entry: ConfigEntry) -> Union[AddonInfo, None]: ...
|
15
9
|
async def _async_usb_scan_done(hass: HomeAssistant, entry: ConfigEntry) -> None: ...
|
16
10
|
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: ...
|
17
11
|
async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: ...
|
@@ -1,13 +1,9 @@
|
|
1
1
|
from .const import RADIO_DEVICE as RADIO_DEVICE, ZHA_HW_DISCOVERY_DATA as ZHA_HW_DISCOVERY_DATA
|
2
|
-
from
|
3
|
-
from homeassistant.components.
|
4
|
-
from homeassistant.components.homeassistant_hardware.silabs_multiprotocol_addon import get_addon_manager as get_addon_manager, get_zigbee_socket as get_zigbee_socket
|
2
|
+
from homeassistant.components.hassio import get_os_info as get_os_info
|
3
|
+
from homeassistant.components.homeassistant_hardware.silabs_multiprotocol_addon import check_multi_pan_addon as check_multi_pan_addon, get_zigbee_socket as get_zigbee_socket, multi_pan_addon_using_device as multi_pan_addon_using_device
|
5
4
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
6
5
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
7
|
-
from homeassistant.exceptions import ConfigEntryNotReady as ConfigEntryNotReady
|
6
|
+
from homeassistant.exceptions import ConfigEntryNotReady as ConfigEntryNotReady, HomeAssistantError as HomeAssistantError
|
8
7
|
|
9
|
-
_LOGGER: Incomplete
|
10
|
-
|
11
|
-
async def _multi_pan_addon_info(hass: HomeAssistant, entry: ConfigEntry) -> Union[AddonInfo, None]: ...
|
12
8
|
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: ...
|
13
9
|
async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: ...
|
@@ -18,7 +18,7 @@ from homeassistant.config_entries import ConfigEntry as ConfigEntry, SOURCE_IMPO
|
|
18
18
|
from homeassistant.const import ATTR_BATTERY_CHARGING as ATTR_BATTERY_CHARGING, ATTR_BATTERY_LEVEL as ATTR_BATTERY_LEVEL, ATTR_DEVICE_ID as ATTR_DEVICE_ID, ATTR_ENTITY_ID as ATTR_ENTITY_ID, ATTR_HW_VERSION as ATTR_HW_VERSION, ATTR_MANUFACTURER as ATTR_MANUFACTURER, ATTR_MODEL as ATTR_MODEL, ATTR_SW_VERSION as ATTR_SW_VERSION, CONF_DEVICES as CONF_DEVICES, CONF_IP_ADDRESS as CONF_IP_ADDRESS, CONF_NAME as CONF_NAME, CONF_PORT as CONF_PORT, EVENT_HOMEASSISTANT_STARTED as EVENT_HOMEASSISTANT_STARTED, EVENT_HOMEASSISTANT_STOP as EVENT_HOMEASSISTANT_STOP, SERVICE_RELOAD as SERVICE_RELOAD
|
19
19
|
from homeassistant.core import CoreState as CoreState, HomeAssistant as HomeAssistant, ServiceCall as ServiceCall, State as State, callback as callback
|
20
20
|
from homeassistant.exceptions import HomeAssistantError as HomeAssistantError, Unauthorized as Unauthorized
|
21
|
-
from homeassistant.helpers import device_registry as
|
21
|
+
from homeassistant.helpers import device_registry as dr, entity_registry as er, instance_id as instance_id
|
22
22
|
from homeassistant.helpers.entityfilter import BASE_FILTER_SCHEMA as BASE_FILTER_SCHEMA, EntityFilter as EntityFilter, FILTER_SCHEMA as FILTER_SCHEMA
|
23
23
|
from homeassistant.helpers.reload import async_integration_yaml_config as async_integration_yaml_config
|
24
24
|
from homeassistant.helpers.service import async_extract_referenced_entity_ids as async_extract_referenced_entity_ids, async_register_admin_service as async_register_admin_service
|
@@ -84,22 +84,22 @@ class HomeKit:
|
|
84
84
|
async def async_config_changed(self) -> None: ...
|
85
85
|
def add_bridge_accessory(self, state: State) -> Union[HomeAccessory, None]: ...
|
86
86
|
def _would_exceed_max_devices(self, name: Union[str, None]) -> bool: ...
|
87
|
-
def add_bridge_triggers_accessory(self, device:
|
87
|
+
def add_bridge_triggers_accessory(self, device: dr.DeviceEntry, device_triggers: list[dict[str, Any]]) -> None: ...
|
88
88
|
async def async_remove_bridge_accessory(self, aid: int) -> Union[HomeAccessory, None]: ...
|
89
89
|
async def async_configure_accessories(self) -> list[State]: ...
|
90
90
|
async def async_start(self, *args: Any) -> None: ...
|
91
91
|
def _async_show_setup_message(self) -> None: ...
|
92
92
|
def async_unpair(self) -> None: ...
|
93
93
|
def _async_register_bridge(self) -> None: ...
|
94
|
-
def _async_purge_old_bridges(self, dev_reg:
|
94
|
+
def _async_purge_old_bridges(self, dev_reg: dr.DeviceRegistry, identifier: tuple[str, str, str], connection: tuple[str, str]) -> None: ...
|
95
95
|
def _async_create_single_accessory(self, entity_states: list[State]) -> Union[HomeAccessory, None]: ...
|
96
96
|
async def _async_create_bridge_accessory(self, entity_states: Iterable[State]) -> HomeAccessory: ...
|
97
97
|
async def _async_add_trigger_accessories(self) -> None: ...
|
98
98
|
async def _async_create_accessories(self) -> bool: ...
|
99
99
|
async def async_stop(self, *args: Any) -> None: ...
|
100
|
-
def _async_configure_linked_sensors(self, ent_reg_ent:
|
101
|
-
async def _async_set_device_info_attributes(self, ent_reg_ent:
|
102
|
-
def _fill_config_from_device_registry_entry(self, device_entry:
|
100
|
+
def _async_configure_linked_sensors(self, ent_reg_ent: er.RegistryEntry, device_lookup: dict[str, dict[tuple[str, Union[str, None]], str]], state: State) -> None: ...
|
101
|
+
async def _async_set_device_info_attributes(self, ent_reg_ent: er.RegistryEntry, dev_reg: dr.DeviceRegistry, entity_id: str) -> None: ...
|
102
|
+
def _fill_config_from_device_registry_entry(self, device_entry: dr.DeviceEntry, config: dict[str, Any]) -> None: ...
|
103
103
|
|
104
104
|
class HomeKitPairingQRView(HomeAssistantView):
|
105
105
|
url: str
|
@@ -8,7 +8,7 @@ from homeassistant.config_entries import SOURCE_IMPORT as SOURCE_IMPORT
|
|
8
8
|
from homeassistant.const import ATTR_FRIENDLY_NAME as ATTR_FRIENDLY_NAME, CONF_DEVICES as CONF_DEVICES, CONF_DOMAINS as CONF_DOMAINS, CONF_ENTITIES as CONF_ENTITIES, CONF_ENTITY_ID as CONF_ENTITY_ID, CONF_NAME as CONF_NAME, CONF_PORT as CONF_PORT
|
9
9
|
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback, split_entity_id as split_entity_id
|
10
10
|
from homeassistant.data_entry_flow import FlowResult as FlowResult
|
11
|
-
from homeassistant.helpers import
|
11
|
+
from homeassistant.helpers import entity_registry as er
|
12
12
|
from homeassistant.helpers.entityfilter import CONF_EXCLUDE_DOMAINS as CONF_EXCLUDE_DOMAINS, CONF_EXCLUDE_ENTITIES as CONF_EXCLUDE_ENTITIES, CONF_INCLUDE_DOMAINS as CONF_INCLUDE_DOMAINS, CONF_INCLUDE_ENTITIES as CONF_INCLUDE_ENTITIES
|
13
13
|
from homeassistant.loader import async_get_integrations as async_get_integrations
|
14
14
|
from typing import Any
|
@@ -60,7 +60,7 @@ class OptionsFlowHandler(config_entries.OptionsFlow):
|
|
60
60
|
async def async_step_init(self, user_input: Union[dict[str, Any], None] = ...) -> FlowResult: ...
|
61
61
|
|
62
62
|
async def _async_get_supported_devices(hass: HomeAssistant) -> dict[str, str]: ...
|
63
|
-
def _exclude_by_entity_registry(ent_reg:
|
63
|
+
def _exclude_by_entity_registry(ent_reg: er.EntityRegistry, entity_id: str, include_entity_category: bool, include_hidden: bool) -> bool: ...
|
64
64
|
def _async_get_matching_entities(hass: HomeAssistant, domains: Union[list[str], None] = ..., include_entity_category: bool = ..., include_hidden: bool = ...) -> dict[str, str]: ...
|
65
65
|
def _domains_set_from_entities(entity_ids: Iterable[str]) -> set[str]: ...
|
66
66
|
def _async_get_entity_ids_for_accessory_mode(hass: HomeAssistant, include_domains: Iterable[str]) -> list[str]: ...
|
@@ -4,7 +4,6 @@ from .const import CHAR_NAME as CHAR_NAME, CHAR_PROGRAMMABLE_SWITCH_EVENT as CHA
|
|
4
4
|
from .util import cleanup_name_for_homekit as cleanup_name_for_homekit
|
5
5
|
from _typeshed import Incomplete
|
6
6
|
from homeassistant.core import CALLBACK_TYPE as CALLBACK_TYPE, Context as Context
|
7
|
-
from homeassistant.helpers import entity_registry as entity_registry
|
8
7
|
from homeassistant.helpers.trigger import async_initialize_triggers as async_initialize_triggers
|
9
8
|
from typing import Any
|
10
9
|
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import asyncio
|
1
2
|
import ssl
|
2
3
|
from .auth import async_setup_auth as async_setup_auth
|
3
4
|
from .ban import setup_bans as setup_bans
|
@@ -10,8 +11,14 @@ from .static import CACHE_HEADERS as CACHE_HEADERS, CachingStaticResource as Cac
|
|
10
11
|
from .view import HomeAssistantView as HomeAssistantView
|
11
12
|
from .web_runner import HomeAssistantTCPSite as HomeAssistantTCPSite
|
12
13
|
from _typeshed import Incomplete
|
13
|
-
from aiohttp
|
14
|
+
from aiohttp import web
|
15
|
+
from aiohttp.abc import AbstractStreamWriter as AbstractStreamWriter
|
16
|
+
from aiohttp.http_parser import RawRequestMessage as RawRequestMessage
|
17
|
+
from aiohttp.streams import StreamReader as StreamReader
|
18
|
+
from aiohttp.typedefs import JSONDecoder as JSONDecoder, StrOrURL as StrOrURL
|
14
19
|
from aiohttp.web_exceptions import HTTPRedirection as HTTPRedirection
|
20
|
+
from aiohttp.web_log import AccessLogger
|
21
|
+
from aiohttp.web_protocol import RequestHandler as RequestHandler
|
15
22
|
from homeassistant.components.network import async_get_source_ip as async_get_source_ip
|
16
23
|
from homeassistant.const import EVENT_HOMEASSISTANT_STOP as EVENT_HOMEASSISTANT_STOP, SERVER_PORT as SERVER_PORT
|
17
24
|
from homeassistant.core import Event as Event, HomeAssistant as HomeAssistant
|
@@ -21,6 +28,7 @@ from homeassistant.helpers.network import NoURLAvailableError as NoURLAvailableE
|
|
21
28
|
from homeassistant.helpers.typing import ConfigType as ConfigType
|
22
29
|
from homeassistant.loader import bind_hass as bind_hass
|
23
30
|
from homeassistant.setup import async_start_setup as async_start_setup, async_when_setup_or_start as async_when_setup_or_start
|
31
|
+
from homeassistant.util.json import json_loads as json_loads
|
24
32
|
from ipaddress import IPv4Network, IPv6Network
|
25
33
|
from typing import Any, Final, TypedDict
|
26
34
|
|
@@ -76,6 +84,15 @@ class ApiConfig:
|
|
76
84
|
|
77
85
|
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: ...
|
78
86
|
|
87
|
+
class HomeAssistantAccessLogger(AccessLogger):
|
88
|
+
def log(self, request: web.BaseRequest, response: web.StreamResponse, time: float) -> None: ...
|
89
|
+
|
90
|
+
class HomeAssistantRequest(web.Request):
|
91
|
+
async def json(self, *, loads: JSONDecoder = ...) -> Any: ...
|
92
|
+
|
93
|
+
class HomeAssistantApplication(web.Application):
|
94
|
+
def _make_request(self, message: RawRequestMessage, payload: StreamReader, protocol: RequestHandler, writer: AbstractStreamWriter, task: asyncio.Task[None], _cls: type[web.Request] = ...) -> web.Request: ...
|
95
|
+
|
79
96
|
class HomeAssistantHTTP:
|
80
97
|
app: Incomplete
|
81
98
|
hass: Incomplete
|
@@ -4,6 +4,7 @@ from _typeshed import Incomplete
|
|
4
4
|
from aiohttp.web import Application as Application, Request as Request, StreamResponse as StreamResponse
|
5
5
|
from collections.abc import Callable as Callable
|
6
6
|
from datetime import timedelta
|
7
|
+
from homeassistant.auth import jwt_wrapper as jwt_wrapper
|
7
8
|
from homeassistant.auth.const import GROUP_ID_READ_ONLY as GROUP_ID_READ_ONLY
|
8
9
|
from homeassistant.auth.models import User as User
|
9
10
|
from homeassistant.components import websocket_api as websocket_api
|
@@ -6,7 +6,7 @@ from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
|
6
6
|
from homeassistant.const import ATTR_HW_VERSION as ATTR_HW_VERSION, ATTR_MODEL as ATTR_MODEL, ATTR_SW_VERSION as ATTR_SW_VERSION, CONF_MAC as CONF_MAC, CONF_NAME as CONF_NAME, CONF_PASSWORD as CONF_PASSWORD, CONF_RECIPIENT as CONF_RECIPIENT, CONF_URL as CONF_URL, CONF_USERNAME as CONF_USERNAME, EVENT_HOMEASSISTANT_STOP as EVENT_HOMEASSISTANT_STOP, Platform as Platform
|
7
7
|
from homeassistant.core import HomeAssistant as HomeAssistant, ServiceCall as ServiceCall
|
8
8
|
from homeassistant.exceptions import ConfigEntryAuthFailed as ConfigEntryAuthFailed, ConfigEntryNotReady as ConfigEntryNotReady
|
9
|
-
from homeassistant.helpers import discovery as discovery
|
9
|
+
from homeassistant.helpers import discovery as discovery
|
10
10
|
from homeassistant.helpers.dispatcher import async_dispatcher_connect as async_dispatcher_connect, dispatcher_send as dispatcher_send
|
11
11
|
from homeassistant.helpers.entity import DeviceInfo as DeviceInfo, Entity as Entity
|
12
12
|
from homeassistant.helpers.event import async_track_time_interval as async_track_time_interval
|
@@ -4,7 +4,6 @@ from _typeshed import Incomplete
|
|
4
4
|
from homeassistant.components.device_tracker import ScannerEntity as ScannerEntity, SourceType as SourceType
|
5
5
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
6
6
|
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
7
|
-
from homeassistant.helpers import entity_registry as entity_registry
|
8
7
|
from homeassistant.helpers.dispatcher import async_dispatcher_connect as async_dispatcher_connect
|
9
8
|
from homeassistant.helpers.entity import Entity as Entity
|
10
9
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
@@ -1,16 +1,19 @@
|
|
1
|
-
from .const import DOMAIN as DOMAIN
|
1
|
+
from .const import DOMAIN as DOMAIN
|
2
2
|
from .entity import ISYNodeEntity as ISYNodeEntity, ISYProgramEntity as ISYProgramEntity
|
3
|
+
from .services import SERVICE_DELETE_USER_CODE_SCHEMA as SERVICE_DELETE_USER_CODE_SCHEMA, SERVICE_DELETE_ZWAVE_LOCK_USER_CODE as SERVICE_DELETE_ZWAVE_LOCK_USER_CODE, SERVICE_SET_USER_CODE_SCHEMA as SERVICE_SET_USER_CODE_SCHEMA, SERVICE_SET_ZWAVE_LOCK_USER_CODE as SERVICE_SET_ZWAVE_LOCK_USER_CODE
|
3
4
|
from _typeshed import Incomplete
|
4
5
|
from homeassistant.components.lock import LockEntity as LockEntity
|
5
6
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
6
7
|
from homeassistant.const import Platform as Platform
|
7
|
-
from homeassistant.core import HomeAssistant as HomeAssistant
|
8
|
+
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
9
|
+
from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
|
8
10
|
from homeassistant.helpers.entity import DeviceInfo as DeviceInfo
|
9
|
-
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
11
|
+
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback, async_get_current_platform as async_get_current_platform
|
10
12
|
from typing import Any
|
11
13
|
|
12
14
|
VALUE_TO_STATE: Incomplete
|
13
15
|
|
16
|
+
def async_setup_lock_services(hass: HomeAssistant) -> None: ...
|
14
17
|
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
|
15
18
|
|
16
19
|
class ISYLockEntity(ISYNodeEntity, LockEntity):
|
@@ -18,6 +21,8 @@ class ISYLockEntity(ISYNodeEntity, LockEntity):
|
|
18
21
|
def is_locked(self) -> Union[bool, None]: ...
|
19
22
|
async def async_lock(self, **kwargs: Any) -> None: ...
|
20
23
|
async def async_unlock(self, **kwargs: Any) -> None: ...
|
24
|
+
async def async_set_zwave_lock_user_code(self, user_num: int, code: int) -> None: ...
|
25
|
+
async def async_delete_zwave_lock_user_code(self, user_num: int) -> None: ...
|
21
26
|
|
22
27
|
class ISYLockProgramEntity(ISYProgramEntity, LockEntity):
|
23
28
|
@property
|
@@ -22,8 +22,12 @@ SERVICE_SET_ZWAVE_PARAMETER: str
|
|
22
22
|
SERVICE_RENAME_NODE: str
|
23
23
|
SERVICE_SET_ON_LEVEL: str
|
24
24
|
SERVICE_SET_RAMP_RATE: str
|
25
|
+
SERVICE_SET_ZWAVE_LOCK_USER_CODE: str
|
26
|
+
SERVICE_DELETE_ZWAVE_LOCK_USER_CODE: str
|
25
27
|
CONF_PARAMETER: str
|
26
28
|
CONF_PARAMETERS: str
|
29
|
+
CONF_USER_NUM: str
|
30
|
+
CONF_CODE: str
|
27
31
|
CONF_VALUE: str
|
28
32
|
CONF_INIT: str
|
29
33
|
CONF_ISY: str
|
@@ -43,6 +47,8 @@ SERVICE_SEND_NODE_COMMAND_SCHEMA: Incomplete
|
|
43
47
|
SERVICE_RENAME_NODE_SCHEMA: Incomplete
|
44
48
|
SERVICE_GET_ZWAVE_PARAMETER_SCHEMA: Incomplete
|
45
49
|
SERVICE_SET_ZWAVE_PARAMETER_SCHEMA: Incomplete
|
50
|
+
SERVICE_SET_USER_CODE_SCHEMA: Incomplete
|
51
|
+
SERVICE_DELETE_USER_CODE_SCHEMA: Incomplete
|
46
52
|
SERVICE_SET_VARIABLE_SCHEMA: Incomplete
|
47
53
|
SERVICE_SEND_PROGRAM_COMMAND_SCHEMA: Incomplete
|
48
54
|
SERVICE_RUN_NETWORK_RESOURCE_SCHEMA: Incomplete
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import abc
|
2
|
-
from .const import DOMAIN as DOMAIN, LOGGER as LOGGER
|
2
|
+
from .const import DOMAIN as DOMAIN, LOGGER as LOGGER, USER_APP_NAME as USER_APP_NAME
|
3
3
|
from _typeshed import Incomplete
|
4
4
|
from abc import ABC, abstractmethod
|
5
5
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
@@ -16,8 +16,10 @@ class JellyfinDataUpdateCoordinator(DataUpdateCoordinator[JellyfinDataT], ABC, m
|
|
16
16
|
server_id: Incomplete
|
17
17
|
server_name: Incomplete
|
18
18
|
server_version: Incomplete
|
19
|
+
client_device_id: Incomplete
|
19
20
|
user_id: Incomplete
|
20
|
-
|
21
|
+
session_ids: Incomplete
|
22
|
+
def __init__(self, hass: HomeAssistant, api_client: JellyfinClient, system_info: dict[str, Any], client_device_id: str, user_id: str) -> None: ...
|
21
23
|
async def _async_update_data(self) -> JellyfinDataT: ...
|
22
24
|
@abstractmethod
|
23
25
|
async def _fetch_data(self) -> JellyfinDataT: ...
|
@@ -1,6 +1,6 @@
|
|
1
1
|
from .browse_media import build_item_response as build_item_response, build_root_response as build_root_response
|
2
2
|
from .client_wrapper import get_artwork_url as get_artwork_url
|
3
|
-
from .const import CONTENT_TYPE_MAP as CONTENT_TYPE_MAP, DOMAIN as DOMAIN,
|
3
|
+
from .const import CONTENT_TYPE_MAP as CONTENT_TYPE_MAP, DOMAIN as DOMAIN, LOGGER as LOGGER
|
4
4
|
from .coordinator import JellyfinDataUpdateCoordinator as JellyfinDataUpdateCoordinator
|
5
5
|
from .entity import JellyfinEntity as JellyfinEntity
|
6
6
|
from .models import JellyfinData as JellyfinData
|
@@ -60,7 +60,7 @@ class JellyfinMediaPlayer(JellyfinEntity, MediaPlayerEntity):
|
|
60
60
|
def media_play(self) -> None: ...
|
61
61
|
def media_play_pause(self) -> None: ...
|
62
62
|
def media_stop(self) -> None: ...
|
63
|
-
def play_media(self, media_type: str, media_id: str, **kwargs:
|
63
|
+
def play_media(self, media_type: Union[MediaType, str], media_id: str, **kwargs: Any) -> None: ...
|
64
64
|
def set_volume_level(self, volume: float) -> None: ...
|
65
65
|
def mute_volume(self, mute: bool) -> None: ...
|
66
|
-
async def async_browse_media(self, media_content_type: Union[str, None] = ..., media_content_id: Union[str, None] = ...) -> BrowseMedia: ...
|
66
|
+
async def async_browse_media(self, media_content_type: Union[MediaType, str, None] = ..., media_content_id: Union[str, None] = ...) -> BrowseMedia: ...
|
@@ -1,4 +1,5 @@
|
|
1
1
|
from .const import CONF_KNX_CONNECTION_TYPE as CONF_KNX_CONNECTION_TYPE, CONF_KNX_EXPOSE as CONF_KNX_EXPOSE, CONF_KNX_INDIVIDUAL_ADDRESS as CONF_KNX_INDIVIDUAL_ADDRESS, CONF_KNX_KNXKEY_FILENAME as CONF_KNX_KNXKEY_FILENAME, CONF_KNX_KNXKEY_PASSWORD as CONF_KNX_KNXKEY_PASSWORD, CONF_KNX_LOCAL_IP as CONF_KNX_LOCAL_IP, CONF_KNX_MCAST_GRP as CONF_KNX_MCAST_GRP, CONF_KNX_MCAST_PORT as CONF_KNX_MCAST_PORT, CONF_KNX_RATE_LIMIT as CONF_KNX_RATE_LIMIT, CONF_KNX_ROUTE_BACK as CONF_KNX_ROUTE_BACK, CONF_KNX_ROUTING as CONF_KNX_ROUTING, CONF_KNX_ROUTING_BACKBONE_KEY as CONF_KNX_ROUTING_BACKBONE_KEY, CONF_KNX_ROUTING_SECURE as CONF_KNX_ROUTING_SECURE, CONF_KNX_ROUTING_SYNC_LATENCY_TOLERANCE as CONF_KNX_ROUTING_SYNC_LATENCY_TOLERANCE, CONF_KNX_SECURE_DEVICE_AUTHENTICATION as CONF_KNX_SECURE_DEVICE_AUTHENTICATION, CONF_KNX_SECURE_USER_ID as CONF_KNX_SECURE_USER_ID, CONF_KNX_SECURE_USER_PASSWORD as CONF_KNX_SECURE_USER_PASSWORD, CONF_KNX_STATE_UPDATER as CONF_KNX_STATE_UPDATER, CONF_KNX_TUNNELING as CONF_KNX_TUNNELING, CONF_KNX_TUNNELING_TCP as CONF_KNX_TUNNELING_TCP, CONF_KNX_TUNNELING_TCP_SECURE as CONF_KNX_TUNNELING_TCP_SECURE, DATA_HASS_CONFIG as DATA_HASS_CONFIG, DATA_KNX_CONFIG as DATA_KNX_CONFIG, DOMAIN as DOMAIN, KNX_ADDRESS as KNX_ADDRESS, SUPPORTED_PLATFORMS as SUPPORTED_PLATFORMS
|
2
|
+
from .device import KNXInterfaceDevice as KNXInterfaceDevice
|
2
3
|
from .expose import KNXExposeSensor as KNXExposeSensor, KNXExposeTime as KNXExposeTime, create_knx_exposure as create_knx_exposure
|
3
4
|
from .schema import BinarySensorSchema as BinarySensorSchema, ButtonSchema as ButtonSchema, ClimateSchema as ClimateSchema, CoverSchema as CoverSchema, EventSchema as EventSchema, ExposeSchema as ExposeSchema, FanSchema as FanSchema, LightSchema as LightSchema, NotifySchema as NotifySchema, NumberSchema as NumberSchema, SceneSchema as SceneSchema, SelectSchema as SelectSchema, SensorSchema as SensorSchema, SwitchSchema as SwitchSchema, TextSchema as TextSchema, WeatherSchema as WeatherSchema, ga_validator as ga_validator, sensor_type_validator as sensor_type_validator
|
4
5
|
from _typeshed import Incomplete
|
@@ -46,12 +47,12 @@ class KNXModule:
|
|
46
47
|
exposures: Incomplete
|
47
48
|
service_exposures: Incomplete
|
48
49
|
entry: Incomplete
|
50
|
+
xknx: Incomplete
|
51
|
+
interface_device: Incomplete
|
49
52
|
_address_filter_transcoder: Incomplete
|
50
53
|
_group_address_transcoder: Incomplete
|
51
54
|
_knx_event_callback: Incomplete
|
52
55
|
def __init__(self, hass: HomeAssistant, config: ConfigType, entry: ConfigEntry) -> None: ...
|
53
|
-
xknx: Incomplete
|
54
|
-
def init_xknx(self) -> None: ...
|
55
56
|
async def start(self) -> None: ...
|
56
57
|
async def stop(self, event: Union[Event, None] = ...) -> None: ...
|
57
58
|
def connection_config(self) -> ConnectionConfig: ...
|
@@ -0,0 +1,18 @@
|
|
1
|
+
from .const import DOMAIN as DOMAIN
|
2
|
+
from _typeshed import Incomplete
|
3
|
+
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
4
|
+
from homeassistant.core import HomeAssistant as HomeAssistant
|
5
|
+
from homeassistant.helpers.entity import DeviceInfo as DeviceInfo
|
6
|
+
from xknx import XKNX as XKNX
|
7
|
+
from xknx.core import XknxConnectionState
|
8
|
+
from xknx.io.gateway_scanner import GatewayDescriptor as GatewayDescriptor
|
9
|
+
|
10
|
+
class KNXInterfaceDevice:
|
11
|
+
device_registry: Incomplete
|
12
|
+
gateway_descriptor: Incomplete
|
13
|
+
xknx: Incomplete
|
14
|
+
device: Incomplete
|
15
|
+
device_info: Incomplete
|
16
|
+
def __init__(self, hass: HomeAssistant, entry: ConfigEntry, xknx: XKNX) -> None: ...
|
17
|
+
async def update(self) -> None: ...
|
18
|
+
async def connection_state_changed_cb(self, state: XknxConnectionState) -> None: ...
|
@@ -38,8 +38,8 @@ class KNXLight(KnxEntity, LightEntity):
|
|
38
38
|
@property
|
39
39
|
def color_temp_kelvin(self) -> Union[int, None]: ...
|
40
40
|
@property
|
41
|
-
def color_mode(self) ->
|
41
|
+
def color_mode(self) -> ColorMode: ...
|
42
42
|
@property
|
43
|
-
def supported_color_modes(self) ->
|
43
|
+
def supported_color_modes(self) -> set[ColorMode]: ...
|
44
44
|
async def async_turn_on(self, **kwargs: Any) -> None: ...
|
45
45
|
async def async_turn_off(self, **kwargs: Any) -> None: ...
|
@@ -1,18 +1,34 @@
|
|
1
|
+
from . import KNXModule as KNXModule
|
1
2
|
from .const import ATTR_SOURCE as ATTR_SOURCE, DATA_KNX_CONFIG as DATA_KNX_CONFIG, DOMAIN as DOMAIN
|
2
3
|
from .knx_entity import KnxEntity as KnxEntity
|
3
4
|
from .schema import SensorSchema as SensorSchema
|
4
5
|
from _typeshed import Incomplete
|
6
|
+
from collections.abc import Callable as Callable
|
7
|
+
from datetime import datetime
|
5
8
|
from homeassistant import config_entries as config_entries
|
6
|
-
from homeassistant.components.sensor import CONF_STATE_CLASS as CONF_STATE_CLASS, SensorDeviceClass as SensorDeviceClass, SensorEntity as SensorEntity
|
7
|
-
from homeassistant.const import CONF_DEVICE_CLASS as CONF_DEVICE_CLASS, CONF_ENTITY_CATEGORY as CONF_ENTITY_CATEGORY, CONF_NAME as CONF_NAME, CONF_TYPE as CONF_TYPE, Platform as Platform
|
9
|
+
from homeassistant.components.sensor import CONF_STATE_CLASS as CONF_STATE_CLASS, SensorDeviceClass as SensorDeviceClass, SensorEntity as SensorEntity, SensorEntityDescription as SensorEntityDescription, SensorStateClass as SensorStateClass
|
10
|
+
from homeassistant.const import CONF_DEVICE_CLASS as CONF_DEVICE_CLASS, CONF_ENTITY_CATEGORY as CONF_ENTITY_CATEGORY, CONF_NAME as CONF_NAME, CONF_TYPE as CONF_TYPE, EntityCategory as EntityCategory, Platform as Platform
|
8
11
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
9
12
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
10
13
|
from homeassistant.helpers.typing import ConfigType as ConfigType, StateType as StateType
|
11
14
|
from homeassistant.util.enum import try_parse_enum as try_parse_enum
|
12
15
|
from typing import Any
|
13
16
|
from xknx import XKNX as XKNX
|
17
|
+
from xknx.core.connection_state import XknxConnectionState
|
14
18
|
from xknx.devices import Sensor as XknxSensor
|
15
19
|
|
20
|
+
SCAN_INTERVAL: Incomplete
|
21
|
+
|
22
|
+
class KNXSystemEntityDescription(SensorEntityDescription):
|
23
|
+
always_available: bool
|
24
|
+
entity_category: EntityCategory
|
25
|
+
has_entity_name: bool
|
26
|
+
should_poll: bool
|
27
|
+
value_fn: Callable[[KNXModule], Union[StateType, datetime]]
|
28
|
+
def __init__(self, key, device_class, entity_category, entity_registry_enabled_default, entity_registry_visible_default, force_update, icon, has_entity_name, name, translation_key, unit_of_measurement, last_reset, native_unit_of_measurement, options, state_class, suggested_display_precision, suggested_unit_of_measurement, always_available, should_poll, value_fn) -> None: ...
|
29
|
+
|
30
|
+
SYSTEM_ENTITY_DESCRIPTIONS: Incomplete
|
31
|
+
|
16
32
|
async def async_setup_entry(hass: HomeAssistant, config_entry: config_entries.ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
|
17
33
|
def _create_sensor(xknx: XKNX, config: ConfigType) -> XknxSensor: ...
|
18
34
|
|
@@ -29,3 +45,18 @@ class KNXSensor(KnxEntity, SensorEntity):
|
|
29
45
|
def native_value(self) -> StateType: ...
|
30
46
|
@property
|
31
47
|
def extra_state_attributes(self) -> Union[dict[str, Any], None]: ...
|
48
|
+
|
49
|
+
class KNXSystemSensor(SensorEntity):
|
50
|
+
entity_description: Incomplete
|
51
|
+
knx: Incomplete
|
52
|
+
_attr_device_info: Incomplete
|
53
|
+
_attr_should_poll: Incomplete
|
54
|
+
_attr_unique_id: Incomplete
|
55
|
+
def __init__(self, knx: KNXModule, description: KNXSystemEntityDescription) -> None: ...
|
56
|
+
@property
|
57
|
+
def native_value(self) -> Union[StateType, datetime]: ...
|
58
|
+
@property
|
59
|
+
def available(self) -> bool: ...
|
60
|
+
async def after_update_callback(self, _: XknxConnectionState) -> None: ...
|
61
|
+
async def async_added_to_hass(self) -> None: ...
|
62
|
+
async def async_will_remove_from_hass(self) -> None: ...
|
@@ -4,7 +4,6 @@ from _typeshed import Incomplete
|
|
4
4
|
from homeassistant.components.sensor import SensorEntity as SensorEntity, SensorStateClass as SensorStateClass
|
5
5
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
6
6
|
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
7
|
-
from homeassistant.helpers import device_registry as device_registry
|
8
7
|
from homeassistant.helpers.dispatcher import async_dispatcher_connect as async_dispatcher_connect
|
9
8
|
from homeassistant.helpers.entity import DeviceInfo as DeviceInfo
|
10
9
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
@@ -3,10 +3,9 @@ from .coordinator import LaMetricDataUpdateCoordinator as LaMetricDataUpdateCoor
|
|
3
3
|
from .services import async_setup_services as async_setup_services
|
4
4
|
from _typeshed import Incomplete
|
5
5
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
6
|
-
from homeassistant.const import
|
6
|
+
from homeassistant.const import CONF_NAME as CONF_NAME, Platform as Platform
|
7
7
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
8
8
|
from homeassistant.helpers import discovery as discovery
|
9
|
-
from homeassistant.helpers.issue_registry import IssueSeverity as IssueSeverity, async_create_issue as async_create_issue
|
10
9
|
from homeassistant.helpers.typing import ConfigType as ConfigType
|
11
10
|
|
12
11
|
CONFIG_SCHEMA: Incomplete
|
@@ -8,8 +8,8 @@ from _typeshed import Incomplete
|
|
8
8
|
from aiolifx.aiolifx import Light as Light
|
9
9
|
from collections.abc import Iterable
|
10
10
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
11
|
-
from homeassistant.const import CONF_HOST as CONF_HOST, CONF_PORT as CONF_PORT, EVENT_HOMEASSISTANT_STARTED as EVENT_HOMEASSISTANT_STARTED,
|
12
|
-
from homeassistant.core import CALLBACK_TYPE as CALLBACK_TYPE,
|
11
|
+
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
|
+
from homeassistant.core import CALLBACK_TYPE as CALLBACK_TYPE, HomeAssistant as HomeAssistant, callback as callback
|
13
13
|
from homeassistant.exceptions import ConfigEntryNotReady as ConfigEntryNotReady
|
14
14
|
from homeassistant.helpers.event import async_call_later as async_call_later, async_track_time_interval as async_track_time_interval
|
15
15
|
from homeassistant.helpers.typing import ConfigType as ConfigType
|
@@ -2,7 +2,7 @@ from . import ATTR_BRIGHTNESS_PCT as ATTR_BRIGHTNESS_PCT, ATTR_RGB_COLOR as ATTR
|
|
2
2
|
from _typeshed import Incomplete
|
3
3
|
from homeassistant.const import ATTR_ENTITY_ID as ATTR_ENTITY_ID, SERVICE_TURN_ON as SERVICE_TURN_ON
|
4
4
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
5
|
-
from homeassistant.helpers import
|
5
|
+
from homeassistant.helpers import intent as intent
|
6
6
|
|
7
7
|
_LOGGER: Incomplete
|
8
8
|
INTENT_SET: str
|
@@ -0,0 +1,14 @@
|
|
1
|
+
from .const import CONF_EXCLUDE_NAMES as CONF_EXCLUDE_NAMES, CONF_INCLUDE_SWITCHES as CONF_INCLUDE_SWITCHES, DOMAIN as DOMAIN, PLATFORMS as PLATFORMS
|
2
|
+
from _typeshed import Incomplete
|
3
|
+
from homeassistant.config_entries import ConfigEntry as ConfigEntry, SOURCE_IMPORT as SOURCE_IMPORT
|
4
|
+
from homeassistant.const import CONF_PORT as CONF_PORT, EVENT_HOMEASSISTANT_STOP as EVENT_HOMEASSISTANT_STOP
|
5
|
+
from homeassistant.core import Event as Event, HomeAssistant as HomeAssistant
|
6
|
+
from homeassistant.exceptions import ConfigEntryNotReady as ConfigEntryNotReady
|
7
|
+
from homeassistant.helpers.typing import ConfigType as ConfigType
|
8
|
+
|
9
|
+
_LOGGER: Incomplete
|
10
|
+
CONFIG_SCHEMA: Incomplete
|
11
|
+
|
12
|
+
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: ...
|
13
|
+
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: ...
|
14
|
+
async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: ...
|
@@ -0,0 +1,18 @@
|
|
1
|
+
from .const import CONF_DEFAULT_TRANSITION as CONF_DEFAULT_TRANSITION, DOMAIN as DOMAIN
|
2
|
+
from _typeshed import Incomplete
|
3
|
+
from homeassistant import config_entries as config_entries
|
4
|
+
from homeassistant.const import CONF_PORT as CONF_PORT
|
5
|
+
from homeassistant.core import callback as callback
|
6
|
+
from homeassistant.data_entry_flow import FlowResult as FlowResult
|
7
|
+
from typing import Any
|
8
|
+
|
9
|
+
class LiteJetOptionsFlow(config_entries.OptionsFlow):
|
10
|
+
config_entry: Incomplete
|
11
|
+
def __init__(self, config_entry: config_entries.ConfigEntry) -> None: ...
|
12
|
+
async def async_step_init(self, user_input: Union[dict[str, Any], None] = ...) -> FlowResult: ...
|
13
|
+
|
14
|
+
class LiteJetConfigFlow(config_entries.ConfigFlow):
|
15
|
+
async def async_step_user(self, user_input: Union[dict[str, Any], None] = ...) -> FlowResult: ...
|
16
|
+
async def async_step_import(self, import_data: dict[str, Any]) -> FlowResult: ...
|
17
|
+
@staticmethod
|
18
|
+
def async_get_options_flow(config_entry: config_entries.ConfigEntry) -> LiteJetOptionsFlow: ...
|
@@ -0,0 +1,7 @@
|
|
1
|
+
from .const import DOMAIN as DOMAIN
|
2
|
+
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
3
|
+
from homeassistant.core import HomeAssistant as HomeAssistant
|
4
|
+
from pylitejet import LiteJet as LiteJet
|
5
|
+
from typing import Any
|
6
|
+
|
7
|
+
async def async_get_config_entry_diagnostics(hass: HomeAssistant, entry: ConfigEntry) -> dict[str, Any]: ...
|
@@ -0,0 +1,39 @@
|
|
1
|
+
from .const import CONF_DEFAULT_TRANSITION as CONF_DEFAULT_TRANSITION, DOMAIN as DOMAIN
|
2
|
+
from _typeshed import Incomplete
|
3
|
+
from homeassistant.components.light import ATTR_BRIGHTNESS as ATTR_BRIGHTNESS, ATTR_TRANSITION as ATTR_TRANSITION, ColorMode as ColorMode, LightEntity as LightEntity, LightEntityFeature as LightEntityFeature
|
4
|
+
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
5
|
+
from homeassistant.core import HomeAssistant as HomeAssistant
|
6
|
+
from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
|
7
|
+
from homeassistant.helpers.entity import DeviceInfo as DeviceInfo
|
8
|
+
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
9
|
+
from pylitejet import LiteJet as LiteJet
|
10
|
+
from typing import Any
|
11
|
+
|
12
|
+
ATTR_NUMBER: str
|
13
|
+
|
14
|
+
async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
|
15
|
+
|
16
|
+
class LiteJetLight(LightEntity):
|
17
|
+
_attr_color_mode: Incomplete
|
18
|
+
_attr_should_poll: bool
|
19
|
+
_attr_supported_color_modes: Incomplete
|
20
|
+
_attr_supported_features: Incomplete
|
21
|
+
_attr_has_entity_name: bool
|
22
|
+
_attr_name: Incomplete
|
23
|
+
_config_entry: Incomplete
|
24
|
+
_lj: Incomplete
|
25
|
+
_index: Incomplete
|
26
|
+
_attr_brightness: int
|
27
|
+
_attr_is_on: bool
|
28
|
+
_attr_unique_id: Incomplete
|
29
|
+
_attr_extra_state_attributes: Incomplete
|
30
|
+
_attr_device_info: Incomplete
|
31
|
+
def __init__(self, config_entry: ConfigEntry, system: LiteJet, index: int, name: str) -> None: ...
|
32
|
+
async def async_added_to_hass(self) -> None: ...
|
33
|
+
async def async_will_remove_from_hass(self) -> None: ...
|
34
|
+
def _on_load_changed(self, level: Union[int, None]) -> None: ...
|
35
|
+
def _on_connected_changed(self, connected: bool, reason: str) -> None: ...
|
36
|
+
async def async_turn_on(self, **kwargs: Any) -> None: ...
|
37
|
+
async def async_turn_off(self, **kwargs: Any) -> None: ...
|
38
|
+
_attr_available: Incomplete
|
39
|
+
async def async_update(self) -> None: ...
|
@@ -0,0 +1,32 @@
|
|
1
|
+
from .const import DOMAIN as DOMAIN
|
2
|
+
from _typeshed import Incomplete
|
3
|
+
from homeassistant.components.scene import Scene as Scene
|
4
|
+
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
5
|
+
from homeassistant.core import HomeAssistant as HomeAssistant
|
6
|
+
from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
|
7
|
+
from homeassistant.helpers.entity import DeviceInfo as DeviceInfo
|
8
|
+
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
9
|
+
from pylitejet import LiteJet as LiteJet
|
10
|
+
from typing import Any
|
11
|
+
|
12
|
+
_LOGGER: Incomplete
|
13
|
+
ATTR_NUMBER: str
|
14
|
+
|
15
|
+
async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
|
16
|
+
|
17
|
+
class LiteJetScene(Scene):
|
18
|
+
_attr_has_entity_name: bool
|
19
|
+
_attr_entity_registry_enabled_default: bool
|
20
|
+
_lj: Incomplete
|
21
|
+
_index: Incomplete
|
22
|
+
_attr_unique_id: Incomplete
|
23
|
+
_attr_name: Incomplete
|
24
|
+
_attr_device_info: Incomplete
|
25
|
+
def __init__(self, entry_id: str, system: LiteJet, i: int, name: str) -> None: ...
|
26
|
+
async def async_added_to_hass(self) -> None: ...
|
27
|
+
async def async_will_remove_from_hass(self) -> None: ...
|
28
|
+
_attr_available: Incomplete
|
29
|
+
def _on_connected_changed(self, connected: bool, reason: str) -> None: ...
|
30
|
+
@property
|
31
|
+
def extra_state_attributes(self) -> dict[str, Any]: ...
|
32
|
+
async def async_activate(self, **kwargs: Any) -> None: ...
|
@@ -0,0 +1,37 @@
|
|
1
|
+
from .const import DOMAIN as DOMAIN
|
2
|
+
from _typeshed import Incomplete
|
3
|
+
from homeassistant.components.switch import SwitchDeviceClass as SwitchDeviceClass, SwitchEntity as SwitchEntity
|
4
|
+
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
5
|
+
from homeassistant.core import HomeAssistant as HomeAssistant
|
6
|
+
from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
|
7
|
+
from homeassistant.helpers.entity import DeviceInfo as DeviceInfo
|
8
|
+
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
9
|
+
from pylitejet import LiteJet as LiteJet
|
10
|
+
from typing import Any
|
11
|
+
|
12
|
+
ATTR_NUMBER: str
|
13
|
+
|
14
|
+
async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
|
15
|
+
|
16
|
+
class LiteJetSwitch(SwitchEntity):
|
17
|
+
_attr_should_poll: bool
|
18
|
+
_attr_has_entity_name: bool
|
19
|
+
_attr_entity_registry_enabled_default: bool
|
20
|
+
_attr_device_class: Incomplete
|
21
|
+
_lj: Incomplete
|
22
|
+
_index: Incomplete
|
23
|
+
_attr_is_on: bool
|
24
|
+
_attr_unique_id: Incomplete
|
25
|
+
_attr_name: Incomplete
|
26
|
+
_attr_device_info: Incomplete
|
27
|
+
def __init__(self, entry_id: str, system: LiteJet, i: int, name: str) -> None: ...
|
28
|
+
async def async_added_to_hass(self) -> None: ...
|
29
|
+
async def async_will_remove_from_hass(self) -> None: ...
|
30
|
+
def _on_switch_pressed(self) -> None: ...
|
31
|
+
def _on_switch_released(self) -> None: ...
|
32
|
+
_attr_available: Incomplete
|
33
|
+
def _on_connected_changed(self, connected: bool, reason: str) -> None: ...
|
34
|
+
@property
|
35
|
+
def extra_state_attributes(self) -> dict[str, Any]: ...
|
36
|
+
async def async_turn_on(self, **kwargs: Any) -> None: ...
|
37
|
+
async def async_turn_off(self, **kwargs: Any) -> None: ...
|