From 3c396ac4dc50c7c350861310bc680e3a32265b8c Mon Sep 17 00:00:00 2001 From: Jonathan Adams <813248+jonathanadams@users.noreply.github.com> Date: Tue, 8 Sep 2020 13:17:18 +0100 Subject: [PATCH 01/41] :fire: Remove old config files --- .HA_VERSION | 1 - .gitignore | 36 - .travis.yml | 23 - LICENSE | 21 - .../areas/bathroom/climate.bathroom.yaml | 8 - .../alexa/areas/hallway/climate.hallway.yaml | 8 - .../alexa/areas/kitchen/climate.kitchen.yaml | 8 - .../areas/kitchen/light.kitchen_table.yaml | 8 - .../living_room/climate.living_room.yaml | 8 - .../light.living_room_left_lamp.yaml | 8 - .../light.living_room_right_lamp.yaml | 8 - .../light.living_room_tall_lamp.yaml | 8 - .../climate.master_bedroom.yaml | 8 - ...light.master_bedroom_jon_bedside_lamp.yaml | 8 - ...light.master_bedroom_lee_bedside_lamp.yaml | 8 - .../alexa/areas/office/climate.office.yaml | 8 - .../areas/spare_room/climate.spare_room.yaml | 8 - automations.yaml | 1 - .../bedside_lamp_toggle.yaml | 16 - .../bedside_lamp_toggle.yaml | 16 - automations/system/auto_snapshot.yaml | 16 - .../system/travis_update_ha_config.yaml | 16 - configuration.yaml | 3 - .../alexa_media/.translations/de.json | 54 - .../alexa_media/.translations/en.json | 56 - .../alexa_media/.translations/it.json | 54 - .../alexa_media/.translations/nl.json | 54 - .../alexa_media/.translations/pl.json | 54 - custom_components/alexa_media/__init__.py | 1064 ---------------- .../__pycache__/__init__.cpython-37.pyc | Bin 23707 -> 0 bytes .../alarm_control_panel.cpython-37.pyc | Bin 8136 -> 0 bytes .../__pycache__/config_flow.cpython-37.pyc | Bin 9030 -> 0 bytes .../__pycache__/const.cpython-37.pyc | Bin 1450 -> 0 bytes .../__pycache__/helpers.cpython-37.pyc | Bin 4769 -> 0 bytes .../__pycache__/media_player.cpython-37.pyc | Bin 27735 -> 0 bytes .../__pycache__/notify.cpython-37.pyc | Bin 5665 -> 0 bytes .../__pycache__/sensor.cpython-37.pyc | Bin 13674 -> 0 bytes .../__pycache__/switch.cpython-37.pyc | Bin 9969 -> 0 bytes .../alexa_media/alarm_control_panel.py | 298 ----- custom_components/alexa_media/config_flow.py | 378 ------ custom_components/alexa_media/const.py | 46 - custom_components/alexa_media/helpers.py | 186 --- custom_components/alexa_media/manifest.json | 15 - custom_components/alexa_media/media_player.py | 1084 ----------------- custom_components/alexa_media/notify.py | 198 --- custom_components/alexa_media/sensor.py | 495 -------- custom_components/alexa_media/services.yaml | 29 - custom_components/alexa_media/strings.json | 56 - custom_components/alexa_media/switch.py | 355 ------ .../garbage_collection/.translations/cs.json | 157 --- .../garbage_collection/.translations/en.json | 155 --- .../garbage_collection/.translations/es.json | 155 --- .../garbage_collection/.translations/fr.json | 149 --- .../garbage_collection/.translations/it.json | 149 --- .../.translations/sensor.cs.json | 6 - .../.translations/sensor.de.json | 6 - .../.translations/sensor.en.json | 6 - .../.translations/sensor.es.json | 6 - .../.translations/sensor.fr.json | 6 - .../.translations/sensor.it.json | 6 - .../.translations/sensor.nl.json | 6 - .../garbage_collection/__init__.py | 101 -- .../__pycache__/__init__.cpython-37.pyc | Bin 2590 -> 0 bytes .../__pycache__/config_flow.cpython-37.pyc | Bin 16446 -> 0 bytes .../__pycache__/const.cpython-37.pyc | Bin 4410 -> 0 bytes .../__pycache__/sensor.cpython-37.pyc | Bin 13052 -> 0 bytes .../garbage_collection/config_flow.py | 866 ------------- custom_components/garbage_collection/const.py | 227 ---- .../garbage_collection/manifest.json | 20 - .../garbage_collection/sensor.py | 496 -------- custom_components/hacs/.translations/da.json | 191 --- custom_components/hacs/.translations/de.json | 199 --- custom_components/hacs/.translations/el.json | 186 --- custom_components/hacs/.translations/en.json | 199 --- custom_components/hacs/.translations/es.json | 198 --- custom_components/hacs/.translations/fr.json | 198 --- custom_components/hacs/.translations/hu.json | 194 --- custom_components/hacs/.translations/it.json | 198 --- custom_components/hacs/.translations/nb.json | 197 --- custom_components/hacs/.translations/nl.json | 197 --- custom_components/hacs/.translations/nn.json | 198 --- custom_components/hacs/.translations/pl.json | 198 --- .../hacs/.translations/pt-BR.json | 182 --- custom_components/hacs/.translations/ro.json | 176 --- custom_components/hacs/.translations/ru.json | 193 --- custom_components/hacs/.translations/sl.json | 198 --- custom_components/hacs/.translations/sv.json | 188 --- .../hacs/.translations/zh-Hans.json | 198 --- custom_components/hacs/__init__.py | 224 ---- .../hacs/__pycache__/__init__.cpython-37.pyc | Bin 6129 -> 0 bytes .../__pycache__/config_flow.cpython-37.pyc | Bin 4016 -> 0 bytes .../configuration_schema.cpython-37.pyc | Bin 1874 -> 0 bytes .../hacs/__pycache__/const.cpython-37.pyc | Bin 3235 -> 0 bytes .../__pycache__/constrains.cpython-37.pyc | Bin 2425 -> 0 bytes .../hacs/__pycache__/globals.cpython-37.pyc | Bin 1089 -> 0 bytes .../hacs/__pycache__/http.cpython-37.pyc | Bin 2895 -> 0 bytes .../hacs/__pycache__/sensor.cpython-37.pyc | Bin 3197 -> 0 bytes .../hacs/__pycache__/setup.cpython-37.pyc | Bin 3130 -> 0 bytes .../hacs/__pycache__/store.cpython-37.pyc | Bin 909 -> 0 bytes .../ws_api_handlers.cpython-37.pyc | Bin 8698 -> 0 bytes custom_components/hacs/config_flow.py | 102 -- .../hacs/configuration_schema.py | 73 -- custom_components/hacs/const.py | 293 ----- custom_components/hacs/constrains.py | 99 -- custom_components/hacs/globals.py | 29 - custom_components/hacs/hacsbase/__init__.py | 355 ------ .../__pycache__/__init__.cpython-37.pyc | Bin 10796 -> 0 bytes .../__pycache__/backup.cpython-37.pyc | Bin 3631 -> 0 bytes .../__pycache__/configuration.cpython-37.pyc | Bin 2409 -> 0 bytes .../hacsbase/__pycache__/const.cpython-37.pyc | Bin 530 -> 0 bytes .../hacsbase/__pycache__/data.cpython-37.pyc | Bin 4265 -> 0 bytes .../__pycache__/exceptions.cpython-37.pyc | Bin 546 -> 0 bytes .../__pycache__/task_factory.cpython-37.pyc | Bin 2564 -> 0 bytes custom_components/hacs/hacsbase/backup.py | 117 -- .../hacs/hacsbase/configuration.py | 73 -- custom_components/hacs/hacsbase/const.py | 10 - custom_components/hacs/hacsbase/data.py | 152 --- custom_components/hacs/hacsbase/exceptions.py | 9 - .../hacs/hacsbase/task_factory.py | 75 -- custom_components/hacs/handler/__init__.py | 1 - .../__pycache__/__init__.cpython-37.pyc | Bin 169 -> 0 bytes .../__pycache__/download.cpython-37.pyc | Bin 2115 -> 0 bytes .../__pycache__/template.cpython-37.pyc | Bin 849 -> 0 bytes custom_components/hacs/handler/download.py | 90 -- custom_components/hacs/handler/template.py | 29 - .../__pycache__/download.cpython-37.pyc | Bin 4121 -> 0 bytes .../__pycache__/filters.cpython-37.pyc | Bin 1274 -> 0 bytes .../__pycache__/get_defaults.cpython-37.pyc | Bin 1399 -> 0 bytes .../__pycache__/information.cpython-37.pyc | Bin 5163 -> 0 bytes .../__pycache__/install.cpython-37.pyc | Bin 3194 -> 0 bytes .../helpers/__pycache__/misc.cpython-37.pyc | Bin 980 -> 0 bytes .../__pycache__/network.cpython-37.pyc | Bin 431 -> 0 bytes .../register_repository.cpython-37.pyc | Bin 1455 -> 0 bytes .../validate_repository.cpython-37.pyc | Bin 2498 -> 0 bytes custom_components/hacs/helpers/download.py | 181 --- custom_components/hacs/helpers/filters.py | 55 - .../hacs/helpers/get_defaults.py | 44 - custom_components/hacs/helpers/information.py | 184 --- custom_components/hacs/helpers/install.py | 128 -- custom_components/hacs/helpers/misc.py | 30 - custom_components/hacs/helpers/network.py | 8 - .../hacs/helpers/register_repository.py | 49 - .../hacs/helpers/validate_repository.py | 90 -- custom_components/hacs/http.py | 83 -- custom_components/hacs/iconset.js | 34 - custom_components/hacs/manifest.json | 24 - .../hacs/repositories/__init__.py | 16 - .../__pycache__/__init__.cpython-37.pyc | Bin 796 -> 0 bytes .../__pycache__/appdaemon.cpython-37.pyc | Bin 2631 -> 0 bytes .../__pycache__/integration.cpython-37.pyc | Bin 3217 -> 0 bytes .../__pycache__/manifest.cpython-37.pyc | Bin 1366 -> 0 bytes .../__pycache__/netdaemon.cpython-37.pyc | Bin 2650 -> 0 bytes .../__pycache__/plugin.cpython-37.pyc | Bin 3095 -> 0 bytes .../__pycache__/python_script.cpython-37.pyc | Bin 2440 -> 0 bytes .../__pycache__/removed.cpython-37.pyc | Bin 829 -> 0 bytes .../__pycache__/repository.cpython-37.pyc | Bin 11706 -> 0 bytes .../__pycache__/repositorydata.cpython-37.pyc | Bin 2578 -> 0 bytes .../__pycache__/theme.cpython-37.pyc | Bin 2335 -> 0 bytes .../hacs/repositories/appdaemon.py | 85 -- .../hacs/repositories/integration.py | 93 -- .../hacs/repositories/manifest.py | 42 - .../hacs/repositories/netdaemon.py | 90 -- custom_components/hacs/repositories/plugin.py | 107 -- .../hacs/repositories/python_script.py | 87 -- .../hacs/repositories/removed.py | 17 - .../hacs/repositories/repository.py | 424 ------- .../hacs/repositories/repositorydata.py | 82 -- custom_components/hacs/repositories/theme.py | 72 -- custom_components/hacs/sensor.py | 96 -- custom_components/hacs/services.yaml | 15 - custom_components/hacs/setup.py | 110 -- custom_components/hacs/store.py | 19 - custom_components/hacs/ws_api_handlers.py | 379 ------ customisations/domains/.gitkeep | 0 customisations/entities/.gitkeep | 0 customisations/globs/.gitkeep | 0 docs/README.md | 8 - .../binary_sensors/hikvision_nvr.yaml.disable | 5 - entities/binary_sensors/ring.yaml | 7 - entities/device_trackers/.gitkeep | 0 entities/groups/.gitkeep | 0 .../alarm_arming_state_notifications.yaml | 6 - .../alarm_sounding_notifications.yaml | 6 - .../alarm_sounding_sms_notification.yaml | 6 - entities/input_booleans/away_mode.yaml | 7 - .../garden_decking_timer_automation.yaml | 6 - entities/input_booleans/guest_mode.yaml | 7 - .../input_booleans/porch_lighting_timer.yaml | 6 - entities/input_datetime/.gitkeep | 0 entities/input_selects/.gitkeep | 0 entities/lights/living_room_all_lamps.yaml | 10 - entities/lights/living_room_all_lights.yaml | 9 - entities/lights/living_room_wall_lights.yaml | 9 - entities/lights/master_bedroom_all_lamps.yaml | 9 - .../lights/master_bedroom_all_lights.yaml | 8 - entities/lights/office_all_lamps.yaml | 9 - entities/lights/office_all_lights.yaml | 9 - .../living_room_sony_bravia_tv.yaml | 7 - .../living_room_yamaha_amplifier.yaml | 26 - entities/notify/family.yaml | 8 - entities/notify/jon_devices.yaml | 8 - entities/notify/lee_devices.yaml | 8 - entities/notify/living_room_tv.yaml | 6 - entities/notify/sms_notification.yaml | 6 - entities/persons/jon.yaml | 6 - entities/persons/lee.yaml | 6 - .../sensors/bathroom_radiator_faults.yaml | 25 - entities/sensors/hallway_radiator_faults.yaml | 25 - entities/sensors/kitchen_radiator_faults.yaml | 25 - .../sensors/living_room_radiator_faults.yaml | 25 - .../master_bedroom_radiator_faults.yaml | 25 - entities/sensors/office_radiator_faults.yaml | 25 - entities/sensors/ring.yaml | 6 - .../sensors/spare_room_radiator_faults.yaml | 25 - entities/sensors/travisci.yaml | 9 - .../sensors/version_avaliable.yaml.disable | 8 - entities/sensors/version_current.yaml.disable | 7 - entities/switches/.gitkeep | 0 entities/weather/darksky.yaml | 10 - entities/zones/home.yaml | 10 - entities/zones/home_ringfence.yaml | 10 - esphome/.gitignore | 10 - esphome/alarm_system_status.yaml | 67 - esphome/christmas_2.yaml | 68 -- esphome/dishwasher.yaml | 161 --- esphome/garden_decking_lights.yaml | 50 - esphome/landing_ceiling_light.yaml | 56 - esphome/living_room_air_freshener.yaml | 68 -- esphome/living_room_left_lamp.yaml | 51 - esphome/living_room_right_lamp.yaml | 50 - esphome/master_bedroom_jon_lamp.yaml | 50 - esphome/office_ceiling_light.yaml | 56 - esphome/porch_ceiling_light.yaml | 56 - esphome/spare_bedroom_lamp.yaml | 65 - esphome/spare_room_ceiling_light.yaml | 56 - esphome/test_energy_monitor_plug.yaml | 153 --- esphome/tumble_dryer.yaml | 162 --- esphome/upstairs_air_freshener.yaml | 68 -- esphome/washing_machine.yaml | 162 --- integrations/automation.yaml | 6 - integrations/binary_sensor.yaml | 5 - integrations/camera.yaml | 5 - integrations/cloud.yaml | 14 - integrations/config.yaml | 5 - integrations/device_tracker.yaml | 5 - integrations/discovery.yaml | 5 - integrations/evohome.yaml | 8 - integrations/frontend.yaml | 16 - integrations/garbage_collection.yaml | 27 - integrations/group.yaml | 5 - integrations/hassio.yaml | 6 - integrations/history.yaml | 5 - integrations/homeassistant.yaml | 23 - integrations/http.yaml | 27 - integrations/hue.yaml | 9 - integrations/influxdb.yaml.disable | 11 - integrations/input_boolean.yaml | 5 - integrations/input_datetime.yaml | 5 - integrations/input_number.yaml | 5 - integrations/input_select.yaml | 5 - integrations/input_text.yaml | 5 - integrations/ios.yaml | 6 - integrations/light.yaml | 5 - integrations/logbook.yaml | 5 - integrations/logger.yaml.disable | 8 - integrations/lovelace.yaml | 5 - integrations/map.yaml | 5 - integrations/media_player.yaml | 5 - integrations/mobile_app.yaml | 5 - integrations/notify.yaml | 6 - integrations/person.yaml | 5 - integrations/recorder.yaml | 10 - integrations/ring.yaml | 9 - integrations/scene.yaml | 7 - integrations/script.yaml | 5 - integrations/sensor.yaml | 5 - integrations/sun.yaml | 7 - integrations/switch.yaml | 5 - integrations/system_health.yaml | 5 - integrations/tradfri.yaml.disable | 8 - integrations/twilio.yaml | 7 - integrations/updater.yaml | 13 - integrations/weather.yaml | 5 - integrations/zone.yaml | 5 - scenes.yaml | 278 ----- scenes/.gitkeep | 0 scripts/.gitkeep | 0 secrets_dummy.yaml | 76 -- themes/.gitkeep | 0 www/community/custom-header/custom-header.js | 145 --- .../custom-header/custom-header.js.gz | Bin 53973 -> 0 bytes .../lovelace-card-tools/card-tools.js | 1 - .../lovelace-card-tools/card-tools.js.gz | Bin 5378 -> 0 bytes .../lovelace-card-tools/webpack.config.js | 10 - .../lovelace-card-tools/webpack.config.js.gz | Bin 173 -> 0 bytes .../fold-entity-row.js | 46 - .../fold-entity-row.js.gz | Bin 2834 -> 0 bytes .../webpack.config.js | 10 - .../webpack.config.js.gz | Bin 177 -> 0 bytes .../slider-entity-row.js | 56 - .../slider-entity-row.js.gz | Bin 2803 -> 0 bytes .../webpack.config.js | 10 - .../webpack.config.js.gz | Bin 178 -> 0 bytes .../template-entity-row.js | 32 - .../template-entity-row.js.gz | Bin 2371 -> 0 bytes .../webpack.config.js | 10 - .../webpack.config.js.gz | Bin 179 -> 0 bytes .../mini-media-player-bundle.js | 1 - .../mini-media-player-bundle.js.gz | Bin 22327 -> 0 bytes www/community/rgb-light-card/card.js | 200 --- www/community/rgb-light-card/card.js.gz | Bin 2456 -> 0 bytes .../secondaryinfo-entity-row.js | 57 - .../secondaryinfo-entity-row.js.gz | Bin 778 -> 0 bytes .../simple-thermostat/simple-thermostat.js | 1 - .../simple-thermostat/simple-thermostat.js.gz | Bin 13743 -> 0 bytes .../vertical-stack-in-card.js | 176 --- .../vertical-stack-in-card.js.gz | Bin 1582 -> 0 bytes www/images/jon-bw.jpg | Bin 53245 -> 0 bytes www/images/jon.jpg | Bin 56329 -> 0 bytes www/images/lee-bw.jpg | Bin 366247 -> 0 bytes www/images/lee.jpg | Bin 395372 -> 0 bytes 321 files changed, 18423 deletions(-) delete mode 100644 .HA_VERSION delete mode 100644 .gitignore delete mode 100644 .travis.yml delete mode 100644 LICENSE delete mode 100644 assistants/alexa/areas/bathroom/climate.bathroom.yaml delete mode 100644 assistants/alexa/areas/hallway/climate.hallway.yaml delete mode 100644 assistants/alexa/areas/kitchen/climate.kitchen.yaml delete mode 100644 assistants/alexa/areas/kitchen/light.kitchen_table.yaml delete mode 100644 assistants/alexa/areas/living_room/climate.living_room.yaml delete mode 100644 assistants/alexa/areas/living_room/light.living_room_left_lamp.yaml delete mode 100644 assistants/alexa/areas/living_room/light.living_room_right_lamp.yaml delete mode 100644 assistants/alexa/areas/living_room/light.living_room_tall_lamp.yaml delete mode 100644 assistants/alexa/areas/master_bedroom/climate.master_bedroom.yaml delete mode 100644 assistants/alexa/areas/master_bedroom/light.master_bedroom_jon_bedside_lamp.yaml delete mode 100644 assistants/alexa/areas/master_bedroom/light.master_bedroom_lee_bedside_lamp.yaml delete mode 100644 assistants/alexa/areas/office/climate.office.yaml delete mode 100644 assistants/alexa/areas/spare_room/climate.spare_room.yaml delete mode 100644 automations.yaml delete mode 100644 automations/areas/master_bedroom/jon_bedside_remote/bedside_lamp_toggle.yaml delete mode 100644 automations/areas/master_bedroom/lee_bedside_remote/bedside_lamp_toggle.yaml delete mode 100644 automations/system/auto_snapshot.yaml delete mode 100644 automations/system/travis_update_ha_config.yaml delete mode 100644 configuration.yaml delete mode 100644 custom_components/alexa_media/.translations/de.json delete mode 100644 custom_components/alexa_media/.translations/en.json delete mode 100644 custom_components/alexa_media/.translations/it.json delete mode 100644 custom_components/alexa_media/.translations/nl.json delete mode 100644 custom_components/alexa_media/.translations/pl.json delete mode 100644 custom_components/alexa_media/__init__.py delete mode 100644 custom_components/alexa_media/__pycache__/__init__.cpython-37.pyc delete mode 100644 custom_components/alexa_media/__pycache__/alarm_control_panel.cpython-37.pyc delete mode 100644 custom_components/alexa_media/__pycache__/config_flow.cpython-37.pyc delete mode 100644 custom_components/alexa_media/__pycache__/const.cpython-37.pyc delete mode 100644 custom_components/alexa_media/__pycache__/helpers.cpython-37.pyc delete mode 100644 custom_components/alexa_media/__pycache__/media_player.cpython-37.pyc delete mode 100644 custom_components/alexa_media/__pycache__/notify.cpython-37.pyc delete mode 100644 custom_components/alexa_media/__pycache__/sensor.cpython-37.pyc delete mode 100644 custom_components/alexa_media/__pycache__/switch.cpython-37.pyc delete mode 100644 custom_components/alexa_media/alarm_control_panel.py delete mode 100644 custom_components/alexa_media/config_flow.py delete mode 100644 custom_components/alexa_media/const.py delete mode 100644 custom_components/alexa_media/helpers.py delete mode 100644 custom_components/alexa_media/manifest.json delete mode 100644 custom_components/alexa_media/media_player.py delete mode 100644 custom_components/alexa_media/notify.py delete mode 100644 custom_components/alexa_media/sensor.py delete mode 100644 custom_components/alexa_media/services.yaml delete mode 100644 custom_components/alexa_media/strings.json delete mode 100644 custom_components/alexa_media/switch.py delete mode 100644 custom_components/garbage_collection/.translations/cs.json delete mode 100644 custom_components/garbage_collection/.translations/en.json delete mode 100644 custom_components/garbage_collection/.translations/es.json delete mode 100644 custom_components/garbage_collection/.translations/fr.json delete mode 100644 custom_components/garbage_collection/.translations/it.json delete mode 100644 custom_components/garbage_collection/.translations/sensor.cs.json delete mode 100644 custom_components/garbage_collection/.translations/sensor.de.json delete mode 100644 custom_components/garbage_collection/.translations/sensor.en.json delete mode 100644 custom_components/garbage_collection/.translations/sensor.es.json delete mode 100644 custom_components/garbage_collection/.translations/sensor.fr.json delete mode 100644 custom_components/garbage_collection/.translations/sensor.it.json delete mode 100644 custom_components/garbage_collection/.translations/sensor.nl.json delete mode 100644 custom_components/garbage_collection/__init__.py delete mode 100644 custom_components/garbage_collection/__pycache__/__init__.cpython-37.pyc delete mode 100644 custom_components/garbage_collection/__pycache__/config_flow.cpython-37.pyc delete mode 100644 custom_components/garbage_collection/__pycache__/const.cpython-37.pyc delete mode 100644 custom_components/garbage_collection/__pycache__/sensor.cpython-37.pyc delete mode 100644 custom_components/garbage_collection/config_flow.py delete mode 100644 custom_components/garbage_collection/const.py delete mode 100644 custom_components/garbage_collection/manifest.json delete mode 100644 custom_components/garbage_collection/sensor.py delete mode 100644 custom_components/hacs/.translations/da.json delete mode 100644 custom_components/hacs/.translations/de.json delete mode 100644 custom_components/hacs/.translations/el.json delete mode 100644 custom_components/hacs/.translations/en.json delete mode 100644 custom_components/hacs/.translations/es.json delete mode 100644 custom_components/hacs/.translations/fr.json delete mode 100644 custom_components/hacs/.translations/hu.json delete mode 100644 custom_components/hacs/.translations/it.json delete mode 100644 custom_components/hacs/.translations/nb.json delete mode 100644 custom_components/hacs/.translations/nl.json delete mode 100644 custom_components/hacs/.translations/nn.json delete mode 100644 custom_components/hacs/.translations/pl.json delete mode 100644 custom_components/hacs/.translations/pt-BR.json delete mode 100644 custom_components/hacs/.translations/ro.json delete mode 100644 custom_components/hacs/.translations/ru.json delete mode 100644 custom_components/hacs/.translations/sl.json delete mode 100644 custom_components/hacs/.translations/sv.json delete mode 100644 custom_components/hacs/.translations/zh-Hans.json delete mode 100644 custom_components/hacs/__init__.py delete mode 100644 custom_components/hacs/__pycache__/__init__.cpython-37.pyc delete mode 100644 custom_components/hacs/__pycache__/config_flow.cpython-37.pyc delete mode 100644 custom_components/hacs/__pycache__/configuration_schema.cpython-37.pyc delete mode 100644 custom_components/hacs/__pycache__/const.cpython-37.pyc delete mode 100644 custom_components/hacs/__pycache__/constrains.cpython-37.pyc delete mode 100644 custom_components/hacs/__pycache__/globals.cpython-37.pyc delete mode 100644 custom_components/hacs/__pycache__/http.cpython-37.pyc delete mode 100644 custom_components/hacs/__pycache__/sensor.cpython-37.pyc delete mode 100644 custom_components/hacs/__pycache__/setup.cpython-37.pyc delete mode 100644 custom_components/hacs/__pycache__/store.cpython-37.pyc delete mode 100644 custom_components/hacs/__pycache__/ws_api_handlers.cpython-37.pyc delete mode 100644 custom_components/hacs/config_flow.py delete mode 100644 custom_components/hacs/configuration_schema.py delete mode 100644 custom_components/hacs/const.py delete mode 100644 custom_components/hacs/constrains.py delete mode 100644 custom_components/hacs/globals.py delete mode 100644 custom_components/hacs/hacsbase/__init__.py delete mode 100644 custom_components/hacs/hacsbase/__pycache__/__init__.cpython-37.pyc delete mode 100644 custom_components/hacs/hacsbase/__pycache__/backup.cpython-37.pyc delete mode 100644 custom_components/hacs/hacsbase/__pycache__/configuration.cpython-37.pyc delete mode 100644 custom_components/hacs/hacsbase/__pycache__/const.cpython-37.pyc delete mode 100644 custom_components/hacs/hacsbase/__pycache__/data.cpython-37.pyc delete mode 100644 custom_components/hacs/hacsbase/__pycache__/exceptions.cpython-37.pyc delete mode 100644 custom_components/hacs/hacsbase/__pycache__/task_factory.cpython-37.pyc delete mode 100644 custom_components/hacs/hacsbase/backup.py delete mode 100644 custom_components/hacs/hacsbase/configuration.py delete mode 100644 custom_components/hacs/hacsbase/const.py delete mode 100644 custom_components/hacs/hacsbase/data.py delete mode 100644 custom_components/hacs/hacsbase/exceptions.py delete mode 100644 custom_components/hacs/hacsbase/task_factory.py delete mode 100644 custom_components/hacs/handler/__init__.py delete mode 100644 custom_components/hacs/handler/__pycache__/__init__.cpython-37.pyc delete mode 100644 custom_components/hacs/handler/__pycache__/download.cpython-37.pyc delete mode 100644 custom_components/hacs/handler/__pycache__/template.cpython-37.pyc delete mode 100644 custom_components/hacs/handler/download.py delete mode 100644 custom_components/hacs/handler/template.py delete mode 100644 custom_components/hacs/helpers/__pycache__/download.cpython-37.pyc delete mode 100644 custom_components/hacs/helpers/__pycache__/filters.cpython-37.pyc delete mode 100644 custom_components/hacs/helpers/__pycache__/get_defaults.cpython-37.pyc delete mode 100644 custom_components/hacs/helpers/__pycache__/information.cpython-37.pyc delete mode 100644 custom_components/hacs/helpers/__pycache__/install.cpython-37.pyc delete mode 100644 custom_components/hacs/helpers/__pycache__/misc.cpython-37.pyc delete mode 100644 custom_components/hacs/helpers/__pycache__/network.cpython-37.pyc delete mode 100644 custom_components/hacs/helpers/__pycache__/register_repository.cpython-37.pyc delete mode 100644 custom_components/hacs/helpers/__pycache__/validate_repository.cpython-37.pyc delete mode 100644 custom_components/hacs/helpers/download.py delete mode 100644 custom_components/hacs/helpers/filters.py delete mode 100644 custom_components/hacs/helpers/get_defaults.py delete mode 100644 custom_components/hacs/helpers/information.py delete mode 100644 custom_components/hacs/helpers/install.py delete mode 100644 custom_components/hacs/helpers/misc.py delete mode 100644 custom_components/hacs/helpers/network.py delete mode 100644 custom_components/hacs/helpers/register_repository.py delete mode 100644 custom_components/hacs/helpers/validate_repository.py delete mode 100644 custom_components/hacs/http.py delete mode 100644 custom_components/hacs/iconset.js delete mode 100644 custom_components/hacs/manifest.json delete mode 100644 custom_components/hacs/repositories/__init__.py delete mode 100644 custom_components/hacs/repositories/__pycache__/__init__.cpython-37.pyc delete mode 100644 custom_components/hacs/repositories/__pycache__/appdaemon.cpython-37.pyc delete mode 100644 custom_components/hacs/repositories/__pycache__/integration.cpython-37.pyc delete mode 100644 custom_components/hacs/repositories/__pycache__/manifest.cpython-37.pyc delete mode 100644 custom_components/hacs/repositories/__pycache__/netdaemon.cpython-37.pyc delete mode 100644 custom_components/hacs/repositories/__pycache__/plugin.cpython-37.pyc delete mode 100644 custom_components/hacs/repositories/__pycache__/python_script.cpython-37.pyc delete mode 100644 custom_components/hacs/repositories/__pycache__/removed.cpython-37.pyc delete mode 100644 custom_components/hacs/repositories/__pycache__/repository.cpython-37.pyc delete mode 100644 custom_components/hacs/repositories/__pycache__/repositorydata.cpython-37.pyc delete mode 100644 custom_components/hacs/repositories/__pycache__/theme.cpython-37.pyc delete mode 100644 custom_components/hacs/repositories/appdaemon.py delete mode 100644 custom_components/hacs/repositories/integration.py delete mode 100644 custom_components/hacs/repositories/manifest.py delete mode 100644 custom_components/hacs/repositories/netdaemon.py delete mode 100644 custom_components/hacs/repositories/plugin.py delete mode 100644 custom_components/hacs/repositories/python_script.py delete mode 100644 custom_components/hacs/repositories/removed.py delete mode 100644 custom_components/hacs/repositories/repository.py delete mode 100644 custom_components/hacs/repositories/repositorydata.py delete mode 100644 custom_components/hacs/repositories/theme.py delete mode 100644 custom_components/hacs/sensor.py delete mode 100644 custom_components/hacs/services.yaml delete mode 100644 custom_components/hacs/setup.py delete mode 100644 custom_components/hacs/store.py delete mode 100644 custom_components/hacs/ws_api_handlers.py delete mode 100644 customisations/domains/.gitkeep delete mode 100644 customisations/entities/.gitkeep delete mode 100644 customisations/globs/.gitkeep delete mode 100644 docs/README.md delete mode 100644 entities/binary_sensors/hikvision_nvr.yaml.disable delete mode 100644 entities/binary_sensors/ring.yaml delete mode 100644 entities/device_trackers/.gitkeep delete mode 100644 entities/groups/.gitkeep delete mode 100644 entities/input_booleans/alarm_arming_state_notifications.yaml delete mode 100644 entities/input_booleans/alarm_sounding_notifications.yaml delete mode 100644 entities/input_booleans/alarm_sounding_sms_notification.yaml delete mode 100644 entities/input_booleans/away_mode.yaml delete mode 100644 entities/input_booleans/garden_decking_timer_automation.yaml delete mode 100644 entities/input_booleans/guest_mode.yaml delete mode 100644 entities/input_booleans/porch_lighting_timer.yaml delete mode 100644 entities/input_datetime/.gitkeep delete mode 100644 entities/input_selects/.gitkeep delete mode 100644 entities/lights/living_room_all_lamps.yaml delete mode 100644 entities/lights/living_room_all_lights.yaml delete mode 100644 entities/lights/living_room_wall_lights.yaml delete mode 100644 entities/lights/master_bedroom_all_lamps.yaml delete mode 100644 entities/lights/master_bedroom_all_lights.yaml delete mode 100644 entities/lights/office_all_lamps.yaml delete mode 100644 entities/lights/office_all_lights.yaml delete mode 100644 entities/media_players/living_room_sony_bravia_tv.yaml delete mode 100644 entities/media_players/living_room_yamaha_amplifier.yaml delete mode 100644 entities/notify/family.yaml delete mode 100644 entities/notify/jon_devices.yaml delete mode 100644 entities/notify/lee_devices.yaml delete mode 100644 entities/notify/living_room_tv.yaml delete mode 100644 entities/notify/sms_notification.yaml delete mode 100644 entities/persons/jon.yaml delete mode 100644 entities/persons/lee.yaml delete mode 100644 entities/sensors/bathroom_radiator_faults.yaml delete mode 100644 entities/sensors/hallway_radiator_faults.yaml delete mode 100644 entities/sensors/kitchen_radiator_faults.yaml delete mode 100644 entities/sensors/living_room_radiator_faults.yaml delete mode 100644 entities/sensors/master_bedroom_radiator_faults.yaml delete mode 100644 entities/sensors/office_radiator_faults.yaml delete mode 100644 entities/sensors/ring.yaml delete mode 100644 entities/sensors/spare_room_radiator_faults.yaml delete mode 100644 entities/sensors/travisci.yaml delete mode 100644 entities/sensors/version_avaliable.yaml.disable delete mode 100644 entities/sensors/version_current.yaml.disable delete mode 100644 entities/switches/.gitkeep delete mode 100644 entities/weather/darksky.yaml delete mode 100644 entities/zones/home.yaml delete mode 100644 entities/zones/home_ringfence.yaml delete mode 100644 esphome/.gitignore delete mode 100644 esphome/alarm_system_status.yaml delete mode 100644 esphome/christmas_2.yaml delete mode 100644 esphome/dishwasher.yaml delete mode 100644 esphome/garden_decking_lights.yaml delete mode 100644 esphome/landing_ceiling_light.yaml delete mode 100644 esphome/living_room_air_freshener.yaml delete mode 100644 esphome/living_room_left_lamp.yaml delete mode 100644 esphome/living_room_right_lamp.yaml delete mode 100644 esphome/master_bedroom_jon_lamp.yaml delete mode 100644 esphome/office_ceiling_light.yaml delete mode 100644 esphome/porch_ceiling_light.yaml delete mode 100644 esphome/spare_bedroom_lamp.yaml delete mode 100644 esphome/spare_room_ceiling_light.yaml delete mode 100644 esphome/test_energy_monitor_plug.yaml delete mode 100644 esphome/tumble_dryer.yaml delete mode 100644 esphome/upstairs_air_freshener.yaml delete mode 100644 esphome/washing_machine.yaml delete mode 100644 integrations/automation.yaml delete mode 100644 integrations/binary_sensor.yaml delete mode 100644 integrations/camera.yaml delete mode 100644 integrations/cloud.yaml delete mode 100644 integrations/config.yaml delete mode 100644 integrations/device_tracker.yaml delete mode 100644 integrations/discovery.yaml delete mode 100644 integrations/evohome.yaml delete mode 100644 integrations/frontend.yaml delete mode 100644 integrations/garbage_collection.yaml delete mode 100644 integrations/group.yaml delete mode 100644 integrations/hassio.yaml delete mode 100644 integrations/history.yaml delete mode 100644 integrations/homeassistant.yaml delete mode 100644 integrations/http.yaml delete mode 100644 integrations/hue.yaml delete mode 100644 integrations/influxdb.yaml.disable delete mode 100644 integrations/input_boolean.yaml delete mode 100644 integrations/input_datetime.yaml delete mode 100644 integrations/input_number.yaml delete mode 100644 integrations/input_select.yaml delete mode 100644 integrations/input_text.yaml delete mode 100644 integrations/ios.yaml delete mode 100644 integrations/light.yaml delete mode 100644 integrations/logbook.yaml delete mode 100644 integrations/logger.yaml.disable delete mode 100644 integrations/lovelace.yaml delete mode 100644 integrations/map.yaml delete mode 100644 integrations/media_player.yaml delete mode 100644 integrations/mobile_app.yaml delete mode 100644 integrations/notify.yaml delete mode 100644 integrations/person.yaml delete mode 100644 integrations/recorder.yaml delete mode 100644 integrations/ring.yaml delete mode 100644 integrations/scene.yaml delete mode 100644 integrations/script.yaml delete mode 100644 integrations/sensor.yaml delete mode 100644 integrations/sun.yaml delete mode 100644 integrations/switch.yaml delete mode 100644 integrations/system_health.yaml delete mode 100644 integrations/tradfri.yaml.disable delete mode 100644 integrations/twilio.yaml delete mode 100644 integrations/updater.yaml delete mode 100644 integrations/weather.yaml delete mode 100644 integrations/zone.yaml delete mode 100644 scenes.yaml delete mode 100644 scenes/.gitkeep delete mode 100644 scripts/.gitkeep delete mode 100644 secrets_dummy.yaml delete mode 100644 themes/.gitkeep delete mode 100644 www/community/custom-header/custom-header.js delete mode 100644 www/community/custom-header/custom-header.js.gz delete mode 100644 www/community/lovelace-card-tools/card-tools.js delete mode 100644 www/community/lovelace-card-tools/card-tools.js.gz delete mode 100644 www/community/lovelace-card-tools/webpack.config.js delete mode 100644 www/community/lovelace-card-tools/webpack.config.js.gz delete mode 100644 www/community/lovelace-fold-entity-row/fold-entity-row.js delete mode 100644 www/community/lovelace-fold-entity-row/fold-entity-row.js.gz delete mode 100644 www/community/lovelace-fold-entity-row/webpack.config.js delete mode 100644 www/community/lovelace-fold-entity-row/webpack.config.js.gz delete mode 100644 www/community/lovelace-slider-entity-row/slider-entity-row.js delete mode 100644 www/community/lovelace-slider-entity-row/slider-entity-row.js.gz delete mode 100644 www/community/lovelace-slider-entity-row/webpack.config.js delete mode 100644 www/community/lovelace-slider-entity-row/webpack.config.js.gz delete mode 100644 www/community/lovelace-template-entity-row/template-entity-row.js delete mode 100644 www/community/lovelace-template-entity-row/template-entity-row.js.gz delete mode 100644 www/community/lovelace-template-entity-row/webpack.config.js delete mode 100644 www/community/lovelace-template-entity-row/webpack.config.js.gz delete mode 100644 www/community/mini-media-player/mini-media-player-bundle.js delete mode 100644 www/community/mini-media-player/mini-media-player-bundle.js.gz delete mode 100644 www/community/rgb-light-card/card.js delete mode 100644 www/community/rgb-light-card/card.js.gz delete mode 100644 www/community/secondaryinfo-entity-row/secondaryinfo-entity-row.js delete mode 100644 www/community/secondaryinfo-entity-row/secondaryinfo-entity-row.js.gz delete mode 100644 www/community/simple-thermostat/simple-thermostat.js delete mode 100644 www/community/simple-thermostat/simple-thermostat.js.gz delete mode 100644 www/community/vertical-stack-in-card/vertical-stack-in-card.js delete mode 100644 www/community/vertical-stack-in-card/vertical-stack-in-card.js.gz delete mode 100755 www/images/jon-bw.jpg delete mode 100755 www/images/jon.jpg delete mode 100755 www/images/lee-bw.jpg delete mode 100755 www/images/lee.jpg diff --git a/.HA_VERSION b/.HA_VERSION deleted file mode 100644 index 8c53e4e..0000000 --- a/.HA_VERSION +++ /dev/null @@ -1 +0,0 @@ -0.107.7 \ No newline at end of file diff --git a/.gitignore b/.gitignore deleted file mode 100644 index c7f0389..0000000 --- a/.gitignore +++ /dev/null @@ -1,36 +0,0 @@ -# Git Ignore File - -# Do not ignore -!/.gitignore -!/.travis.yml - -# Logs -logs -*.log - -# Ignore Folders -.storage -.cloud -.vscode -.Trash-* -deps/ - -# Ignored Files -secrets.yaml -ip_bans.yaml -known_devices.yaml -*.conf -*.db -*.uuid - -# Node-Red -node-red - -# Operating System Trash Files -.DS_Store - -# Alexa Media -alexa_media.*.pickle - -# Ring -.ring_cache.pickle \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 24be4a7..0000000 --- a/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ -# -# Travis CI configuration -# -# Simply tests that Home Assistant configuration is valid. -# -# @link https://home-assistant.io/docs/ecosystem/backup/backup_github/#step-7-configuration-file-testing -# - -language: python - -python: - - "3.6" - -before_install: - - cp secrets_dummy.yaml secrets.yaml - - touch home-assistant_v2.db - - touch home-assistant.log - -install: - - pip3 install homeassistant - -script: -- hass --script check_config -c . -f \ No newline at end of file diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 7f74b9f..0000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2019-2020 Jonathan Adams - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/assistants/alexa/areas/bathroom/climate.bathroom.yaml b/assistants/alexa/areas/bathroom/climate.bathroom.yaml deleted file mode 100644 index c63ab50..0000000 --- a/assistants/alexa/areas/bathroom/climate.bathroom.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -# Entity configuration for Amazon Alexa. -# https://www.nabucasa.com/config/amazon_alexa/ - -climate.bathroom: - name: Bathroom Radiator - description: Radiator in the Bathroom - display_categories: THERMOSTAT \ No newline at end of file diff --git a/assistants/alexa/areas/hallway/climate.hallway.yaml b/assistants/alexa/areas/hallway/climate.hallway.yaml deleted file mode 100644 index 25d6aa4..0000000 --- a/assistants/alexa/areas/hallway/climate.hallway.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- - # Entity configuration for Amazon Alexa. - # https://www.nabucasa.com/config/amazon_alexa/ - - climate.hallway: - name: Hallway Radiator - description: Radiator in the Hallway - display_categories: THERMOSTAT \ No newline at end of file diff --git a/assistants/alexa/areas/kitchen/climate.kitchen.yaml b/assistants/alexa/areas/kitchen/climate.kitchen.yaml deleted file mode 100644 index d85b1fb..0000000 --- a/assistants/alexa/areas/kitchen/climate.kitchen.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -# Entity configuration for Amazon Alexa. -# https://www.nabucasa.com/config/amazon_alexa/ - -climate.kitchen: - name: Kitchen Radiator - description: Radiator in the Kitchen - display_categories: THERMOSTAT \ No newline at end of file diff --git a/assistants/alexa/areas/kitchen/light.kitchen_table.yaml b/assistants/alexa/areas/kitchen/light.kitchen_table.yaml deleted file mode 100644 index a918bc1..0000000 --- a/assistants/alexa/areas/kitchen/light.kitchen_table.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -# Entity configuration for Amazon Alexa. -# https://www.nabucasa.com/config/amazon_alexa/ - -light.kitchen_table: - name: Kitchen Table - description: Table light in the Kitchen - display_categories: LIGHT \ No newline at end of file diff --git a/assistants/alexa/areas/living_room/climate.living_room.yaml b/assistants/alexa/areas/living_room/climate.living_room.yaml deleted file mode 100644 index fcaad90..0000000 --- a/assistants/alexa/areas/living_room/climate.living_room.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -# Entity configuration for Amazon Alexa. -# https://www.nabucasa.com/config/amazon_alexa/ - -climate.living_room: - name: Living Room Radiator - description: Radiator in the Living Room - display_categories: THERMOSTAT \ No newline at end of file diff --git a/assistants/alexa/areas/living_room/light.living_room_left_lamp.yaml b/assistants/alexa/areas/living_room/light.living_room_left_lamp.yaml deleted file mode 100644 index bf3a311..0000000 --- a/assistants/alexa/areas/living_room/light.living_room_left_lamp.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -# Entity configuration for Amazon Alexa. -# https://www.nabucasa.com/config/amazon_alexa/ - -light.living_room_left_lamp: - name: Living Room Left Lamp - description: Left Lamp in the Living Room - display_categories: LIGHT \ No newline at end of file diff --git a/assistants/alexa/areas/living_room/light.living_room_right_lamp.yaml b/assistants/alexa/areas/living_room/light.living_room_right_lamp.yaml deleted file mode 100644 index ec6ae92..0000000 --- a/assistants/alexa/areas/living_room/light.living_room_right_lamp.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -# Entity configuration for Amazon Alexa. -# https://www.nabucasa.com/config/amazon_alexa/ - -light.living_room_right_lamp: - name: Living Room Right Lamp - description: Right Lamp in the Living Room - display_categories: LIGHT \ No newline at end of file diff --git a/assistants/alexa/areas/living_room/light.living_room_tall_lamp.yaml b/assistants/alexa/areas/living_room/light.living_room_tall_lamp.yaml deleted file mode 100644 index 52b3602..0000000 --- a/assistants/alexa/areas/living_room/light.living_room_tall_lamp.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -# Entity configuration for Amazon Alexa. -# https://www.nabucasa.com/config/amazon_alexa/ - -light.living_room_tall_lamp: - name: Living Room Tall Lamp - description: Tall Lamp in the Living Room - display_categories: LIGHT \ No newline at end of file diff --git a/assistants/alexa/areas/master_bedroom/climate.master_bedroom.yaml b/assistants/alexa/areas/master_bedroom/climate.master_bedroom.yaml deleted file mode 100644 index 67fe9c5..0000000 --- a/assistants/alexa/areas/master_bedroom/climate.master_bedroom.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -# Entity configuration for Amazon Alexa. -# https://www.nabucasa.com/config/amazon_alexa/ - -climate.master_bedroom: - name: Bedroom Radiator - description: Radiator in the Master Bedroom - display_categories: THERMOSTAT \ No newline at end of file diff --git a/assistants/alexa/areas/master_bedroom/light.master_bedroom_jon_bedside_lamp.yaml b/assistants/alexa/areas/master_bedroom/light.master_bedroom_jon_bedside_lamp.yaml deleted file mode 100644 index 08606bc..0000000 --- a/assistants/alexa/areas/master_bedroom/light.master_bedroom_jon_bedside_lamp.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -# Entity configuration for Amazon Alexa. -# https://www.nabucasa.com/config/amazon_alexa/ - -light.master_bedroom_jon_bedside_lamp: - name: Bedroom Jon Bedside Lamp - description: Jon's Bedside Lamp in the Master Bedroom - display_categories: LIGHT \ No newline at end of file diff --git a/assistants/alexa/areas/master_bedroom/light.master_bedroom_lee_bedside_lamp.yaml b/assistants/alexa/areas/master_bedroom/light.master_bedroom_lee_bedside_lamp.yaml deleted file mode 100644 index 41ec5bc..0000000 --- a/assistants/alexa/areas/master_bedroom/light.master_bedroom_lee_bedside_lamp.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -# Entity configuration for Amazon Alexa. -# https://www.nabucasa.com/config/amazon_alexa/ - -light.master_bedroom_jon_bedside_lamp: - name: Bedroom Lee Bedside Lamp - description: Lee's Bedside Lamp in the Master Bedroom - display_categories: LIGHT \ No newline at end of file diff --git a/assistants/alexa/areas/office/climate.office.yaml b/assistants/alexa/areas/office/climate.office.yaml deleted file mode 100644 index 091b09b..0000000 --- a/assistants/alexa/areas/office/climate.office.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -# Entity configuration for Amazon Alexa. -# https://www.nabucasa.com/config/amazon_alexa/ - -climate.office: - name: Office Radiator - description: Radiator in the Office - display_categories: THERMOSTAT \ No newline at end of file diff --git a/assistants/alexa/areas/spare_room/climate.spare_room.yaml b/assistants/alexa/areas/spare_room/climate.spare_room.yaml deleted file mode 100644 index 0d21e31..0000000 --- a/assistants/alexa/areas/spare_room/climate.spare_room.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -# Entity configuration for Amazon Alexa. -# https://www.nabucasa.com/config/amazon_alexa/ - -climate.spare_room: - name: Spare Room Radiator - description: Radiator in the Spare Room - display_categories: THERMOSTAT \ No newline at end of file diff --git a/automations.yaml b/automations.yaml deleted file mode 100644 index fe51488..0000000 --- a/automations.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/automations/areas/master_bedroom/jon_bedside_remote/bedside_lamp_toggle.yaml b/automations/areas/master_bedroom/jon_bedside_remote/bedside_lamp_toggle.yaml deleted file mode 100644 index ae012ad..0000000 --- a/automations/areas/master_bedroom/jon_bedside_remote/bedside_lamp_toggle.yaml +++ /dev/null @@ -1,16 +0,0 @@ -alias: Jon Bedside Remote - Lamp Toggle -description: Toggles bedside lamp on and off -trigger: -- event_data: - event: 1002 - unique_id: "00:0d:6f:ff:fe:4d:61:69" - event_type: deconz_event - platform: event -condition: [] -action: -- service: light.toggle - data: - entity_id: light.master_bedroom_jon_bedside_lamp - transition: 0.5 - brightness: 255 - \ No newline at end of file diff --git a/automations/areas/master_bedroom/lee_bedside_remote/bedside_lamp_toggle.yaml b/automations/areas/master_bedroom/lee_bedside_remote/bedside_lamp_toggle.yaml deleted file mode 100644 index 270cd93..0000000 --- a/automations/areas/master_bedroom/lee_bedside_remote/bedside_lamp_toggle.yaml +++ /dev/null @@ -1,16 +0,0 @@ -alias: Lee Bedside Remote - Lamp Toggle -description: Toggles bedside lamp on and off -trigger: -- event_data: - event: 1002 - unique_id: "ec:1b:bd:ff:fe:1a:81:d8" - event_type: deconz_event - platform: event -condition: [] -action: -- service: light.toggle - data: - entity_id: light.master_bedroom_lee_bedside_lamp - transition: 0.5 - brightness: 255 - \ No newline at end of file diff --git a/automations/system/auto_snapshot.yaml b/automations/system/auto_snapshot.yaml deleted file mode 100644 index 6c50dc8..0000000 --- a/automations/system/auto_snapshot.yaml +++ /dev/null @@ -1,16 +0,0 @@ ---- -# Automatic Home Assistant Snapshot -# Takes a full snapshot of home assistant every sunday at 0300hrs - -alias: HASSIO Weekly Snapshot -trigger: - - platform: time - at: "3:00:00" -condition: - condition: time - weekday: - - sun -action: - - service: hassio.snapshot_full - data_template: - name: "Automated Backup {{ now().strftime('%Y-%m-%d') }}" diff --git a/automations/system/travis_update_ha_config.yaml b/automations/system/travis_update_ha_config.yaml deleted file mode 100644 index 3bdcdea..0000000 --- a/automations/system/travis_update_ha_config.yaml +++ /dev/null @@ -1,16 +0,0 @@ ---- -# Automatic pull of updated config from github if Travis CI build is successful -# https://www.home-assistant.io/components/travisci/ - -alias: Update HA Config On Successful TravisCI Build -trigger: - - platform: state - entity_id: sensor.jonathanadams_home_assistant_config_last_build_id -condition: - - condition: state - entity_id: sensor.jonathanadams_home_assistant_config_last_build_state - state: "passed" -action: - - service: hassio.addon_start - data: - addon: "core_git_pull" diff --git a/configuration.yaml b/configuration.yaml deleted file mode 100644 index 23b9fdc..0000000 --- a/configuration.yaml +++ /dev/null @@ -1,3 +0,0 @@ -homeassistant: - # Load packages - packages: !include_dir_named integrations \ No newline at end of file diff --git a/custom_components/alexa_media/.translations/de.json b/custom_components/alexa_media/.translations/de.json deleted file mode 100644 index e1907ec..0000000 --- a/custom_components/alexa_media/.translations/de.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "config": { - "error": { - "identifier_exists": "Diese Email ist bereits registriert", - "invalid_credentials": "Falsche Zugangsdaten" - }, - "step": { - "user": { - "data": { - "password": "Passwort", - "email": "Email Adresse", - "url": "Amazon Region (z.B., amazon.de)", - "include_devices": "Eingebundene Geräte (komma getrennnt)", - "exclude_devices": "Ausgeschlossene Geräte (komma getrennnt)", - "debug": "Erweitertes debugging", - "scan_interval": "Sekunden zwischen den Scans" - }, - "description": "Bitte geben Sie ihre Informationen ein.", - "title": "Alexa Media Player - Konfiguration" - }, - "captcha": { - "data": { - "password": "Passwort", - "captcha": "Captcha" - }, - "description": "**{email} - alexa.{url}**\n{message}\n {captcha_image}", - "title": "Alexa Media Player - Captcha" - }, - "twofactor": { - "data": { - "securitycode": "2FA Code" - }, - "description": "**{email} - alexa.{url}**\nDen Zwei Faktor Pin eingeben.\n{message}", - "title": "Alexa Media Player - Zwei Faktor Authentifizierung" - }, - "authselect": { - "data": { - "authselectoption": "Einmal Pin Methode" - }, - "description": "**{email} - alexa.{url}**\n{message}", - "title": "Alexa Media Player - Einmal Pin Passwort" - }, - "claimspicker": { - "data": { - "authselectoption": "Verifizierungs Methode" - }, - "description": "**{email} - alexa.{url}**\nBitte Verifizierungs Methode auswählen. (z.B., `sms` oder `email`)\n{message}", - "title": "Alexa Media Player - Verifizierungs Methode" - } - - }, - "title": "Alexa Media Player" - } -} diff --git a/custom_components/alexa_media/.translations/en.json b/custom_components/alexa_media/.translations/en.json deleted file mode 100644 index c6d4dcf..0000000 --- a/custom_components/alexa_media/.translations/en.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "config": { - "error": { - "connection_error": "Error connecting; check network and retry", - "identifier_exists": "Email for Alexa URL already registered", - "invalid_credentials": "Invalid credentials", - "unknown_error": "Unknown error, please report with logs" - }, - "step": { - "user": { - "data": { - "password": "Password", - "email": "Email Address", - "url": "Amazon region domain (e.g., amazon.co.uk)", - "include_devices": "Included device (comma separated)", - "exclude_devices": "Excluded device (comma separated)", - "debug": "Advanced debugging", - "scan_interval": "Seconds between scans" - }, - "description": "Please enter your information.", - "title": "Alexa Media Player - Configuration" - }, - "captcha": { - "data": { - "password": "Password", - "captcha": "Captcha" - }, - "description": "**{email} - alexa.{url}**\n{message}\n {captcha_image}", - "title": "Alexa Media Player - Captcha" - }, - "twofactor": { - "data": { - "securitycode": "2FA Code" - }, - "description": "**{email} - alexa.{url}**\nEnter the One Time Password (OTP).\n{message}", - "title": "Alexa Media Player - Two Factor Authentication" - }, - "authselect": { - "data": { - "authselectoption": "OTP method" - }, - "description": "**{email} - alexa.{url}**\n{message}", - "title": "Alexa Media Player - One Time Password" - }, - "claimspicker": { - "data": { - "authselectoption": "Verification method" - }, - "description": "**{email} - alexa.{url}**\nPlease select verification method. (e.g., `sms` or `email`)\n{message}", - "title": "Alexa Media Player - Verification Method" - } - - }, - "title": "Alexa Media Player" - } -} diff --git a/custom_components/alexa_media/.translations/it.json b/custom_components/alexa_media/.translations/it.json deleted file mode 100644 index 29d7af4..0000000 --- a/custom_components/alexa_media/.translations/it.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "config": { - "error": { - "identifier_exists": "L'Email per l'URL di Alexa è già stata registrata", - "invalid_credentials": "Credenziali non valide" - }, - "step": { - "user": { - "data": { - "password": "Password", - "email": "Indirizzo email", - "url": "Regione del dominio Amazon (e.g., amazon.it)", - "include_devices": "Dispositivi da includere (separati da virgola)", - "exclude_devices": "Dispositivi da escludere (separati da virgola)", - "debug": "Debug avanzato", - "scan_interval": "Tempo in secondi fra le scansioni" - }, - "description": "Prego inserisci le tue informazioni.", - "title": "Alexa Media Player - Configurazione" - }, - "captcha": { - "data": { - "password": "Password", - "captcha": "Captcha" - }, - "description": "**{email} - alexa.{url}**\n{message}\n {captcha_image}", - "title": "Alexa Media Player - Captcha" - }, - "twofactor": { - "data": { - "securitycode": "Codice autenticazione a 2 fattori (2FA)" - }, - "description": "**{email} - alexa.{url}**\nInserisci la password usa e getta (OTP).\n{message}", - "title": "Alexa Media Player - Autenticazione a Due Fattori" - }, - "authselect": { - "data": { - "authselectoption": "Metodo password usa e getta (OTP)" - }, - "description": "**{email} - alexa.{url}**\n{message}", - "title": "Alexa Media Player - Password Usa e Getta (One Time Password)" - }, - "claimspicker": { - "data": { - "authselectoption": "Metodi di Verifica" - }, - "description": "**{email} - alexa.{url}**\nPrego selezionare un metodo di verifica. (e.g., `sms` or `email`)\n{message}", - "title": "Alexa Media Player - Metodi di Verifica" - } - - }, - "title": "Alexa Media Player" - } -} diff --git a/custom_components/alexa_media/.translations/nl.json b/custom_components/alexa_media/.translations/nl.json deleted file mode 100644 index 21bdf62..0000000 --- a/custom_components/alexa_media/.translations/nl.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "config": { - "error": { - "identifier_exists": "Dit e-mailadres is reeds geregistreerd", - "invalid_credentials": "Ongeldige inloggegevens" - }, - "step": { - "user": { - "data": { - "password": "Paswoord", - "email": "E-mailadres", - "url": "Domeinnaam van Amazon regio (bv.amazon.co.uk)", - "include_devices": "Apparaten toevoegen (Scheiding: komma)", - "exclude_devices": "Apparaten uitsluiten (Scheiding: komma)", - "debug": "Geavanceerd debuggen", - "scan_interval": "Aantal seconden tussen scans" - }, - "description": "Vul je gegevens in a.u.b.", - "title": "Alexa Media Player - Configuratie" - }, - "captcha": { - "data": { - "password": "Paswoord", - "captcha": "Captcha" - }, - "description": "**{email} - alexa.{url}**\n{message}\n {captcha_image}", - "title": "Alexa Media Player - Captcha" - }, - "twofactor": { - "data": { - "securitycode": "Verificatiecode" - }, - "description": "**{email} - alexa.{url}**\nGeef de verificatiecode in.\n{message}", - "title": "Alexa Media Player - Tweestapsverificatie" - }, - "authselect": { - "data": { - "authselectoption": "Eenmalige Pincode" - }, - "description": "**{email} - alexa.{url}**\n{message}", - "title": "Alexa Media Player - Eenmalige Pincode" - }, - "claimspicker": { - "data": { - "authselectoption": "Verificatiemethode" - }, - "description": "**{email} - alexa.{url}**\nSelecteer de verificatiemethode (bv.`sms` of `email`)\n{message}", - "title": "Alexa Media Player - Verificatiemethode" - } - - }, - "title": "Alexa Media Player" - } -} diff --git a/custom_components/alexa_media/.translations/pl.json b/custom_components/alexa_media/.translations/pl.json deleted file mode 100644 index 58b995d..0000000 --- a/custom_components/alexa_media/.translations/pl.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "config": { - "error": { - "identifier_exists": "Adres email dla Alexy już jest zarejestrowany", - "invalid_credentials": "Nieprawidłowe dane logowania" - }, - "step": { - "user": { - "data": { - "password": "Hasło", - "email": "Adres email", - "url": "Region/domena Amazon (np. amazon.co.uk)", - "include_devices": "Dodawane urządzenia (oddzielone przecinkami)", - "exclude_devices": "Wykluczone urządzenia (oddzielone przecinkami)", - "debug": "Zaawansowane debugowanie", - "scan_interval": "Interwał skanowania (sekundy)" - }, - "description": "Wprowadź dane", - "title": "Alexa Media Player - konfiguracja" - }, - "captcha": { - "data": { - "password": "Hasło", - "captcha": "Kod Captcha" - }, - "description": "**{email} - alexa.{url}**\n{message}\n {captcha_image}", - "title": "Alexa Media Player - kod Captcha" - }, - "twofactor": { - "data": { - "securitycode": "Kod uwierzytelniania dwuskładnikowego" - }, - "description": "**{email} - alexa.{url}**\nWprowadź hasło jednorazowe (OTP).\n{message}", - "title": "Alexa Media Player - uwierzytelnianie dwuskładnikowe" - }, - "authselect": { - "data": { - "authselectoption": "Metoda OTP" - }, - "description": "**{email} - alexa.{url}**\n{message}", - "title": "Alexa Media Player - hasło jednorazowe" - }, - "claimspicker": { - "data": { - "authselectoption": "Metoda weryfikacji" - }, - "description": "**{email} - alexa.{url}**\nWybierz metodę weryfikacji. (np., `sms` lub `email`)\n{message}", - "title": "Alexa Media Player - metoda weryfikacji" - } - - }, - "title": "Alexa Media Player" - } -} diff --git a/custom_components/alexa_media/__init__.py b/custom_components/alexa_media/__init__.py deleted file mode 100644 index 196c16b..0000000 --- a/custom_components/alexa_media/__init__.py +++ /dev/null @@ -1,1064 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- -# SPDX-License-Identifier: Apache-2.0 -""" -Support to interface with Alexa Devices. - -For more details about this platform, please refer to the documentation at -https://community.home-assistant.io/t/echo-devices-alexa-as-media-player-testers-needed/58639 -""" -from datetime import datetime, timedelta -import logging -from typing import List, Optional, Text - -from alexapy import AlexapyLoginError, WebsocketEchoClient, hide_email, hide_serial -from homeassistant import util -from homeassistant.config_entries import SOURCE_IMPORT -from homeassistant.const import ( - CONF_EMAIL, - CONF_NAME, - CONF_PASSWORD, - CONF_SCAN_INTERVAL, - CONF_URL, - EVENT_HOMEASSISTANT_STOP, -) -from homeassistant.helpers import config_validation as cv -from homeassistant.helpers.discovery import async_load_platform -from homeassistant.helpers.event import async_call_later -from homeassistant.util import dt -import voluptuous as vol - -from .config_flow import configured_instances -from .const import ( - ALEXA_COMPONENTS, - ATTR_EMAIL, - ATTR_NUM_ENTRIES, - CONF_ACCOUNTS, - CONF_DEBUG, - CONF_EXCLUDE_DEVICES, - CONF_INCLUDE_DEVICES, - DATA_ALEXAMEDIA, - DOMAIN, - ISSUE_URL, - MIN_TIME_BETWEEN_FORCED_SCANS, - MIN_TIME_BETWEEN_SCANS, - SCAN_INTERVAL, - SERVICE_CLEAR_HISTORY, - SERVICE_UPDATE_LAST_CALLED, - STARTUP, -) -from .helpers import retry_async - -_LOGGER = logging.getLogger(__name__) - - -ACCOUNT_CONFIG_SCHEMA = vol.Schema( - { - vol.Required(CONF_EMAIL): cv.string, - vol.Required(CONF_PASSWORD): cv.string, - vol.Required(CONF_URL): cv.string, - vol.Optional(CONF_DEBUG, default=False): cv.boolean, - vol.Optional(CONF_INCLUDE_DEVICES, default=[]): vol.All( - cv.ensure_list, [cv.string] - ), - vol.Optional(CONF_EXCLUDE_DEVICES, default=[]): vol.All( - cv.ensure_list, [cv.string] - ), - vol.Optional(CONF_SCAN_INTERVAL, default=SCAN_INTERVAL): cv.time_period, - } -) - -CONFIG_SCHEMA = vol.Schema( - { - DOMAIN: vol.Schema( - { - vol.Optional(CONF_ACCOUNTS): vol.All( - cv.ensure_list, [ACCOUNT_CONFIG_SCHEMA] - ) - } - ) - }, - extra=vol.ALLOW_EXTRA, -) - -CLEAR_HISTORY_SCHEMA = vol.Schema( - { - vol.Optional(ATTR_EMAIL, default=[]): vol.All(cv.ensure_list, [cv.string]), - vol.Optional(ATTR_NUM_ENTRIES, default=50): vol.All( - int, vol.Range(min=1, max=50) - ), - } -) - -LAST_CALL_UPDATE_SCHEMA = vol.Schema( - {vol.Optional(ATTR_EMAIL, default=[]): vol.All(cv.ensure_list, [cv.string])} -) - - -async def async_setup(hass, config, discovery_info=None): - # pylint: disable=unused-argument - """Set up the Alexa domain.""" - if DOMAIN not in config: - return True - - domainconfig = config.get(DOMAIN) - for account in domainconfig[CONF_ACCOUNTS]: - entry_title = "{} - {}".format(account[CONF_EMAIL], account[CONF_URL]) - if entry_title in configured_instances(hass): - for entry in hass.config_entries.async_entries(DOMAIN): - if entry_title == entry.title: - hass.config_entries.async_update_entry( - entry, - data={ - CONF_EMAIL: account[CONF_EMAIL], - CONF_PASSWORD: account[CONF_PASSWORD], - CONF_URL: account[CONF_URL], - CONF_DEBUG: account[CONF_DEBUG], - CONF_INCLUDE_DEVICES: account[CONF_INCLUDE_DEVICES], - CONF_EXCLUDE_DEVICES: account[CONF_EXCLUDE_DEVICES], - CONF_SCAN_INTERVAL: account[ - CONF_SCAN_INTERVAL - ].total_seconds(), - }, - ) - break - else: - hass.async_create_task( - hass.config_entries.flow.async_init( - DOMAIN, - context={"source": SOURCE_IMPORT}, - data={ - CONF_EMAIL: account[CONF_EMAIL], - CONF_PASSWORD: account[CONF_PASSWORD], - CONF_URL: account[CONF_URL], - CONF_DEBUG: account[CONF_DEBUG], - CONF_INCLUDE_DEVICES: account[CONF_INCLUDE_DEVICES], - CONF_EXCLUDE_DEVICES: account[CONF_EXCLUDE_DEVICES], - CONF_SCAN_INTERVAL: account[CONF_SCAN_INTERVAL].total_seconds(), - }, - ) - ) - return True - - -@retry_async(limit=5, delay=5, catch_exceptions=True) -async def async_setup_entry(hass, config_entry): - """Set up Alexa Media Player as config entry.""" - - async def close_alexa_media(event=None) -> None: - """Clean up Alexa connections.""" - _LOGGER.debug("Received shutdown request: %s", event) - for email, _ in hass.data[DATA_ALEXAMEDIA]["accounts"].items(): - await close_connections(hass, email) - - hass.data.setdefault(DATA_ALEXAMEDIA, {"accounts": {}}) - from alexapy import AlexaLogin, __version__ as alexapy_version - - _LOGGER.info(STARTUP) - _LOGGER.info("Loaded alexapy==%s", alexapy_version) - hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, close_alexa_media) - account = config_entry.data - email = account.get(CONF_EMAIL) - password = account.get(CONF_PASSWORD) - url = account.get(CONF_URL) - hass.data[DATA_ALEXAMEDIA]["accounts"].setdefault( - email, - { - "config_entry": config_entry, - "setup_platform_callback": setup_platform_callback, - "test_login_status": test_login_status, - "devices": {"media_player": {}, "switch": {}}, - "entities": {"media_player": {}, "switch": {}}, - "excluded": {}, - "new_devices": True, - "websocket_lastattempt": 0, - "websocketerror": 0, - "websocket_commands": {}, - "websocket_activity": {"serials": {}, "refreshed": {}}, - "websocket": None, - "auth_info": None, - "configurator": [], - }, - ) - login = hass.data[DATA_ALEXAMEDIA]["accounts"][email].get( - "login_obj", - AlexaLogin(url, email, password, hass.config.path, account.get(CONF_DEBUG)), - ) - await login.login_with_cookie() - await test_login_status(hass, config_entry, login, setup_platform_callback) - return True - - -async def setup_platform_callback(hass, config_entry, login, callback_data): - """Handle response from configurator. - - Args: - callback_data (json): Returned data from configurator passed through - request_configuration and configuration_callback - - """ - _LOGGER.debug( - ( - "Configurator closed for Status: %s\n" - " got captcha: %s securitycode: %s" - " Claimsoption: %s AuthSelectOption: %s " - " VerificationCode: %s" - ), - login.status, - callback_data.get("captcha"), - callback_data.get("securitycode"), - callback_data.get("claimsoption"), - callback_data.get("authselectoption"), - callback_data.get("verificationcode"), - ) - await login.login(data=callback_data) - await test_login_status(hass, config_entry, login, setup_platform_callback) - - -async def request_configuration(hass, config_entry, login, setup_platform_callback): - """Request configuration steps from the user using the configurator.""" - - async def configuration_callback(callback_data): - """Handle the submitted configuration.""" - await hass.async_add_job( - setup_platform_callback, hass, config_entry, login, callback_data - ) - - configurator = hass.components.configurator - status = login.status - email = login.email - # links = "" - footer = "" - if "error_message" in status and status["error_message"]: - footer = ( - "\nNOTE: Actual Amazon error message in red below. " - "Remember password will be provided automatically" - " and Amazon error message normally appears first!" - ) - # if login.links: - # links = '\n\nGo to link with link# (e.g. link0)\n' + login.links - # Get Captcha - if ( - status - and "captcha_image_url" in status - and status["captcha_image_url"] is not None - ): - config_id = configurator.async_request_config( - "Alexa Media Player - Captcha - {}".format(email), - configuration_callback, - description=( - "Please enter the text for the captcha." - " Please hit confirm to reload image." - # + links - + footer - ), - description_image=status["captcha_image_url"], - submit_caption="Confirm", - fields=[{"id": "captcha", "name": "Captcha"}], - ) - elif ( - status and "securitycode_required" in status and status["securitycode_required"] - ): # Get 2FA code - config_id = configurator.async_request_config( - "Alexa Media Player - 2FA - {}".format(email), - configuration_callback, - description=( - "Please enter your Two-Factor Security code." - # + links - + footer - ), - submit_caption="Confirm", - fields=[{"id": "securitycode", "name": "Security Code"}], - ) - elif ( - status and "claimspicker_required" in status and status["claimspicker_required"] - ): # Get picker method - options = status["claimspicker_message"] - if options: - config_id = configurator.async_request_config( - "Alexa Media Player - Verification Method - {}".format(email), - configuration_callback, - description=( - "Please select the verification method. " - "(e.g., `sms` or `email`).\n{}".format(options) - # + links - + footer - ), - submit_caption="Confirm", - fields=[{"id": "claimsoption", "name": "Option"}], - ) - else: - await configuration_callback({}) - elif ( - status and "authselect_required" in status and status["authselect_required"] - ): # Get picker method - options = status["authselect_message"] - if options: - config_id = configurator.async_request_config( - "Alexa Media Player - OTP Method - {}".format(email), - configuration_callback, - description=( - "Please select the OTP method. " - "(e.g., `0`, `1`).
{}".format(options) - # + links - + footer - ), - submit_caption="Confirm", - fields=[{"id": "authselectoption", "name": "Option"}], - ) - else: - await configuration_callback({}) - elif ( - status - and "verificationcode_required" in status - and status["verificationcode_required"] - ): # Get picker method - config_id = configurator.async_request_config( - "Alexa Media Player - Verification Code - {}".format(email), - configuration_callback, - description=( - "Please enter received verification code." - # + links - + footer - ), - submit_caption="Confirm", - fields=[{"id": "verificationcode", "name": "Verification Code"}], - ) - else: # Check login - config_id = configurator.async_request_config( - "Alexa Media Player - Begin - {}".format(email), - configuration_callback, - description=("Please hit confirm to begin login attempt."), - submit_caption="Confirm", - fields=[], - ) - hass.data[DATA_ALEXAMEDIA]["accounts"][email]["configurator"].append(config_id) - if "error_message" in status and status["error_message"]: - configurator.async_notify_errors(config_id, status["error_message"]) - if len(hass.data[DATA_ALEXAMEDIA]["accounts"][email]["configurator"]) > 1: - configurator.async_request_done( - (hass.data[DATA_ALEXAMEDIA]["accounts"][email]["configurator"]).pop(0) - ) - - -async def test_login_status(hass, config_entry, login, setup_platform_callback) -> None: - """Test the login status and spawn requests for info.""" - _LOGGER.debug("Testing login status: %s", login.status) - if "login_successful" in login.status and login.status["login_successful"]: - _LOGGER.debug("Setting up Alexa devices for %s", hide_email(login.email)) - await hass.async_add_job(setup_alexa, hass, config_entry, login) - return - if "captcha_required" in login.status and login.status["captcha_required"]: - _LOGGER.debug("Creating configurator to request captcha") - elif ( - "securitycode_required" in login.status - and login.status["securitycode_required"] - ): - _LOGGER.debug("Creating configurator to request 2FA") - elif ( - "claimspicker_required" in login.status - and login.status["claimspicker_required"] - ): - _LOGGER.debug("Creating configurator to select verification option") - elif "authselect_required" in login.status and login.status["authselect_required"]: - _LOGGER.debug("Creating configurator to select OTA option") - elif ( - "verificationcode_required" in login.status - and login.status["verificationcode_required"] - ): - _LOGGER.debug("Creating configurator to enter verification code") - elif "login_failed" in login.status and login.status["login_failed"]: - _LOGGER.debug("Creating configurator to start new login attempt") - await hass.async_add_job( - request_configuration, hass, config_entry, login, setup_platform_callback - ) - - -async def setup_alexa(hass, config_entry, login_obj): - """Set up a alexa api based on host parameter.""" - - def _existing_serials() -> List: - email: Text = login_obj.email - existing_serials = ( - list( - hass.data[DATA_ALEXAMEDIA]["accounts"][email]["entities"][ - "media_player" - ].keys() - ) - if "entities" in (hass.data[DATA_ALEXAMEDIA]["accounts"][email]) - else [] - ) - for serial in existing_serials: - device = hass.data[DATA_ALEXAMEDIA]["accounts"][email]["devices"][ - "media_player" - ][serial] - if "appDeviceList" in device and device["appDeviceList"]: - apps = list( - map( - lambda x: x["serialNumber"] if "serialNumber" in x else None, - device["appDeviceList"], - ) - ) - # _LOGGER.debug("Combining %s with %s", - # existing_serials, apps) - existing_serials = existing_serials + apps - return existing_serials - - @util.Throttle(MIN_TIME_BETWEEN_SCANS, MIN_TIME_BETWEEN_FORCED_SCANS) - async def update_devices(login_obj): - """Ping Alexa API to identify all devices, bluetooth, and last called device. - - This will add new devices and services when discovered. By default this - runs every SCAN_INTERVAL seconds unless another method calls it. if - websockets is connected, it will increase the delay 10-fold between updates. - While throttled at MIN_TIME_BETWEEN_SCANS, care should be taken to - reduce the number of runs to avoid flooding. Slow changing states - should be checked here instead of in spawned components like - media_player since this object is one per account. - Each AlexaAPI call generally results in two webpage requests. - """ - from alexapy import AlexaAPI - - email: Text = login_obj.email - if email not in hass.data[DATA_ALEXAMEDIA]["accounts"]: - return - existing_serials = _existing_serials() - existing_entities = hass.data[DATA_ALEXAMEDIA]["accounts"][email]["entities"][ - "media_player" - ].values() - websocket_enabled = hass.data[DATA_ALEXAMEDIA]["accounts"][email].get( - "websocket" - ) - auth_info = hass.data[DATA_ALEXAMEDIA]["accounts"][email].get("auth_info") - new_devices = hass.data[DATA_ALEXAMEDIA]["accounts"][email]["new_devices"] - devices = {} - bluetooth = {} - preferences = {} - dnd = {} - raw_notifications = {} - try: - if new_devices: - auth_info = await AlexaAPI.get_authentication(login_obj) - devices = await AlexaAPI.get_devices(login_obj) - bluetooth = await AlexaAPI.get_bluetooth(login_obj) - preferences = await AlexaAPI.get_device_preferences(login_obj) - dnd = await AlexaAPI.get_dnd_state(login_obj) - raw_notifications = await AlexaAPI.get_notifications(login_obj) - _LOGGER.debug( - "%s: Found %s devices, %s bluetooth", - hide_email(email), - len(devices) if devices is not None else "", - len(bluetooth.get("bluetoothStates", [])) - if bluetooth is not None - else "", - ) - if (devices is None or bluetooth is None) and not ( - hass.data[DATA_ALEXAMEDIA]["accounts"][email]["configurator"] - ): - raise AlexapyLoginError() - except (AlexapyLoginError, RuntimeError): - _LOGGER.debug( - "%s: Alexa API disconnected; attempting to relogin", hide_email(email) - ) - await login_obj.login_with_cookie() - await test_login_status( - hass, config_entry, login_obj, setup_platform_callback - ) - return - await process_notifications(login_obj, raw_notifications) - # Process last_called data to fire events - await update_last_called(login_obj) - - new_alexa_clients = [] # list of newly discovered device names - exclude_filter = [] - include_filter = [] - - for device in devices: - serial = device["serialNumber"] - dev_name = device["accountName"] - if include and dev_name not in include: - include_filter.append(dev_name) - if "appDeviceList" in device: - for app in device["appDeviceList"]: - ( - hass.data[DATA_ALEXAMEDIA]["accounts"][email]["excluded"][ - app["serialNumber"] - ] - ) = device - hass.data[DATA_ALEXAMEDIA]["accounts"][email]["excluded"][ - serial - ] = device - continue - elif exclude and dev_name in exclude: - exclude_filter.append(dev_name) - if "appDeviceList" in device: - for app in device["appDeviceList"]: - ( - hass.data[DATA_ALEXAMEDIA]["accounts"][email]["excluded"][ - app["serialNumber"] - ] - ) = device - hass.data[DATA_ALEXAMEDIA]["accounts"][email]["excluded"][ - serial - ] = device - continue - - if "bluetoothStates" in bluetooth: - for b_state in bluetooth["bluetoothStates"]: - if serial == b_state["deviceSerialNumber"]: - device["bluetooth_state"] = b_state - break - - if "devicePreferences" in preferences: - for dev in preferences["devicePreferences"]: - if dev["deviceSerialNumber"] == serial: - device["locale"] = dev["locale"] - device["timeZoneId"] = dev["timeZoneId"] - _LOGGER.debug( - "%s: Locale %s timezone %s", - dev_name, - device["locale"], - device["timeZoneId"], - ) - break - - if "doNotDisturbDeviceStatusList" in dnd: - for dev in dnd["doNotDisturbDeviceStatusList"]: - if dev["deviceSerialNumber"] == serial: - device["dnd"] = dev["enabled"] - _LOGGER.debug("%s: DND %s", dev_name, device["dnd"]) - hass.data[DATA_ALEXAMEDIA]["accounts"][email]["devices"][ - "switch" - ].setdefault(serial, {"dnd": True}) - - break - hass.data[DATA_ALEXAMEDIA]["accounts"][email]["auth_info"] = device[ - "auth_info" - ] = auth_info - hass.data[DATA_ALEXAMEDIA]["accounts"][email]["devices"]["media_player"][ - serial - ] = device - - if serial not in existing_serials: - new_alexa_clients.append(dev_name) - elif serial in existing_entities: - await hass.data[DATA_ALEXAMEDIA]["accounts"][email]["entities"][ - "media_player" - ].get(serial).refresh(device, no_api=True) - _LOGGER.debug( - "%s: Existing: %s New: %s;" - " Filtered out by not being in include: %s " - "or in exclude: %s", - hide_email(email), - list(existing_entities), - new_alexa_clients, - include_filter, - exclude_filter, - ) - - if new_alexa_clients: - cleaned_config = config.copy() - cleaned_config.pop(CONF_PASSWORD, None) - # CONF_PASSWORD contains sensitive info which is no longer needed - for component in ALEXA_COMPONENTS: - if component == "notify": - hass.async_create_task( - async_load_platform( - hass, - component, - DOMAIN, - {CONF_NAME: DOMAIN, "config": cleaned_config}, - config, - ) - ) - else: - hass.async_add_job( - hass.config_entries.async_forward_entry_setup( - config_entry, component - ) - ) - - hass.data[DATA_ALEXAMEDIA]["accounts"][email]["new_devices"] = False - async_call_later( - hass, - scan_interval if not websocket_enabled else scan_interval * 10, - lambda _: hass.async_create_task( - update_devices( # pylint: disable=unexpected-keyword-arg - login_obj, no_throttle=True - ) - ), - ) - - async def process_notifications(login_obj, raw_notifications=None): - """Process raw notifications json.""" - from alexapy import AlexaAPI - - if not raw_notifications: - raw_notifications = await AlexaAPI.get_notifications(login_obj) - email: Text = login_obj.email - notifications = {"process_timestamp": datetime.utcnow()} - for notification in raw_notifications: - n_dev_id = notification["deviceSerialNumber"] - n_type = notification["type"] - if n_type == "MusicAlarm": - n_type = "Alarm" - n_id = notification["notificationIndex"] - n_date = notification["originalDate"] - n_time = notification["originalTime"] - notification["date_time"] = f"{n_date} {n_time}" - if n_dev_id not in notifications: - notifications[n_dev_id] = {} - if n_type not in notifications[n_dev_id]: - notifications[n_dev_id][n_type] = {} - notifications[n_dev_id][n_type][n_id] = notification - hass.data[DATA_ALEXAMEDIA]["accounts"][email]["notifications"] = notifications - _LOGGER.debug( - "%s: Updated %s notifications for %s devices at %s", - hide_email(email), - len(raw_notifications), - len(notifications), - dt.as_local( - hass.data[DATA_ALEXAMEDIA]["accounts"][email]["notifications"][ - "process_timestamp" - ] - ), - ) - - async def update_last_called(login_obj, last_called=None): - """Update the last called device for the login_obj. - - This will store the last_called in hass.data and also fire an event - to notify listeners. - """ - from alexapy import AlexaAPI - - if not last_called: - last_called = await AlexaAPI.get_last_device_serial(login_obj) - _LOGGER.debug( - "%s: Updated last_called: %s", hide_email(email), hide_serial(last_called) - ) - stored_data = hass.data[DATA_ALEXAMEDIA]["accounts"][email] - if ( - "last_called" in stored_data and last_called != stored_data["last_called"] - ) or ("last_called" not in stored_data and last_called is not None): - _LOGGER.debug( - "%s: last_called changed: %s to %s", - hide_email(email), - hide_serial( - stored_data["last_called"] if "last_called" in stored_data else None - ), - hide_serial(last_called), - ) - hass.bus.async_fire( - f"{DOMAIN}_{hide_email(email)}"[0:32], - {"last_called_change": last_called}, - ) - (hass.data[DATA_ALEXAMEDIA]["accounts"][email]["last_called"]) = last_called - - async def update_bluetooth_state(login_obj, device_serial): - """Update the bluetooth state on ws bluetooth event.""" - from alexapy import AlexaAPI - - bluetooth = await AlexaAPI.get_bluetooth(login_obj) - device = hass.data[DATA_ALEXAMEDIA]["accounts"][email]["devices"][ - "media_player" - ][device_serial] - - if "bluetoothStates" in bluetooth: - for b_state in bluetooth["bluetoothStates"]: - if device_serial == b_state["deviceSerialNumber"]: - # _LOGGER.debug("%s: setting value for: %s to %s", - # hide_email(email), - # hide_serial(device_serial), - # hide_serial(b_state)) - device["bluetooth_state"] = b_state - return device["bluetooth_state"] - _LOGGER.debug( - "%s: get_bluetooth for: %s failed with %s", - hide_email(email), - hide_serial(device_serial), - hide_serial(bluetooth), - ) - return None - - async def clear_history(call): - """Handle clear history service request. - - Arguments - call.ATTR_EMAIL {List[str: None]} -- Case-sensitive Alexa emails. - Default is all known emails. - call.ATTR_NUM_ENTRIES {int: 50} -- Number of entries to delete. - - Returns - bool -- True if deletion successful - - """ - from alexapy import AlexaAPI - - requested_emails = call.data.get(ATTR_EMAIL) - items: int = int(call.data.get(ATTR_NUM_ENTRIES)) - - _LOGGER.debug( - "Service clear_history called for: %i items for %s", items, requested_emails - ) - for email, account_dict in hass.data[DATA_ALEXAMEDIA]["accounts"].items(): - if requested_emails and email not in requested_emails: - continue - login_obj = account_dict["login_obj"] - return await AlexaAPI.clear_history(login_obj, items) - - async def last_call_handler(call): - """Handle last call service request. - - Args: - call.ATTR_EMAIL: List of case-sensitive Alexa email addresses. If None - all accounts are updated. - - """ - requested_emails = call.data.get(ATTR_EMAIL) - _LOGGER.debug("Service update_last_called for: %s", requested_emails) - for email, account_dict in hass.data[DATA_ALEXAMEDIA]["accounts"].items(): - if requested_emails and email not in requested_emails: - continue - login_obj = account_dict["login_obj"] - await update_last_called(login_obj) - - async def ws_connect() -> WebsocketEchoClient: - """Open WebSocket connection. - - This will only attempt one login before failing. - """ - websocket: Optional[WebsocketEchoClient] = None - try: - websocket = WebsocketEchoClient( - login_obj, - ws_handler, - ws_open_handler, - ws_close_handler, - ws_error_handler, - ) - _LOGGER.debug("%s: Websocket created: %s", hide_email(email), websocket) - await websocket.async_run() - except BaseException as exception_: # pylint: disable=broad-except - _LOGGER.debug( - "%s: Websocket creation failed: %s", hide_email(email), exception_ - ) - return - return websocket - - async def ws_handler(message_obj): - """Handle websocket messages. - - This allows push notifications from Alexa to update last_called - and media state. - """ - import time - - command = ( - message_obj.json_payload["command"] - if isinstance(message_obj.json_payload, dict) - and "command" in message_obj.json_payload - else None - ) - json_payload = ( - message_obj.json_payload["payload"] - if isinstance(message_obj.json_payload, dict) - and "payload" in message_obj.json_payload - else None - ) - existing_serials = _existing_serials() - seen_commands = hass.data[DATA_ALEXAMEDIA]["accounts"][email][ - "websocket_commands" - ] - if command and json_payload: - - _LOGGER.debug( - "%s: Received websocket command: %s : %s", - hide_email(email), - command, - hide_serial(json_payload), - ) - serial = None - if command not in seen_commands: - seen_commands[command] = time.time() - _LOGGER.debug("Adding %s to seen_commands: %s", command, seen_commands) - if ( - "dopplerId" in json_payload - and "deviceSerialNumber" in json_payload["dopplerId"] - ): - serial = json_payload["dopplerId"]["deviceSerialNumber"] - elif ( - "key" in json_payload - and "entryId" in json_payload["key"] - and json_payload["key"]["entryId"].find("#") != -1 - ): - serial = (json_payload["key"]["entryId"]).split("#")[2] - else: - serial = None - if command == "PUSH_ACTIVITY": - # Last_Alexa Updated - last_called = { - "serialNumber": serial, - "timestamp": json_payload["timestamp"], - } - if serial and serial in existing_serials: - await update_last_called(login_obj, last_called) - hass.bus.async_fire( - f"{DOMAIN}_{hide_email(email)}"[0:32], - {"push_activity": json_payload}, - ) - elif command in ( - "PUSH_AUDIO_PLAYER_STATE", - "PUSH_MEDIA_CHANGE", - "PUSH_MEDIA_PROGRESS_CHANGE", - ): - # Player update/ Push_media from tune_in - if serial and serial in existing_serials: - _LOGGER.debug( - "Updating media_player: %s", hide_serial(json_payload) - ) - hass.bus.async_fire( - f"{DOMAIN}_{hide_email(email)}"[0:32], - {"player_state": json_payload}, - ) - elif command == "PUSH_VOLUME_CHANGE": - # Player volume update - if serial and serial in existing_serials: - _LOGGER.debug( - "Updating media_player volume: %s", hide_serial(json_payload) - ) - hass.bus.async_fire( - f"{DOMAIN}_{hide_email(email)}"[0:32], - {"player_state": json_payload}, - ) - elif command in ( - "PUSH_DOPPLER_CONNECTION_CHANGE", - "PUSH_EQUALIZER_STATE_CHANGE", - ): - # Player availability update - if serial and serial in existing_serials: - _LOGGER.debug( - "Updating media_player availability %s", - hide_serial(json_payload), - ) - hass.bus.async_fire( - f"{DOMAIN}_{hide_email(email)}"[0:32], - {"player_state": json_payload}, - ) - elif command == "PUSH_BLUETOOTH_STATE_CHANGE": - # Player bluetooth update - bt_event = json_payload["bluetoothEvent"] - bt_success = json_payload["bluetoothEventSuccess"] - if ( - serial - and serial in existing_serials - and bt_success - and bt_event - and bt_event in ["DEVICE_CONNECTED", "DEVICE_DISCONNECTED"] - ): - _LOGGER.debug( - "Updating media_player bluetooth %s", hide_serial(json_payload) - ) - bluetooth_state = await update_bluetooth_state(login_obj, serial) - # _LOGGER.debug("bluetooth_state %s", - # hide_serial(bluetooth_state)) - if bluetooth_state: - hass.bus.async_fire( - f"{DOMAIN}_{hide_email(email)}"[0:32], - {"bluetooth_change": bluetooth_state}, - ) - elif command == "PUSH_MEDIA_QUEUE_CHANGE": - # Player availability update - if serial and serial in existing_serials: - _LOGGER.debug( - "Updating media_player queue %s", hide_serial(json_payload) - ) - hass.bus.async_fire( - f"{DOMAIN}_{hide_email(email)}"[0:32], - {"queue_state": json_payload}, - ) - elif command == "PUSH_NOTIFICATION_CHANGE": - # Player update - await process_notifications(login_obj) - if serial and serial in existing_serials: - _LOGGER.debug( - "Updating mediaplayer notifications: %s", - hide_serial(json_payload), - ) - hass.bus.async_fire( - f"{DOMAIN}_{hide_email(email)}"[0:32], - {"notification_update": json_payload}, - ) - elif command in [ - "PUSH_DELETE_DOPPLER_ACTIVITIES", # delete Alexa history - "PUSH_LIST_ITEM_CHANGE", # update shopping list - "PUSH_CONTENT_FOCUS_CHANGE", # likely prime related refocus - ]: - pass - else: - _LOGGER.warning( - "Unhandled command: %s with data %s. Please report at %s", - command, - hide_serial(json_payload), - ISSUE_URL, - ) - if serial in existing_serials: - hass.data[DATA_ALEXAMEDIA]["accounts"][email]["websocket_activity"][ - "serials" - ][serial] = time.time() - if ( - serial - and serial not in existing_serials - and serial - not in ( - hass.data[DATA_ALEXAMEDIA]["accounts"][email]["excluded"].keys() - ) - ): - _LOGGER.debug("Discovered new media_player %s", serial) - (hass.data[DATA_ALEXAMEDIA]["accounts"][email]["new_devices"]) = True - await update_devices( # pylint: disable=unexpected-keyword-arg - login_obj, no_throttle=True - ) - - async def ws_open_handler(): - """Handle websocket open.""" - import time - - email: Text = login_obj.email - _LOGGER.debug("%s: Websocket succesfully connected", hide_email(email)) - ( - hass.data[DATA_ALEXAMEDIA]["accounts"][email]["websocketerror"] - ) = 0 # set errors to 0 - ( - hass.data[DATA_ALEXAMEDIA]["accounts"][email]["websocket_lastattempt"] - ) = time.time() - - async def ws_close_handler(): - """Handle websocket close. - - This should attempt to reconnect up to 5 times - """ - from asyncio import sleep - import time - - email: Text = login_obj.email - errors: int = (hass.data[DATA_ALEXAMEDIA]["accounts"][email]["websocketerror"]) - delay: int = 5 * 2 ** errors - last_attempt = hass.data[DATA_ALEXAMEDIA]["accounts"][email][ - "websocket_lastattempt" - ] - now = time.time() - if (now - last_attempt) < delay: - return - while errors < 5 and not ( - hass.data[DATA_ALEXAMEDIA]["accounts"][email]["websocket"] - ): - _LOGGER.debug( - "%s: Websocket closed; reconnect #%i in %is", - hide_email(email), - errors, - delay, - ) - await sleep(delay) - ( - hass.data[DATA_ALEXAMEDIA]["accounts"][email]["websocket_lastattempt"] - ) = time.time() - ( - hass.data[DATA_ALEXAMEDIA]["accounts"][email]["websocket"] - ) = await ws_connect() - errors += 1 - delay = 5 * 2 ** errors - _LOGGER.debug( - "%s: Websocket closed; retries exceeded; polling", hide_email(email) - ) - (hass.data[DATA_ALEXAMEDIA]["accounts"][email]["websocket"]) = None - await update_devices( # pylint: disable=unexpected-keyword-arg - login_obj, no_throttle=True - ) - - async def ws_error_handler(message): - """Handle websocket error. - - This currently logs the error. In the future, this should invalidate - the websocket and determine if a reconnect should be done. By - specification, websockets will issue a close after every error. - """ - email = login_obj.email - errors = hass.data[DATA_ALEXAMEDIA]["accounts"][email]["websocketerror"] - _LOGGER.debug( - "%s: Received websocket error #%i %s", hide_email(email), errors, message - ) - (hass.data[DATA_ALEXAMEDIA]["accounts"][email]["websocket"]) = None - (hass.data[DATA_ALEXAMEDIA]["accounts"][email]["websocketerror"]) = errors + 1 - - config = config_entry.data - email = config.get(CONF_EMAIL) - include = config.get(CONF_INCLUDE_DEVICES) - exclude = config.get(CONF_EXCLUDE_DEVICES) - scan_interval: float = ( - config.get(CONF_SCAN_INTERVAL).total_seconds() - if isinstance(config.get(CONF_SCAN_INTERVAL), timedelta) - else config.get(CONF_SCAN_INTERVAL) - ) - hass.data[DATA_ALEXAMEDIA]["accounts"][email]["login_obj"] = login_obj - hass.data[DATA_ALEXAMEDIA]["accounts"][email]["websocket"] = await ws_connect() - await update_devices( # pylint: disable=unexpected-keyword-arg - login_obj, no_throttle=True - ) - hass.services.async_register( - DOMAIN, - SERVICE_UPDATE_LAST_CALLED, - last_call_handler, - schema=LAST_CALL_UPDATE_SCHEMA, - ) - hass.services.async_register( - DOMAIN, SERVICE_CLEAR_HISTORY, clear_history, schema=CLEAR_HISTORY_SCHEMA - ) - # Clear configurator. We delay till here to avoid leaving a modal orphan - await clear_configurator(hass, email) - return True - - -async def async_unload_entry(hass, entry) -> bool: - """Unload a config entry.""" - hass.services.async_remove(DOMAIN, SERVICE_UPDATE_LAST_CALLED) - hass.services.async_remove(DOMAIN, SERVICE_CLEAR_HISTORY) - for component in ALEXA_COMPONENTS: - await hass.config_entries.async_forward_entry_unload(entry, component) - # notify has to be handled manually as the forward does not work yet - from .notify import async_unload_entry as notify_async_unload_entry - - await notify_async_unload_entry(hass, entry) - email = entry.data["email"] - await close_connections(hass, email) - await clear_configurator(hass, email) - hass.data[DATA_ALEXAMEDIA]["accounts"].pop(email) - _LOGGER.debug("Unloaded entry for %s", hide_email(email)) - return True - - -async def clear_configurator(hass, email: Text) -> None: - """Clear open configurators for email.""" - if email not in hass.data[DATA_ALEXAMEDIA]["accounts"]: - return - if "configurator" in hass.data[DATA_ALEXAMEDIA]["accounts"][email]: - for config_id in hass.data[DATA_ALEXAMEDIA]["accounts"][email]["configurator"]: - configurator = hass.components.configurator - configurator.async_request_done(config_id) - hass.data[DATA_ALEXAMEDIA]["accounts"][email]["configurator"] = [] - - -async def close_connections(hass, email: Text) -> None: - """Clear open aiohttp connections for email.""" - if ( - email not in hass.data[DATA_ALEXAMEDIA]["accounts"] - or "login_obj" not in hass.data[DATA_ALEXAMEDIA]["accounts"][email] - ): - return - account_dict = hass.data[DATA_ALEXAMEDIA]["accounts"][email] - login_obj = account_dict["login_obj"] - await login_obj.close() - _LOGGER.debug( - "%s: Connection closed: %s", hide_email(email), login_obj._session.closed - ) - await clear_configurator(hass, email) diff --git a/custom_components/alexa_media/__pycache__/__init__.cpython-37.pyc b/custom_components/alexa_media/__pycache__/__init__.cpython-37.pyc deleted file mode 100644 index 65328385bfe106375ba63ed5efd4acbae2d45c15..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 23707 zcmbt+eQ+Gfb>DpKHx`S<5&!`bB!^#j1djyoPItP~9d#B6fJdA`fC9iHZ+!CJVrM`s zxL@pG;?gHSQ;}G1Qo}T`i?tZV|`@Pq5rMEYw;NSoJ#r%wf1sP- zUk;Ja;OBf-Qxr=v6-%|WvRYA1wW67tO80tMH+5Vi>bycVmegIfgtWCu>(FD(oRT@wgJ(aYm2=iW*t=um&G%s82(y zZ+=`Y)T(*Sx@ZkqhaalujQxr=jK2}<$Yb3)YK=Zrwp8;i>zH-?p<@2Lb;2@mowao9 z)Z#LHD;a1{b$4b=d263U$FE=Wo*3p z$En3eyXOLlR!cF~gUUo22>kmF*-wn~MIXmG<87hT&y zpPh?U+qP`$(#x-Y@)Ms*eMpo#rg;gg;M#7fVtYvnExYU%=Eig{GK*Hc#C)B)Qz(0p zC41c+i+KI~#`TTa+MQB$T8NtP4&Absom%m(?M|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4a9dCA@&UzGbG=fF&WxO{O=PnFp_MKr59xZV$VYL5^xK_*I8>-e1edy5EhS7 z*GT`6M%toa&qxy;9Ho)YA)?^ZQ$rAK$j2#zG0(we0;#lrEaG!+d3-B2pQlg!D7+7N zaR>zDEAPeNYDKCpDpCZ^haf#bdMm^!#@h?4C8S|^z4S?0`08M*z!znCS29Pt(#9nh zVMYN7%3#JwK>&FEv2@?(}!q~JwHsMBPd zmS*WuiXEeXw_x6k4Z1x^!6^z(Q*efYvlP&ND*56$#JqU$vSW0Ygonv2rVC#~NaWf7 z7E?(a&x%$D{;JYn<%%@W=J^i84A4p9F|`dGeU@dI&wqV=PNG%N+DS zBujwU)tNVgO}q!+VV%E~pT51cFyZmnbi-$YxSAJTz*!4he2BRCPZUg2P@~`$1;0$e zZ3@1Qz>83KBoAlK%{;ulo;gOG7pFoiHLFp!-=G!etRNt7z64xxfhyq7U<)h75-`4B z%K=HyBZ$!-F=j$E(%Mi2UvVJge3YJ!B7F#kxKokT_|Wr-BZ)6$PA0yn1b?YaF5B~e E0hh0Ka{vGU diff --git a/custom_components/alexa_media/__pycache__/alarm_control_panel.cpython-37.pyc b/custom_components/alexa_media/__pycache__/alarm_control_panel.cpython-37.pyc deleted file mode 100644 index 189b96039f6959f881d26e90a36827a785b08cca..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8136 zcmc&(O>7)TcJ9CV9}a&-iIOa}X-n~}tx>X@*jYnSmgbBk?ouN`q$0WFxYL{}l1+9` zkE(lQaWG6akb>l5Acp`sYyyx#E(`2Em)v~KDaffWIRpqSAlD?o28i>$s^)Mgi5umV z8FY1Zb^W}0^?tth`m>3NvWDNkfBeT^e*SBk_Am5s^vj|0BV6&fD46DGOlL-*J38)W zV1%Y)hL&T6IVY#nJ1fYC1*ahExu6)9oRX~PgK}7LDq+>B%I88b5!Rd<>P1!xCc`Ob zDx7wv!x?8LoONcyIp<6`@63m1owMON=bY?U4i>`m&iU|yb0NIwT+}tLAH2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8LQ=QVuef; zx2L^`NN91;Mu%rm8jxg@v47H*Dt7_SkXe#Z&x52;2OD*q7`;N(4LT(`YsBx6~)!$)`K!TP< zJSeU|cnkC3LU~rGCQdQ_m}->C^L;7~sBoz`q~eGQN)ko1*Ry$I8!3|Gb0`+^1SSd{ z`=ZHdr8uTfEArs7t{FczwC;CEKrg(;e-7AapzM2ed4s#0Aikf;;Elpdv>&Cz;~IWB z!a0fmgbE5nqdfhSLic|Z;w2b4*M|!w9HqpEFmy=~zZY4m8B`1qnPNW*cX*Bl#?B8M zI9`p;*7G!`l%GTf?v3iTuL zbEMx{*;?DgUPd~1_Ho+faQu^jI4PzJU9nIvTklA}9;?U=5-OnMB@ODTL*ePB$JD9R Nm08_TbLmm}e*l$eE;IlD diff --git a/custom_components/alexa_media/__pycache__/const.cpython-37.pyc b/custom_components/alexa_media/__pycache__/const.cpython-37.pyc deleted file mode 100644 index 33577c805e8723d34ad9cf9008cba953dfe8e4fb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1450 zcmbtU&2QT_6t^6IDshtLt6hfyx(29iU`2~GD26Gv(s{7uz>?FJhY^hU91D;{L!`1g zMX~#U{SWJL|Ibdm?vy`Z7_ifx6PWzQJ33lW$#CNsDijP5yvv@g1_wcgX|3M|Su=+2sdhk3S^){1G|eU*P$5 zScBTfHS&-@_DY9eUjJ@-*m&a=+Z_0b*hC0;PQ=pcSK$fOc+8^wi4FiF`hplE?Z zS2*44#`_PUlo?39{)zi$50P$OuHfnt0+DceW1y}#KHaZtiBREesdrh#(wJhLN<~B$ zEP+VZB=Q~1@fQ*)Qr%!dATrEES2Lw*sU+rC16j(xu+X z7Mv-d5tE7rEQ)~ZdJIysOVCw_v3$CYcTGc(*MFJq&mZRd59T>m0tq3q{ffnR2= z__hA!*Bs2OrO2!~y8??PON`2SUG-eiOu08NXx=_z0oXCgD#)5c3dcFr=O^4Y-NQ$^ zPAN7grMi*xmG?_p&a1ah>DB5sl#=zc$@qJx=hNwAsB3wfGo_mY&zm|cQ-3_N2d>`g z+rCZhq4UNbIsJi6cFu}mkwOtnVj20-MX(Hj0P_C2P21`IR0zLaf@(IfAt^x z>3Gs}`nT@w0)_U*qqDK=xW1=by|H^r?Oty@%~i8d`_9SqmEJ4lf!iBS`ws0p=YyW( z-CCVD_pSRLrip&q8#?xcemC&^@#L+3d}p4X;Uyh9v^}5p?BUSq>kZrYCv@a^p8d+v zW}!Jq$WU(=vO677OmQ+m(7NZ_6MuU4TPZz6o{Q!04*m}$v+(lvDdOw+zo(c7N!3{_ pb>n3$coxAoO*}$A!KGqslq*KXF!L3sS;(7(ZDq;5_-R&*e*hNVx|{$2 diff --git a/custom_components/alexa_media/__pycache__/helpers.cpython-37.pyc b/custom_components/alexa_media/__pycache__/helpers.cpython-37.pyc deleted file mode 100644 index 6f94a99ee1c39691dee8d8014d5771d8d6c70f30..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4769 zcmbVQ&2JmW6`%cHQj{!NiY=usut}q&bR#KgzSY2p5;?I0#|;t{c8RvciZc{fS}vKH zWhF987pPrWMS(QO9t@P~t%u(F2NdW(&_hpq?a4q-Eqdvxzc))#R_x}GCHC!nzIikA z-tWD~cV}nI49|aF|HaS#w8Gdws4{tc6yCwB{tUudjd6pUu~9SdwPLev)vUH%v)fM1 zX}dMopnf~{+J4P%mue+lcj9t;rZ%I?Zd_^4)@D)mxF658&(+QuOc4D43eCD20TjERNDRDt83Y*V8u=zPYkJgK*Ej%#zdA@kh zt}S!(Q&xRy@b~gH5qE_Qn!TivMx8_j&5jJVVsR7(9|<0X!N+mf7jnH^ejgp}juZhG zX&A*S2zNWZG)P;K3c7KaVq*J6ltidRAVm{g(+;{Zq0{KKMUsZJLJ+3qR+@Iz=Eg>& z({A^YDDAJeI&HBQDix_TOw#qJvypCyMys>N#m}RLP-`KHgb{0Pl4=bLLaMb?s8mR` zmI%QG-+1lK*I#+7{1ErSZdUEw+DiJl|6Ul!;chH)`v$n@_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custom_components/alexa_media/__pycache__/notify.cpython-37.pyc deleted file mode 100644 index 2d2bfc51a11dc91e933946b2493da5d8f63aea08..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5665 zcmaJ_OKcm*8Q%AjD~ftpwk*YQ)=m|Kt{#n(rio*uQEbUkADxmFIxYGY!|XpDywwFz1BmHwoE?oh5x z`4gV$6}+NnJypF)Z^SD-kq_kBdH;ep`i<b>XM!k!cwHh-!jG1qHe(DB|#CA91R%)j^ zL1H%>Zn_n-a2_?^O?;dATRyYX7{gc)*IS_fm2ih{JWxD$u| zf}12klDbj47{p8Il3(A67rgvX3oacIGZsSM3)}^4*zwsy>L;nsl7-0kJ>OgU@jGw7 z`L6XGY?n4F1}`pGs}G#p%hhE*BC6Hp2X|Jg+{znk)%6uVd0cmHudFVAyk6zyhbs?0 zS-Z93Y}~7^t$xO*Kg5+bPH^R6&XngeHmc~{x^-`3)mgc_ytdBAXggcHM81aFV);dGwfg3wZyEH)*11Z)MW1l*%(uz8R^n97?yPFYbS?^wgf# zUd=R5!H7B>xsDONXJk4?w0vaGWQ(cVhbpFerXI*CMi1me6)I>vl=c@NN&8ceq}0r$ z0~u;$cCX&?NgGH%!uV_@;sv)}k6TfiaC0D7UJ?Rza)I&!)Fem)Kk2?Pm)x-LlCVj; zAZ&Y1sHWYBUC7$*`00Dt3PVA(Ejm{#1+IB+>N2uTt_P_fVk2k$-km!u4~U7It!-Aq z7#pPt7lqoNA=iq@wH+uUH|lY;6>Rge7bNxgu@4~y(N@gO!8LekP;tDVo^o~1?{L}q zqr`py`u`>UrsYfZR+7e{18r}{5iXc432k=7&6k9^brzc)J|Q%~+4fUsV0M>4Cz(Vc zX_w?#d0f_HMK)whDaq_L^g?+IC{K$;by696NDYd3g(~z>$>dxSdhk0vwcQqqLE^{T zSA}A1Li}0}!q1dFh5gb~Gacf;xqlU^qLZ4CQuH-3cOGhD?CO2P(+}ky#J_9y3u!U6 zzJ_9Crf1GbUrWDN4;5M3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*O@AEv)|+yDRo diff --git a/custom_components/alexa_media/alarm_control_panel.py b/custom_components/alexa_media/alarm_control_panel.py deleted file mode 100644 index 4f4ddd4..0000000 --- a/custom_components/alexa_media/alarm_control_panel.py +++ /dev/null @@ -1,298 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- -# SPDX-License-Identifier: Apache-2.0 -""" -Alexa Devices Alarm Control Panel using Guard Mode. - -For more details about this platform, please refer to the documentation at -https://community.home-assistant.io/t/echo-devices-alexa-as-media-player-testers-needed/58639 -""" -import logging -from typing import Dict, List, Text # noqa pylint: disable=unused-import - -from homeassistant import util -from homeassistant.components.alarm_control_panel import AlarmControlPanel -from homeassistant.const import STATE_ALARM_ARMED_AWAY, STATE_ALARM_DISARMED -from homeassistant.helpers.event import async_call_later - -from . import ( - CONF_EMAIL, - CONF_EXCLUDE_DEVICES, - CONF_INCLUDE_DEVICES, - DATA_ALEXAMEDIA, - DOMAIN as ALEXA_DOMAIN, - MIN_TIME_BETWEEN_FORCED_SCANS, - MIN_TIME_BETWEEN_SCANS, - hide_email, -) -from .helpers import _catch_login_errors, add_devices, retry_async - -_LOGGER = logging.getLogger(__name__) - -DEPENDENCIES = [ALEXA_DOMAIN] - - -@retry_async(limit=5, delay=2, catch_exceptions=True) -async def async_setup_platform( - hass, config, add_devices_callback, discovery_info=None -) -> bool: - """Set up the Alexa alarm control panel platform.""" - devices = [] # type: List[AlexaAlarmControlPanel] - account = config[CONF_EMAIL] - include_filter = config.get(CONF_INCLUDE_DEVICES, []) - exclude_filter = config.get(CONF_EXCLUDE_DEVICES, []) - account_dict = hass.data[DATA_ALEXAMEDIA]["accounts"][account] - if "alarm_control_panel" not in (account_dict["entities"]): - ( - hass.data[DATA_ALEXAMEDIA]["accounts"][account]["entities"][ - "alarm_control_panel" - ] - ) = {} - alexa_client: AlexaAlarmControlPanel = AlexaAlarmControlPanel( - account_dict["login_obj"] - ) - await alexa_client.init() - if not (alexa_client and alexa_client.unique_id): - _LOGGER.debug( - "%s: Skipping creation of uninitialized device: %s", - hide_email(account), - alexa_client, - ) - elif alexa_client.unique_id not in ( - account_dict["entities"]["alarm_control_panel"] - ): - devices.append(alexa_client) - ( - hass.data[DATA_ALEXAMEDIA]["accounts"][account]["entities"][ - "alarm_control_panel" - ][alexa_client.unique_id] - ) = alexa_client - else: - _LOGGER.debug( - "%s: Skipping already added device: %s", hide_email(account), alexa_client - ) - return await add_devices( - hide_email(account), - devices, - add_devices_callback, - include_filter, - exclude_filter, - ) - - -async def async_setup_entry(hass, config_entry, async_add_devices): - """Set up the Alexa alarm control panel platform by config_entry.""" - return await async_setup_platform( - hass, config_entry.data, async_add_devices, discovery_info=None - ) - - -async def async_unload_entry(hass, entry) -> bool: - """Unload a config entry.""" - account = entry.data[CONF_EMAIL] - account_dict = hass.data[DATA_ALEXAMEDIA]["accounts"][account] - for device in account_dict["entities"]["alarm_control_panel"].values(): - await device.async_remove() - return True - - -class AlexaAlarmControlPanel(AlarmControlPanel): - """Implementation of Alexa Media Player alarm control panel.""" - - def __init__(self, login) -> None: - # pylint: disable=unexpected-keyword-arg - """Initialize the Alexa device.""" - from alexapy import AlexaAPI - - # Class info - self._login = login - self.alexa_api = AlexaAPI(self, login) - self.alexa_api_session = login.session - self.account = hide_email(login.email) - - # Guard info - self._appliance_id = None - self._guard_entity_id = None - self._friendly_name = "Alexa Guard" - self._state = None - self._should_poll = False - self._attrs: Dict[Text, Text] = {} - - async def init(self): - """Initialize.""" - try: - from simplejson import JSONDecodeError - - data = await self.alexa_api.get_guard_details(self._login) - guard_dict = data["locationDetails"]["locationDetails"]["Default_Location"][ - "amazonBridgeDetails" - ]["amazonBridgeDetails"]["LambdaBridge_AAA/OnGuardSmartHomeBridgeService"][ - "applianceDetails" - ][ - "applianceDetails" - ] - except (KeyError, TypeError, JSONDecodeError): - guard_dict = {} - for _, value in guard_dict.items(): - if value["modelName"] == "REDROCK_GUARD_PANEL": - self._appliance_id = value["applianceId"] - self._guard_entity_id = value["entityId"] - self._friendly_name += " " + self._appliance_id[-5:] - _LOGGER.debug( - "%s: Discovered %s: %s %s", - self.account, - self._friendly_name, - self._appliance_id, - self._guard_entity_id, - ) - if not self._appliance_id: - _LOGGER.debug("%s: No Alexa Guard entity found", self.account) - - async def async_added_to_hass(self): - """Store register state change callback.""" - try: - if not self.enabled: - return - except AttributeError: - pass - # Register event handler on bus - self._listener = self.hass.bus.async_listen( - f"{ALEXA_DOMAIN}_{hide_email(self._login.email)}"[0:32], self._handle_event - ) - await self.async_update() - - async def async_will_remove_from_hass(self): - """Prepare to remove entity.""" - # Register event handler on bus - self._listener() - - def _handle_event(self, event): - """Handle websocket events. - - Used instead of polling. - """ - try: - if not self.enabled: - return - except AttributeError: - pass - if "push_activity" in event.data: - async_call_later( - self.hass, - 2, - lambda _: self.hass.async_create_task( - self.async_update(no_throttle=True) - ), - ) - - @util.Throttle(MIN_TIME_BETWEEN_SCANS, MIN_TIME_BETWEEN_FORCED_SCANS) - @_catch_login_errors - async def async_update(self): - """Update Guard state.""" - try: - if not self.enabled: - return - except AttributeError: - pass - import json - - _LOGGER.debug("%s: Refreshing %s", self.account, self.name) - state = None - state_json = await self.alexa_api.get_guard_state( - self._login, self._appliance_id - ) - # _LOGGER.debug("%s: state_json %s", self.account, state_json) - if state_json and "deviceStates" in state_json and state_json["deviceStates"]: - cap = state_json["deviceStates"][0]["capabilityStates"] - # _LOGGER.debug("%s: cap %s", self.account, cap) - for item_json in cap: - item = json.loads(item_json) - # _LOGGER.debug("%s: item %s", self.account, item) - if item["name"] == "armState": - state = item["value"] - # _LOGGER.debug("%s: state %s", self.account, state) - elif state_json["errors"]: - _LOGGER.debug( - "%s: Error refreshing alarm_control_panel %s: %s", - self.account, - self.name, - json.dumps(state_json["errors"]) if state_json else None, - ) - if state is None: - return - if state == "ARMED_AWAY": - self._state = STATE_ALARM_ARMED_AWAY - elif state == "ARMED_STAY": - self._state = STATE_ALARM_DISARMED - else: - self._state = STATE_ALARM_DISARMED - _LOGGER.debug("%s: Alarm State: %s", self.account, self.state) - self.async_schedule_update_ha_state() - - @_catch_login_errors - async def async_alarm_disarm(self, code=None) -> None: - # pylint: disable=unexpected-keyword-arg - """Send disarm command.""" - try: - if not self.enabled: - return - except AttributeError: - pass - await self.alexa_api.set_guard_state( - self._login, self._guard_entity_id, "ARMED_STAY" - ) - await self.async_update(no_throttle=True) - self.async_schedule_update_ha_state() - - @_catch_login_errors - async def async_alarm_arm_away(self, code=None) -> None: - """Send arm away command.""" - # pylint: disable=unexpected-keyword-arg - try: - if not self.enabled: - return - except AttributeError: - pass - await self.alexa_api.set_guard_state( - self._login, self._guard_entity_id, "ARMED_AWAY" - ) - await self.async_update(no_throttle=True) - self.async_schedule_update_ha_state() - - @property - def unique_id(self): - """Return the unique ID.""" - return self._guard_entity_id - - @property - def name(self): - """Return the name of the device.""" - return self._friendly_name - - @property - def state(self): - """Return the state of the device.""" - return self._state - - @property - def device_state_attributes(self): - """Return the state attributes.""" - return self._attrs - - @property - def should_poll(self): - """Return the polling state.""" - return self._should_poll or not ( - self.hass.data[DATA_ALEXAMEDIA]["accounts"][self._login.email]["websocket"] - ) - - @property - def supported_features(self) -> int: - """Return the list of supported features.""" - try: - from homeassistant.components.alarm_control_panel import ( - SUPPORT_ALARM_ARM_AWAY, - ) - except ImportError: - return 0 - return SUPPORT_ALARM_ARM_AWAY diff --git a/custom_components/alexa_media/config_flow.py b/custom_components/alexa_media/config_flow.py deleted file mode 100644 index ab85b8b..0000000 --- a/custom_components/alexa_media/config_flow.py +++ /dev/null @@ -1,378 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- -# SPDX-License-Identifier: Apache-2.0 -""" -Alexa Config Flow. - -For more details about this platform, please refer to the documentation at -https://community.home-assistant.io/t/echo-devices-alexa-as-media-player-testers-needed/58639 -""" -from collections import OrderedDict -import logging -from typing import Text - -from alexapy import AlexapyConnectionError -from homeassistant import config_entries -from homeassistant.const import ( - CONF_EMAIL, - CONF_NAME, - CONF_PASSWORD, - CONF_SCAN_INTERVAL, - CONF_URL, - EVENT_HOMEASSISTANT_STOP, -) -from homeassistant.core import callback -from homeassistant.helpers import config_validation as cv -import voluptuous as vol - -from .const import ( - CONF_DEBUG, - CONF_EXCLUDE_DEVICES, - CONF_INCLUDE_DEVICES, - DATA_ALEXAMEDIA, - DOMAIN, -) - -_LOGGER = logging.getLogger(__name__) - - -@callback -def configured_instances(hass): - """Return a set of configured Alexa Media instances.""" - return set(entry.title for entry in hass.config_entries.async_entries(DOMAIN)) - - -@config_entries.HANDLERS.register(DOMAIN) -class AlexaMediaFlowHandler(config_entries.ConfigFlow): - """Handle a Alexa Media config flow.""" - - VERSION = 1 - CONNECTION_CLASS = config_entries.CONN_CLASS_CLOUD_POLL - - def _update_ord_dict(self, old_dict: OrderedDict, new_dict: dict) -> OrderedDict: - result: OrderedDict = OrderedDict() - for k, v in old_dict.items(): - for key, value in new_dict.items(): - if k == key: - # _LOGGER.debug( - # "Replacing (%s:default(%s), %s) with (%s:default(%s), %s)", - # k, - # k.default() if hasattr(k.default, '__call__') else "", - # v, - # key, - # key.default() if hasattr(key.default, '__call__') else "", - # value, - # ) - result.update([(key, value)]) - break - if k not in result: - # _LOGGER.debug("Keeping (%s, %s)", k, v) - result.update([(k, v)]) - return result - - def __init__(self): - """Initialize the config flow.""" - self.login = None - self.config = OrderedDict() - self.data_schema = OrderedDict( - [ - (vol.Required(CONF_EMAIL), str), - (vol.Required(CONF_PASSWORD), str), - (vol.Required(CONF_URL, default="amazon.com"), str), - (vol.Optional(CONF_DEBUG, default=False), bool), - (vol.Optional(CONF_INCLUDE_DEVICES, default=""), str), - (vol.Optional(CONF_EXCLUDE_DEVICES, default=""), str), - (vol.Optional(CONF_SCAN_INTERVAL, default=60), int), - ] - ) - self.captcha_schema = OrderedDict( - [(vol.Required(CONF_PASSWORD), str), (vol.Required("captcha"), str)] - ) - self.twofactor_schema = OrderedDict([(vol.Required("securitycode"), str)]) - self.claimspicker_schema = OrderedDict([(vol.Required("claimsoption"), str)]) - self.authselect_schema = OrderedDict([(vol.Required("authselectoption"), int)]) - self.verificationcode_schema = OrderedDict( - [(vol.Required("verificationcode"), str)] - ) - - async def _show_form( - self, step="user", placeholders=None, errors=None, data_schema=None - ) -> None: - """Show the form to the user.""" - _LOGGER.debug("show_form %s %s %s %s", step, placeholders, errors, data_schema) - data_schema = data_schema or vol.Schema(self.data_schema) - if step == "user": - return self.async_show_form( - step_id=step, - data_schema=data_schema, - errors=errors if errors else {}, - description_placeholders=placeholders if placeholders else {}, - ) - elif step == "captcha": - return self.async_show_form( - step_id=step, - data_schema=data_schema, - errors={}, - description_placeholders=placeholders if placeholders else {}, - ) - elif step == "twofactor": - return self.async_show_form( - step_id=step, - data_schema=data_schema, - errors={}, - description_placeholders=placeholders if placeholders else {}, - ) - elif step == "claimspicker": - return self.async_show_form( - step_id=step, - data_schema=data_schema, - errors=errors if errors else {}, - description_placeholders=placeholders if placeholders else {}, - ) - elif step == "authselect": - return self.async_show_form( - step_id=step, - data_schema=data_schema, - errors=errors if errors else {}, - description_placeholders=placeholders if placeholders else {}, - ) - elif step == "verificationcode": - return self.async_show_form( - step_id=step, - data_schema=data_schema, - errors=errors if errors else {}, - description_placeholders=placeholders if placeholders else {}, - ) - - async def async_step_import(self, import_config): - """Import a config entry from configuration.yaml.""" - return await self.async_step_user(import_config) - - async def async_step_user(self, user_input=None): - """Handle the start of the config flow.""" - from alexapy import AlexaLogin - - if not user_input: - return await self._show_form(data_schema=vol.Schema(self.data_schema)) - - if "{} - {}".format( - user_input[CONF_EMAIL], user_input[CONF_URL] - ) in configured_instances(self.hass): - return await self._show_form(errors={CONF_EMAIL: "identifier_exists"}) - - self.config[CONF_EMAIL] = user_input[CONF_EMAIL] - self.config[CONF_PASSWORD] = user_input[CONF_PASSWORD] - self.config[CONF_URL] = user_input[CONF_URL] - self.config[CONF_DEBUG] = user_input[CONF_DEBUG] - from datetime import timedelta - - self.config[CONF_SCAN_INTERVAL] = ( - user_input[CONF_SCAN_INTERVAL] - if not isinstance(user_input[CONF_SCAN_INTERVAL], timedelta) - else user_input[CONF_SCAN_INTERVAL].total_seconds() - ) - if isinstance(user_input[CONF_INCLUDE_DEVICES], str): - self.config[CONF_INCLUDE_DEVICES] = ( - user_input[CONF_INCLUDE_DEVICES].split(",") - if CONF_INCLUDE_DEVICES in user_input - and user_input[CONF_INCLUDE_DEVICES] != "" - else [] - ) - else: - self.config[CONF_INCLUDE_DEVICES] = user_input[CONF_INCLUDE_DEVICES] - if isinstance(user_input[CONF_EXCLUDE_DEVICES], str): - self.config[CONF_EXCLUDE_DEVICES] = ( - user_input[CONF_EXCLUDE_DEVICES].split(",") - if CONF_EXCLUDE_DEVICES in user_input - and user_input[CONF_EXCLUDE_DEVICES] != "" - else [] - ) - else: - self.config[CONF_EXCLUDE_DEVICES] = user_input[CONF_EXCLUDE_DEVICES] - try: - if not self.login: - _LOGGER.debug("Creating new login") - self.login = AlexaLogin( - self.config[CONF_URL], - self.config[CONF_EMAIL], - self.config[CONF_PASSWORD], - self.hass.config.path, - self.config[CONF_DEBUG], - ) - await self.login.login_with_cookie() - return await self._test_login() - else: - _LOGGER.debug("Using existing login") - await self.login.login(data=user_input) - return await self._test_login() - except AlexapyConnectionError: - return await self._show_form(errors={"base": "connection_error"}) - except BaseException as ex: - _LOGGER.warning("Unknown error: %s", ex) - return await self._show_form(errors={"base": "unknown_error"}) - - async def async_step_captcha(self, user_input=None): - """Handle the input processing of the config flow.""" - return await self.async_step_process(user_input) - - async def async_step_twofactor(self, user_input=None): - """Handle the input processing of the config flow.""" - return await self.async_step_process(user_input) - - async def async_step_claimspicker(self, user_input=None): - """Handle the input processing of the config flow.""" - return await self.async_step_process(user_input) - - async def async_step_authselect(self, user_input=None): - """Handle the input processing of the config flow.""" - return await self.async_step_process(user_input) - - async def async_step_verificationcode(self, user_input=None): - """Handle the input processing of the config flow.""" - return await self.async_step_process(user_input) - - async def async_step_process(self, user_input=None): - """Handle the input processing of the config flow.""" - if user_input: - if CONF_PASSWORD in user_input: - password = user_input[CONF_PASSWORD] - self.config[CONF_PASSWORD] = password - try: - await self.login.login(data=user_input) - except AlexapyConnectionError: - return await self._show_form(errors={"base": "connection_error"}) - except BaseException as ex: - _LOGGER.warning("Unknown error: %s", ex) - return await self._show_form(errors={"base": "unknown_error"}) - return await self._test_login() - - async def _test_login(self): - login = self.login - config = self.config - _LOGGER.debug("Testing login status: %s", login.status) - if "login_successful" in login.status and login.status["login_successful"]: - _LOGGER.debug("Setting up Alexa devices with %s", dict(config)) - await login.close() - return self.async_create_entry( - title="{} - {}".format(login.email, login.url), data=config - ) - if "captcha_required" in login.status and login.status["captcha_required"]: - new_schema = self._update_ord_dict( - self.captcha_schema, - {vol.Required(CONF_PASSWORD, default=config[CONF_PASSWORD]): str}, - ) - _LOGGER.debug("Creating config_flow to request captcha") - return await self._show_form( - "captcha", - data_schema=vol.Schema(new_schema), - errors={}, - placeholders={ - "email": login.email, - "url": login.url, - "captcha_image": "[![captcha]({0})]({0})".format( - login.status["captcha_image_url"] - ), - "message": "\n> {0}".format( - login.status["error_message"] - if "error_message" in login.status - else "" - ), - }, - ) - elif ( - "securitycode_required" in login.status - and login.status["securitycode_required"] - ): - _LOGGER.debug("Creating config_flow to request 2FA") - message = "> {0}".format( - login.status["error_message"] if "error_message" in login.status else "" - ) - return await self._show_form( - "twofactor", - data_schema=vol.Schema(self.twofactor_schema), - errors={}, - placeholders={ - "email": login.email, - "url": login.url, - "message": message, - }, - ) - elif ( - "claimspicker_required" in login.status - and login.status["claimspicker_required"] - ): - error_message = "> {0}".format( - login.status["error_message"] if "error_message" in login.status else "" - ) - _LOGGER.debug("Creating config_flow to select verification method") - claimspicker_message = login.status["claimspicker_message"] - return await self._show_form( - "claimspicker", - data_schema=vol.Schema(self.claimspicker_schema), - errors={}, - placeholders={ - "email": login.email, - "url": login.url, - "message": "> {0}\n> {1}".format( - claimspicker_message, error_message - ), - }, - ) - elif ( - "authselect_required" in login.status - and login.status["authselect_required"] - ): - _LOGGER.debug("Creating config_flow to select OTA method") - error_message = ( - login.status["error_message"] if "error_message" in login.status else "" - ) - authselect_message = login.status["authselect_message"] - return await self._show_form( - "authselect", - data_schema=vol.Schema(self.authselect_schema), - placeholders={ - "email": login.email, - "url": login.url, - "message": "> {0}\n> {1}".format(authselect_message, error_message), - }, - ) - elif ( - "verificationcode_required" in login.status - and login.status["verificationcode_required"] - ): - _LOGGER.debug("Creating config_flow to enter verification code") - return await self._show_form( - "verificationcode", data_schema=vol.Schema(self.verificationcode_schema) - ) - elif "login_failed" in login.status and login.status["login_failed"]: - _LOGGER.debug("Login failed") - return self.async_abort(reason="Login failed") - new_schema = self._update_ord_dict( - self.data_schema, - { - vol.Required(CONF_EMAIL, default=config[CONF_EMAIL]): str, - vol.Required(CONF_PASSWORD, default=config[CONF_PASSWORD]): str, - vol.Required(CONF_URL, default=config[CONF_URL]): str, - vol.Optional(CONF_DEBUG, default=config[CONF_DEBUG]): bool, - vol.Optional( - CONF_INCLUDE_DEVICES, - default=( - config[CONF_INCLUDE_DEVICES] - if isinstance(config[CONF_INCLUDE_DEVICES], str) - else ",".join(map(str, config[CONF_INCLUDE_DEVICES])) - ), - ): str, - vol.Optional( - CONF_EXCLUDE_DEVICES, - default=( - config[CONF_EXCLUDE_DEVICES] - if isinstance(config[CONF_EXCLUDE_DEVICES], str) - else ",".join(map(str, config[CONF_EXCLUDE_DEVICES])) - ), - ): str, - vol.Optional( - CONF_SCAN_INTERVAL, default=config[CONF_SCAN_INTERVAL] - ): int, - }, - ) - return await self._show_form(data_schema=vol.Schema(new_schema)) diff --git a/custom_components/alexa_media/const.py b/custom_components/alexa_media/const.py deleted file mode 100644 index 5374980..0000000 --- a/custom_components/alexa_media/const.py +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- -# SPDX-License-Identifier: Apache-2.0 -""" -Support to interface with Alexa Devices. - -For more details about this platform, please refer to the documentation at -https://community.home-assistant.io/t/echo-devices-alexa-as-media-player-testers-needed/58639 -""" -from datetime import timedelta - -__version__ = "2.5.8" -PROJECT_URL = "https://github.com/custom-components/alexa_media_player/" -ISSUE_URL = "{}issues".format(PROJECT_URL) - -DOMAIN = "alexa_media" -DATA_ALEXAMEDIA = "alexa_media" - -PLAY_SCAN_INTERVAL = 20 -SCAN_INTERVAL = timedelta(seconds=60) -MIN_TIME_BETWEEN_SCANS = SCAN_INTERVAL -MIN_TIME_BETWEEN_FORCED_SCANS = timedelta(seconds=1) - -ALEXA_COMPONENTS = ["media_player", "notify", "alarm_control_panel", "switch", "sensor"] - -CONF_ACCOUNTS = "accounts" -CONF_DEBUG = "debug" -CONF_INCLUDE_DEVICES = "include_devices" -CONF_EXCLUDE_DEVICES = "exclude_devices" - -SERVICE_CLEAR_HISTORY = "clear_history" -SERVICE_UPDATE_LAST_CALLED = "update_last_called" -ATTR_MESSAGE = "message" -ATTR_EMAIL = "email" -ATTR_NUM_ENTRIES = "entries" -STARTUP = """ -------------------------------------------------------------------- -{} -Version: {} -This is a custom component -If you have any issues with this you need to open an issue here: -{} -------------------------------------------------------------------- -""".format( - DOMAIN, __version__, ISSUE_URL -) diff --git a/custom_components/alexa_media/helpers.py b/custom_components/alexa_media/helpers.py deleted file mode 100644 index dd01613..0000000 --- a/custom_components/alexa_media/helpers.py +++ /dev/null @@ -1,186 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- -# SPDX-License-Identifier: Apache-2.0 -""" -Helper functions for Alexa Media Player. - -For more details about this platform, please refer to the documentation at -https://community.home-assistant.io/t/echo-devices-alexa-as-media-player-testers-needed/58639 -""" - -import logging -from typing import Any, Callable, List, Text - -from alexapy import AlexapyLoginError, hide_email -from homeassistant.exceptions import HomeAssistantError -from homeassistant.helpers.entity_component import EntityComponent - -from . import DATA_ALEXAMEDIA - -_LOGGER = logging.getLogger(__name__) - - -async def add_devices( - account: Text, - devices: List[EntityComponent], - add_devices_callback: Callable, - include_filter: List[Text] = [], - exclude_filter: List[Text] = [], -) -> bool: - """Add devices using add_devices_callback.""" - new_devices = [] - for device in devices: - if ( - include_filter - and device.name not in include_filter - or exclude_filter - and device.name in exclude_filter - ): - _LOGGER.debug("%s: Excluding device: %s", account, device) - continue - new_devices.append(device) - devices = new_devices - if devices: - _LOGGER.debug("%s: Adding %s", account, devices) - try: - add_devices_callback(devices, False) - return True - except HomeAssistantError as exception_: - message = exception_.message # type: str - if message.startswith("Entity id already exists"): - _LOGGER.debug("%s: Device already added: %s", account, message) - else: - _LOGGER.debug( - "%s: Unable to add devices: %s : %s", account, devices, message - ) - except BaseException as ex: - template = "An exception of type {0} occurred." " Arguments:\n{1!r}" - message = template.format(type(ex).__name__, ex.args) - _LOGGER.debug("%s: Unable to add devices: %s", account, message) - else: - return True - return False - - -def retry_async( - limit: int = 5, delay: float = 1, catch_exceptions: bool = True -) -> Callable: - """Wrap function with retry logic. - - The function will retry until true or the limit is reached. It will delay - for the period of time specified exponentialy increasing the delay. - - Parameters - ---------- - limit : int - The max number of retries. - delay : float - The delay in seconds between retries. - catch_exceptions : bool - Whether exceptions should be caught and treated as failures or thrown. - Returns - ------- - def - Wrapped function. - - """ - - def wrap(func) -> Callable: - import functools - import asyncio - - @functools.wraps(func) - async def wrapper(*args, **kwargs) -> Any: - _LOGGER.debug( - "%s.%s: Trying with limit %s delay %s catch_exceptions %s", - func.__module__[func.__module__.find(".") + 1 :], - func.__name__, - limit, - delay, - catch_exceptions, - ) - retries: int = 0 - result: bool = False - next_try: int = 0 - while not result and retries < limit: - if retries != 0: - next_try = delay * 2 ** retries - await asyncio.sleep(next_try) - retries += 1 - try: - result = await func(*args, **kwargs) - except Exception as ex: # pylint: disable=broad-except - if not catch_exceptions: - raise - template = "An exception of type {0} occurred." " Arguments:\n{1!r}" - message = template.format(type(ex).__name__, ex.args) - _LOGGER.debug( - "%s.%s: failure caught due to exception: %s", - func.__module__[func.__module__.find(".") + 1 :], - func.__name__, - message, - ) - _LOGGER.debug( - "%s.%s: Try: %s/%s after waiting %s seconds result: %s", - func.__module__[func.__module__.find(".") + 1 :], - func.__name__, - retries, - limit, - next_try, - result, - ) - return result - - return wrapper - - return wrap - - -def _catch_login_errors(func) -> Callable: - """Detect AlexapyLoginError and attempt relogin.""" - import functools - - @functools.wraps(func) - async def wrapper(*args, **kwargs) -> Any: - try: - result = await func(*args, **kwargs) - except AlexapyLoginError as ex: # pylint: disable=broad-except - template = "An exception of type {0} occurred." " Arguments:\n{1!r}" - message = template.format(type(ex).__name__, ex.args) - _LOGGER.debug( - "%s.%s: detected bad login: %s", - func.__module__[func.__module__.find(".") + 1 :], - func.__name__, - message, - ) - instance = args[0] - if hasattr(instance, "_login"): - login = instance._login - email = login.email - hass = instance.hass if instance.hass else None - if hass and ( - "configurator" - not in (hass.data[DATA_ALEXAMEDIA]["accounts"][email]) - or not ( - hass.data[DATA_ALEXAMEDIA]["accounts"][email]["configurator"] - ) - ): - config_entry = hass.data[DATA_ALEXAMEDIA]["accounts"][email][ - "config_entry" - ] - callback = hass.data[DATA_ALEXAMEDIA]["accounts"][email][ - "setup_platform_callback" - ] - test_login_status = hass.data[DATA_ALEXAMEDIA]["accounts"][email][ - "test_login_status" - ] - _LOGGER.debug( - "%s: Alexa API disconnected; attempting to relogin", - hide_email(email), - ) - await login.login_with_cookie() - await test_login_status(hass, config_entry, login, callback) - return None - return result - - return wrapper diff --git a/custom_components/alexa_media/manifest.json b/custom_components/alexa_media/manifest.json deleted file mode 100644 index 18ffea2..0000000 --- a/custom_components/alexa_media/manifest.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "domain": "alexa_media", - "name": "Alexa Media Player", - "config_flow": true, - "documentation": "https://github.com/custom-components/alexa_media_player/wiki", - "dependencies": [], - "codeowners": [ - "keatontaylor", - "alandtse" - ], - "requirements": [ - "alexapy==1.5.2" - ], - "homeassistant": "0.96.0" -} \ No newline at end of file diff --git a/custom_components/alexa_media/media_player.py b/custom_components/alexa_media/media_player.py deleted file mode 100644 index 0bfc81d..0000000 --- a/custom_components/alexa_media/media_player.py +++ /dev/null @@ -1,1084 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- -# SPDX-License-Identifier: Apache-2.0 -""" -Support to interface with Alexa Devices. - -For more details about this platform, please refer to the documentation at -https://community.home-assistant.io/t/echo-devices-alexa-as-media-player-testers-needed/58639 -""" -import asyncio -import logging -import re -from typing import List, Text # noqa pylint: disable=unused-import - -from homeassistant import util -from homeassistant.components.media_player import MediaPlayerDevice -from homeassistant.components.media_player.const import ( - MEDIA_TYPE_MUSIC, - SUPPORT_NEXT_TRACK, - SUPPORT_PAUSE, - SUPPORT_PLAY, - SUPPORT_PLAY_MEDIA, - SUPPORT_PREVIOUS_TRACK, - SUPPORT_SELECT_SOURCE, - SUPPORT_SHUFFLE_SET, - SUPPORT_STOP, - SUPPORT_TURN_OFF, - SUPPORT_TURN_ON, - SUPPORT_VOLUME_MUTE, - SUPPORT_VOLUME_SET, -) -from homeassistant.const import ( - STATE_IDLE, - STATE_PAUSED, - STATE_PLAYING, - STATE_STANDBY, - STATE_UNAVAILABLE, -) -from homeassistant.helpers.event import async_call_later - -from . import ( - CONF_EMAIL, - DATA_ALEXAMEDIA, - DOMAIN as ALEXA_DOMAIN, - MIN_TIME_BETWEEN_FORCED_SCANS, - MIN_TIME_BETWEEN_SCANS, - hide_email, - hide_serial, -) -from .const import PLAY_SCAN_INTERVAL -from .helpers import _catch_login_errors, add_devices, retry_async - -SUPPORT_ALEXA = ( - SUPPORT_PAUSE - | SUPPORT_PREVIOUS_TRACK - | SUPPORT_NEXT_TRACK - | SUPPORT_STOP - | SUPPORT_VOLUME_SET - | SUPPORT_PLAY - | SUPPORT_PLAY_MEDIA - | SUPPORT_TURN_OFF - | SUPPORT_TURN_ON - | SUPPORT_VOLUME_MUTE - | SUPPORT_PAUSE - | SUPPORT_SELECT_SOURCE - | SUPPORT_SHUFFLE_SET -) -_LOGGER = logging.getLogger(__name__) - -DEPENDENCIES = [ALEXA_DOMAIN] - - -@retry_async(limit=5, delay=2, catch_exceptions=True) -async def async_setup_platform(hass, config, add_devices_callback, discovery_info=None): - # pylint: disable=unused-argument - """Set up the Alexa media player platform.""" - devices = [] # type: List[AlexaClient] - account = config[CONF_EMAIL] - account_dict = hass.data[DATA_ALEXAMEDIA]["accounts"][account] - for key, device in account_dict["devices"]["media_player"].items(): - if key not in account_dict["entities"]["media_player"]: - alexa_client = AlexaClient(device, account_dict["login_obj"]) - await alexa_client.init(device) - devices.append(alexa_client) - ( - hass.data[DATA_ALEXAMEDIA]["accounts"][account]["entities"][ - "media_player" - ][key] - ) = alexa_client - else: - _LOGGER.debug( - "%s: Skipping already added device: %s:%s", - hide_email(account), - hide_serial(key), - alexa_client, - ) - return await add_devices(hide_email(account), devices, add_devices_callback) - - -async def async_setup_entry(hass, config_entry, async_add_devices): - """Set up the Alexa media player platform by config_entry.""" - return await async_setup_platform( - hass, config_entry.data, async_add_devices, discovery_info=None - ) - - -async def async_unload_entry(hass, entry) -> bool: - """Unload a config entry.""" - account = entry.data[CONF_EMAIL] - account_dict = hass.data[DATA_ALEXAMEDIA]["accounts"][account] - for device in account_dict["entities"]["media_player"].values(): - await device.async_remove() - return True - - -class AlexaClient(MediaPlayerDevice): - """Representation of a Alexa device.""" - - def __init__(self, device, login): - # pylint: disable=unused-argument - """Initialize the Alexa device.""" - from alexapy import AlexaAPI - - # Class info - self._login = login - self.alexa_api = AlexaAPI(self, login) - self.auth = None - self.alexa_api_session = login.session - self.account = hide_email(login.email) - - # Logged in info - self._authenticated = None - self._can_access_prime_music = None - self._customer_email = None - self._customer_id = None - self._customer_name = None - - # Device info - self._device_name = None - self._device_serial_number = None - self._device_type = None - self._device_family = None - self._device_owner_customer_id = None - self._software_version = None - self._available = None - self._capabilities = [] - self._cluster_members = [] - self._locale = None - # Media - self._session = None - self._media_duration = None - self._media_image_url = None - self._media_title = None - self._media_pos = None - self._media_album_name = None - self._media_artist = None - self._media_player_state = None - self._media_is_muted = None - self._media_vol_level = None - self._previous_volume = None - self._source = None - self._source_list = [] - self._shuffle = None - self._repeat = None - self._playing_parent = None - # Last Device - self._last_called = None - self._last_called_timestamp = None - # Do not Disturb state - self._dnd = None - # Polling state - self._should_poll = True - self._last_update = util.utcnow() - self._listener = None - self._bluetooth_state = None - self._app_device_list = None - self._parent_clusters = None - self._timezone = None - - async def init(self, device): - """Initialize.""" - await self.refresh(device) - - async def async_added_to_hass(self): - """Perform tasks after loading.""" - # Register event handler on bus - self._listener = self.hass.bus.async_listen( - f"{ALEXA_DOMAIN}_{hide_email(self._login.email)}"[0:32], self._handle_event - ) - - async def async_will_remove_from_hass(self): - """Prepare to remove entity.""" - # Register event handler on bus - self._listener() - - async def _handle_event(self, event): - """Handle events. - - This will update last_called and player_state events. - Each MediaClient reports if it's the last_called MediaClient and will - listen for HA events to determine it is the last_called. - When polling instead of websockets, all devices on same account will - update to handle starting music with other devices. If websocket is on - only the updated alexa will update. - Last_called events are only sent if it's a new device or timestamp. - Without polling, we must schedule the HA update manually. - https://developers.home-assistant.io/docs/en/entity_index.html#subscribing-to-updates - The difference between self.update and self.schedule_update_ha_state - is self.update will pull data from Amazon, while schedule_update - assumes the MediaClient state is already updated. - """ - - async def _refresh_if_no_audiopush(already_refreshed=False): - email = self._login.email - seen_commands = ( - self.hass.data[DATA_ALEXAMEDIA]["accounts"][email][ - "websocket_commands" - ].keys() - if "websocket_commands" - in (self.hass.data[DATA_ALEXAMEDIA]["accounts"][email]) - else None - ) - if ( - not already_refreshed - and seen_commands - and not ( - "PUSH_AUDIO_PLAYER_STATE" in seen_commands - or "PUSH_MEDIA_CHANGE" in seen_commands - or "PUSH_MEDIA_PROGRESS_CHANGE" in seen_commands - ) - ): - # force refresh if player_state update not found, see #397 - _LOGGER.debug( - "%s: No PUSH_AUDIO_PLAYER_STATE/" - "PUSH_MEDIA_CHANGE/PUSH_MEDIA_PROGRESS_CHANGE in %s;" - "forcing refresh", - hide_email(email), - seen_commands, - ) - await self.async_update() - - try: - if not self.enabled: - return - except AttributeError: - pass - already_refreshed = False - event_serial = None - if "last_called_change" in event.data: - event_serial = ( - event.data["last_called_change"]["serialNumber"] - if event.data["last_called_change"] - else None - ) - elif "bluetooth_change" in event.data: - event_serial = ( - event.data["bluetooth_change"]["deviceSerialNumber"] - if event.data["bluetooth_change"] - else None - ) - elif "player_state" in event.data: - event_serial = ( - event.data["player_state"]["dopplerId"]["deviceSerialNumber"] - if event.data["player_state"] - else None - ) - elif "queue_state" in event.data: - event_serial = ( - event.data["queue_state"]["dopplerId"]["deviceSerialNumber"] - if event.data["queue_state"] - else None - ) - if not event_serial: - return - self.available = True - self.async_schedule_update_ha_state() - if "last_called_change" in event.data: - if event_serial == self.device_serial_number or any( - item["serialNumber"] == event_serial for item in self._app_device_list - ): - _LOGGER.debug( - "%s is last_called: %s", - self.name, - hide_serial(self.device_serial_number), - ) - self._last_called = True - self._last_called_timestamp = event.data["last_called_change"][ - "timestamp" - ] - else: - self._last_called = False - if self.hass and self.async_schedule_update_ha_state: - email = self._login.email - force_refresh = not ( - self.hass.data[DATA_ALEXAMEDIA]["accounts"][email]["websocket"] - ) - self.async_schedule_update_ha_state(force_refresh=force_refresh) - elif "bluetooth_change" in event.data: - if event_serial == self.device_serial_number: - _LOGGER.debug( - "%s bluetooth_state update: %s", - self.name, - hide_serial(event.data["bluetooth_change"]), - ) - self._bluetooth_state = event.data["bluetooth_change"] - # the setting of bluetooth_state is not consistent as this - # takes from the event instead of the hass storage. We're - # setting the value twice. Architectually we should have a - # single authorative source of truth. - self._source = await self._get_source() - self._source_list = await self._get_source_list() - if self.hass and self.async_schedule_update_ha_state: - self.async_schedule_update_ha_state() - elif "player_state" in event.data: - player_state = event.data["player_state"] - if event_serial == self.device_serial_number: - if "audioPlayerState" in player_state: - _LOGGER.debug( - "%s state update: %s", - self.name, - player_state["audioPlayerState"], - ) - # allow delay before trying to refresh to avoid http 400 errors - await asyncio.sleep(2) - await self.async_update() - already_refreshed = True - elif "mediaReferenceId" in player_state: - _LOGGER.debug( - "%s media update: %s", - self.name, - player_state["mediaReferenceId"], - ) - await self.async_update() - already_refreshed = True - elif "volumeSetting" in player_state: - _LOGGER.debug( - "%s volume updated: %s", - self.name, - player_state["volumeSetting"], - ) - self._media_vol_level = player_state["volumeSetting"] / 100 - if self.hass and self.async_schedule_update_ha_state: - self.async_schedule_update_ha_state() - elif "dopplerConnectionState" in player_state: - self.available = player_state["dopplerConnectionState"] == "ONLINE" - if self.hass and self.async_schedule_update_ha_state: - self.async_schedule_update_ha_state() - await _refresh_if_no_audiopush(already_refreshed) - if "queue_state" in event.data: - queue_state = event.data["queue_state"] - if event_serial == self.device_serial_number: - if ( - "trackOrderChanged" in queue_state - and not queue_state["trackOrderChanged"] - and "loopMode" in queue_state - ): - self._repeat = queue_state["loopMode"] == "LOOP_QUEUE" - _LOGGER.debug( - "%s repeat updated to: %s %s", - self.name, - self._repeat, - queue_state["loopMode"], - ) - elif "playBackOrder" in queue_state: - self._shuffle = queue_state["playBackOrder"] == "SHUFFLE_ALL" - _LOGGER.debug( - "%s shuffle updated to: %s %s", - self.name, - self._shuffle, - queue_state["playBackOrder"], - ) - await _refresh_if_no_audiopush(already_refreshed) - - async def _clear_media_details(self): - """Set all Media Items to None.""" - # General - self._media_duration = None - self._media_image_url = None - self._media_title = None - self._media_pos = None - self._media_album_name = None - self._media_artist = None - self._media_player_state = None - self._media_is_muted = None - # volume is also used for announce/tts so state should remain - # self._media_vol_level = None - - async def _set_authentication_details(self, auth): - """Set Authentication based off auth.""" - self._authenticated = auth["authenticated"] - self._can_access_prime_music = auth["canAccessPrimeMusicContent"] - self._customer_email = auth["customerEmail"] - self._customer_id = auth["customerId"] - self._customer_name = auth["customerName"] - - @util.Throttle(MIN_TIME_BETWEEN_SCANS, MIN_TIME_BETWEEN_FORCED_SCANS) - @_catch_login_errors - async def refresh(self, device=None, skip_api: bool = False): - """Refresh device data. - - This is a per device refresh and for many Alexa devices can result in - many refreshes from each individual device. This will call the - AlexaAPI directly. - - Args: - device (json): A refreshed device json from Amazon. For efficiency, - an individual device does not refresh if it's reported - as offline. - no_api (bool): Whether to only due a device json update and not hit the API - - """ - if device is not None: - self._device_name = device["accountName"] - self._device_family = device["deviceFamily"] - self._device_type = device["deviceType"] - self._device_serial_number = device["serialNumber"] - self._app_device_list = device["appDeviceList"] - self._device_owner_customer_id = device["deviceOwnerCustomerId"] - self._software_version = device["softwareVersion"] - self._available = device["online"] - self._capabilities = device["capabilities"] - self._cluster_members = device["clusterMembers"] - self._parent_clusters = device["parentClusters"] - self._bluetooth_state = device["bluetooth_state"] - self._locale = device["locale"] if "locale" in device else "en-US" - self._timezone = device["timeZoneId"] if "timeZoneId" in device else "UTC" - self._dnd = device["dnd"] if "dnd" in device else None - await self._set_authentication_details(device["auth_info"]) - session = None - if self.available: - _LOGGER.debug("%s: Refreshing %s", self.account, self.name) - if "PAIR_BT_SOURCE" in self._capabilities: - self._source = await self._get_source() - self._source_list = await self._get_source_list() - self._last_called = await self._get_last_called() - if self._last_called: - self._last_called_timestamp = self.hass.data[DATA_ALEXAMEDIA][ - "accounts" - ][self._login.email]["last_called"]["timestamp"] - if skip_api: - return - if "MUSIC_SKILL" in self._capabilities: - if self._parent_clusters and self.hass: - playing_parents = list( - filter( - lambda x: ( - self.hass.data[DATA_ALEXAMEDIA]["accounts"][ - self._login.email - ]["entities"]["media_player"].get(x) - and self.hass.data[DATA_ALEXAMEDIA]["accounts"][ - self._login.email - ]["entities"]["media_player"][x].state - == STATE_PLAYING - ), - self._parent_clusters, - ) - ) - else: - playing_parents = [] - parent_session = {} - if playing_parents: - if len(playing_parents) > 1: - _LOGGER.warning( - "Found multiple playing parents " "please file an issue" - ) - parent = self.hass.data[DATA_ALEXAMEDIA]["accounts"][ - self._login.email - ]["entities"]["media_player"][playing_parents[0]] - self._playing_parent = parent - parent_session = parent.session - if parent_session: - session = parent_session.copy() - session["isPlayingInLemur"] = False - session["lemurVolume"] = None - session["volume"] = ( - parent_session["lemurVolume"]["memberVolume"][ - self.device_serial_number - ] - if parent_session.get("lemurVolume") - and parent_session.get("lemurVolume", {}) - .get("memberVolume", {}) - .get(self.device_serial_number) - else session["volume"] - ) - session = {"playerInfo": session} - else: - self._playing_parent = None - session = await self.alexa_api.get_state() - await self._clear_media_details() - # update the session if it exists - self._session = session if session else None - if self._session and self._session.get("playerInfo"): - self._session = self._session["playerInfo"] - if self._session.get("transport"): - self._shuffle = ( - self._session["transport"]["shuffle"] == "SELECTED" - if ( - "shuffle" in self._session["transport"] - and self._session["transport"]["shuffle"] != "DISABLED" - ) - else None - ) - self._repeat = ( - self._session["transport"]["repeat"] == "SELECTED" - if ( - "repeat" in self._session["transport"] - and self._session["transport"]["repeat"] != "DISABLED" - ) - else None - ) - if self._session.get("state"): - self._media_player_state = self._session["state"] - self._media_pos = self._session.get("progress", {}).get("mediaProgress") - self._media_title = self._session.get("infoText", {}).get("title") - self._media_artist = self._session.get("infoText", {}).get("subText1") - self._media_album_name = self._session.get("infoText", {}).get( - "subText2" - ) - self._media_image_url = self._session.get("mainArt", {}).get("url") - self._media_duration = self._session.get("progress", {}).get( - "mediaLength" - ) - if not self._session.get("lemurVolume"): - self._media_is_muted = ( - self._session.get("volume", {}).get("muted") - if self._session.get("volume") - else self._media_is_muted - ) - self._media_vol_level = ( - self._session["volume"]["volume"] / 100 - if self._session.get("volume") - and self._session.get("volume", {}).get("volume") - else self._media_vol_level - ) - else: - self._media_is_muted = ( - self._session.get("lemurVolume", {}) - .get("compositeVolume", {}) - .get("muted") - ) - self._media_vol_level = ( - self._session["lemurVolume"]["compositeVolume"]["volume"] / 100 - if ( - self._session.get("lemurVolume", {}) - .get("compositeVolume", {}) - .get("volume") - ) - else self._media_vol_level - ) - if self.hass and self._session.get("isPlayingInLemur"): - asyncio.gather( - *map( - lambda x: ( - self.hass.data[DATA_ALEXAMEDIA]["accounts"][ - self._login.email - ]["entities"]["media_player"][x].async_update() - ), - filter( - lambda x: ( - self.hass.data[DATA_ALEXAMEDIA]["accounts"][ - self._login.email - ]["entities"]["media_player"].get(x) - and self.hass.data[DATA_ALEXAMEDIA]["accounts"][ - self._login.email - ]["entities"]["media_player"][x].available - ), - self._cluster_members, - ), - ) - ) - - @property - def source(self): - """Return the current input source.""" - return self._source - - @property - def source_list(self): - """List of available input sources.""" - return self._source_list - - @_catch_login_errors - async def async_select_source(self, source): - """Select input source.""" - if source == "Local Speaker": - await self.alexa_api.disconnect_bluetooth() - self._source = "Local Speaker" - elif self._bluetooth_state["pairedDeviceList"] is not None: - for devices in self._bluetooth_state["pairedDeviceList"]: - if devices["friendlyName"] == source: - await self.alexa_api.set_bluetooth(devices["address"]) - self._source = source - if not ( - self.hass.data[DATA_ALEXAMEDIA]["accounts"][self._login.email]["websocket"] - ): - await self.async_update() - - async def _get_source(self): - source = "Local Speaker" - if self._bluetooth_state.get("pairedDeviceList"): - for device in self._bluetooth_state["pairedDeviceList"]: - if ( - device["connected"] is True - and device["friendlyName"] in self.source_list - ): - return device["friendlyName"] - return source - - async def _get_source_list(self): - sources = [] - if self._bluetooth_state.get("pairedDeviceList"): - for devices in self._bluetooth_state["pairedDeviceList"]: - if devices["profiles"] and "A2DP-SOURCE" in devices["profiles"]: - sources.append(devices["friendlyName"]) - return ["Local Speaker"] + sources - - async def _get_last_called(self): - try: - last_called_serial = ( - None - if self.hass is None - else ( - self.hass.data[DATA_ALEXAMEDIA]["accounts"][self._login.email][ - "last_called" - ]["serialNumber"] - ) - ) - except (TypeError, KeyError): - last_called_serial = None - _LOGGER.debug( - "%s: Last_called check: self: %s reported: %s", - self._device_name, - hide_serial(self._device_serial_number), - hide_serial(last_called_serial), - ) - return last_called_serial is not None and ( - self._device_serial_number == last_called_serial - or any( - item["serialNumber"] == last_called_serial - for item in self._app_device_list - ) - ) - - @property - def available(self): - """Return the availability of the client.""" - return self._available - - @available.setter - def available(self, state): - """Set the availability state.""" - self._available = state - - @property - def hidden(self): - """Return whether the sensor should be hidden.""" - return "MUSIC_SKILL" not in self._capabilities - - @property - def unique_id(self): - """Return the id of this Alexa client.""" - return self.device_serial_number - - @property - def name(self): - """Return the name of the device.""" - return self._device_name - - @property - def device_serial_number(self): - """Return the machine identifier of the device.""" - return self._device_serial_number - - @property - def session(self): - """Return the session, if any.""" - return self._session - - @property - def state(self): - """Return the state of the device.""" - if not self.available: - return STATE_UNAVAILABLE - if self._media_player_state == "PLAYING": - return STATE_PLAYING - if self._media_player_state == "PAUSED": - return STATE_PAUSED - if self._media_player_state == "IDLE": - return STATE_IDLE - return STATE_STANDBY - - @_catch_login_errors - async def async_update(self): - """Get the latest details on a media player. - - Because media players spend the majority of time idle, an adaptive - update should be used to avoid flooding Amazon focusing on known - play states. An initial version included an update_devices call on - every update. However, this quickly floods the network for every new - device added. This should only call refresh() to call the AlexaAPI. - """ - try: - if not self.enabled: - return - except AttributeError: - pass - if self.entity_id is None: - # Device has not initialized yet - return - email = self._login.email - if email not in self.hass.data[DATA_ALEXAMEDIA]["accounts"]: - return - device = self.hass.data[DATA_ALEXAMEDIA]["accounts"][email]["devices"][ - "media_player" - ][self.unique_id] - seen_commands = ( - self.hass.data[DATA_ALEXAMEDIA]["accounts"][email][ - "websocket_commands" - ].keys() - if "websocket_commands" - in (self.hass.data[DATA_ALEXAMEDIA]["accounts"][email]) - else None - ) - await self.refresh( # pylint: disable=unexpected-keyword-arg - device, no_throttle=True - ) - websocket_enabled = self.hass.data[DATA_ALEXAMEDIA]["accounts"][email].get( - "websocket" - ) - if ( - self.state in [STATE_PLAYING] - and - # only enable polling if websocket not connected - ( - not websocket_enabled - or not seen_commands - or not ( - "PUSH_AUDIO_PLAYER_STATE" in seen_commands - or "PUSH_MEDIA_CHANGE" in seen_commands - or "PUSH_MEDIA_PROGRESS_CHANGE" in seen_commands - ) - ) - ): - self._should_poll = False # disable polling since manual update - if ( - self._last_update == 0 - or util.dt.as_timestamp(util.utcnow()) - - util.dt.as_timestamp(self._last_update) - > PLAY_SCAN_INTERVAL - ): - _LOGGER.debug( - "%s playing; scheduling update in %s seconds", - self.name, - PLAY_SCAN_INTERVAL, - ) - async_call_later( - self.hass, - PLAY_SCAN_INTERVAL, - lambda _: self.async_schedule_update_ha_state(force_refresh=True), - ) - elif self._should_poll: # Not playing, one last poll - self._should_poll = False - if not websocket_enabled: - _LOGGER.debug( - "Disabling polling and scheduling last update in" - " 300 seconds for %s", - self.name, - ) - async_call_later( - self.hass, - 300, - lambda _: self.async_schedule_update_ha_state(force_refresh=True), - ) - else: - _LOGGER.debug("Disabling polling for %s", self.name) - self._last_update = util.utcnow() - self.async_schedule_update_ha_state() - - @property - def media_content_type(self): - """Return the content type of current playing media.""" - if self.state in [STATE_PLAYING, STATE_PAUSED]: - return MEDIA_TYPE_MUSIC - return STATE_STANDBY - - @property - def media_artist(self): - """Return the artist of current playing media, music track only.""" - return self._media_artist - - @property - def media_album_name(self): - """Return the album name of current playing media, music track only.""" - return self._media_album_name - - @property - def media_duration(self): - """Return the duration of current playing media in seconds.""" - return self._media_duration - - @property - def media_position(self): - """Return the duration of current playing media in seconds.""" - return self._media_pos - - @property - def media_position_updated_at(self): - """When was the position of the current playing media valid.""" - return self._last_update - - @property - def media_image_url(self) -> Text: - """Return the image URL of current playing media.""" - if self._media_image_url: - return re.sub("\\(", "%28", re.sub("\\)", "%29", self._media_image_url)) - # fix failure of HA media player ui to quote "(" or ")" - return None - - @property - def media_image_remotely_accessible(self): - """Return whether image is accessible outside of the home network.""" - return bool(self._media_image_url) - - @property - def media_title(self): - """Return the title of current playing media.""" - return self._media_title - - @property - def device_family(self): - """Return the make of the device (ex. Echo, Other).""" - return self._device_family - - @property - def dnd_state(self): - """Return the Do Not Disturb state.""" - return self._dnd - - @dnd_state.setter - def dnd_state(self, state): - """Set the Do Not Disturb state.""" - self._dnd = state - - @_catch_login_errors - async def async_set_shuffle(self, shuffle): - """Enable/disable shuffle mode.""" - await self.alexa_api.shuffle(shuffle) - self._shuffle = shuffle - - @property - def shuffle(self): - """Return the Shuffle state.""" - return self._shuffle - - @shuffle.setter - def shuffle(self, state): - """Set the Shuffle state.""" - self._shuffle = state - self.async_schedule_update_ha_state() - - @property - def repeat_state(self): - """Return the Repeat state.""" - return self._repeat - - @repeat_state.setter - def repeat_state(self, state): - """Set the Repeat state.""" - self._repeat = state - self.async_schedule_update_ha_state() - - @property - def supported_features(self): - """Flag media player features that are supported.""" - return SUPPORT_ALEXA - - @_catch_login_errors - async def async_set_volume_level(self, volume): - """Set volume level, range 0..1.""" - if not self.available: - return - await self.alexa_api.set_volume(volume) - self._media_vol_level = volume - if not ( - self.hass.data[DATA_ALEXAMEDIA]["accounts"][self._login.email]["websocket"] - ): - await self.async_update() - - @property - def volume_level(self): - """Return the volume level of the client (0..1).""" - return self._media_vol_level - - @property - def is_volume_muted(self): - """Return boolean if volume is currently muted.""" - if self.volume_level == 0: - return True - return False - - @_catch_login_errors - async def async_mute_volume(self, mute): - """Mute the volume. - - Since we can't actually mute, we'll: - - On mute, store volume and set volume to 0 - - On unmute, set volume to previously stored volume - """ - if not self.available: - return - - self._media_is_muted = mute - if mute: - self._previous_volume = self.volume_level - await self.alexa_api.set_volume(0) - else: - if self._previous_volume is not None: - await self.alexa_api.set_volume(self._previous_volume) - else: - await self.alexa_api.set_volume(50) - if not ( - self.hass.data[DATA_ALEXAMEDIA]["accounts"][self._login.email]["websocket"] - ): - await self.async_update() - - @_catch_login_errors - async def async_media_play(self): - """Send play command.""" - if not (self.state in [STATE_PLAYING, STATE_PAUSED] and self.available): - return - if self._playing_parent: - await self._playing_parent.async_media_play() - else: - await self.alexa_api.play() - if not ( - self.hass.data[DATA_ALEXAMEDIA]["accounts"][self._login.email]["websocket"] - ): - await self.async_update() - - @_catch_login_errors - async def async_media_pause(self): - """Send pause command.""" - if not (self.state in [STATE_PLAYING, STATE_PAUSED] and self.available): - return - if self._playing_parent: - await self._playing_parent.async_media_pause() - else: - await self.alexa_api.pause() - if not ( - self.hass.data[DATA_ALEXAMEDIA]["accounts"][self._login.email]["websocket"] - ): - await self.async_update() - - @_catch_login_errors - async def async_turn_off(self): - """Turn the client off. - - While Alexa's do not have on/off capability, we can use this as another - trigger to do updates. For turning off, we can clear media_details. - """ - self._should_poll = False - await self.async_media_pause() - await self._clear_media_details() - - @_catch_login_errors - async def async_turn_on(self): - """Turn the client on. - - While Alexa's do not have on/off capability, we can use this as another - trigger to do updates. - """ - self._should_poll = True - await self.async_media_pause() - - @_catch_login_errors - async def async_media_next_track(self): - """Send next track command.""" - if not (self.state in [STATE_PLAYING, STATE_PAUSED] and self.available): - return - if self._playing_parent: - await self._playing_parent.async_media_next_track() - else: - await self.alexa_api.next() - if not ( - self.hass.data[DATA_ALEXAMEDIA]["accounts"][self._login.email]["websocket"] - ): - await self.async_update() - - @_catch_login_errors - async def async_media_previous_track(self): - """Send previous track command.""" - if not (self.state in [STATE_PLAYING, STATE_PAUSED] and self.available): - return - if self._playing_parent: - await self._playing_parent.async_media_previous_track() - else: - await self.alexa_api.previous() - if not ( - self.hass.data[DATA_ALEXAMEDIA]["accounts"][self._login.email]["websocket"] - ): - await self.async_update() - - @_catch_login_errors - async def async_send_tts(self, message, **kwargs): - """Send TTS to Device. - - NOTE: Does not work on WHA Groups. - """ - await self.alexa_api.send_tts(message, customer_id=self._customer_id, **kwargs) - - @_catch_login_errors - async def async_send_announcement(self, message, **kwargs): - """Send announcement to the media player.""" - await self.alexa_api.send_announcement( - message, customer_id=self._customer_id, **kwargs - ) - - @_catch_login_errors - async def async_send_mobilepush(self, message, **kwargs): - """Send push to the media player's associated mobile devices.""" - await self.alexa_api.send_mobilepush( - message, customer_id=self._customer_id, **kwargs - ) - - @_catch_login_errors - async def async_play_media(self, media_type, media_id, enqueue=None, **kwargs): - # pylint: disable=unused-argument - """Send the play_media command to the media player.""" - if media_type == "music": - await self.async_send_tts( - "Sorry, text to speech can only be called" - " with the notify.alexa_media service." - " Please see the alexa_media wiki for details." - ) - _LOGGER.warning( - "Sorry, text to speech can only be called" - " with the notify.alexa_media service." - " Please see the alexa_media wiki for details." - "https://github.com/custom-components/alexa_media_player/wiki/Notification-Component#use-the-notifyalexa_media-service" - ) - elif media_type == "sequence": - await self.alexa_api.send_sequence( - media_id, customer_id=self._customer_id, **kwargs - ) - elif media_type == "routine": - await self.alexa_api.run_routine(media_id) - elif media_type == "sound": - await self.alexa_api.play_sound( - media_id, customer_id=self._customer_id, **kwargs - ) - else: - await self.alexa_api.play_music( - media_type, media_id, customer_id=self._customer_id, **kwargs - ) - if not ( - self.hass.data[DATA_ALEXAMEDIA]["accounts"][self._login.email]["websocket"] - ): - await self.async_update() - - @property - def device_state_attributes(self): - """Return the state attributes.""" - attr = { - "available": self.available, - "last_called": self._last_called, - "last_called_timestamp": self._last_called_timestamp, - } - return attr - - @property - def should_poll(self): - """Return the polling state.""" - return self._should_poll - - @property - def device_info(self): - """Return the device_info of the device.""" - return { - "identifiers": {(ALEXA_DOMAIN, self.unique_id)}, - "name": self.name, - "manufacturer": "Amazon", - "model": f"{self._device_family} {self._device_type}", - "sw_version": self._software_version, - } diff --git a/custom_components/alexa_media/notify.py b/custom_components/alexa_media/notify.py deleted file mode 100644 index 6925ffd..0000000 --- a/custom_components/alexa_media/notify.py +++ /dev/null @@ -1,198 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- -# SPDX-License-Identifier: Apache-2.0 -""" -Alexa Devices notification service. - -For more details about this platform, please refer to the documentation at -https://community.home-assistant.io/t/echo-devices-alexa-as-media-player-testers-needed/58639 -""" -import asyncio -import logging - -from homeassistant.components.notify import ( - ATTR_DATA, - ATTR_TARGET, - ATTR_TITLE, - ATTR_TITLE_DEFAULT, - SERVICE_NOTIFY, - BaseNotificationService, -) - -from . import CONF_EMAIL, DATA_ALEXAMEDIA, DOMAIN, hide_email, hide_serial -from .helpers import retry_async - -_LOGGER = logging.getLogger(__name__) - - -@retry_async(limit=5, delay=2, catch_exceptions=True) -async def async_get_service(hass, config, discovery_info=None): - # pylint: disable=unused-argument - """Get the demo notification service.""" - for account, account_dict in hass.data[DATA_ALEXAMEDIA]["accounts"].items(): - for key, _ in account_dict["devices"]["media_player"].items(): - if key not in account_dict["entities"]["media_player"]: - _LOGGER.debug( - "%s: Media player %s not loaded yet; delaying load", - hide_email(account), - hide_serial(key), - ) - return False - return AlexaNotificationService(hass) - - -async def async_unload_entry(hass, entry) -> bool: - """Unload a config entry.""" - target_account = entry.data[CONF_EMAIL] - other_accounts = False - for account, account_dict in hass.data[DATA_ALEXAMEDIA]["accounts"].items(): - if account == target_account: - if "entities" not in account_dict: - continue - for device in account_dict["entities"]["media_player"].values(): - entity_id = device.entity_id.split(".") - hass.services.async_remove(SERVICE_NOTIFY, f"{DOMAIN}_{entity_id[1]}") - else: - other_accounts = True - if not other_accounts: - hass.services.async_remove(SERVICE_NOTIFY, f"{DOMAIN}") - return True - - -class AlexaNotificationService(BaseNotificationService): - """Implement Alexa Media Player notification service.""" - - def __init__(self, hass): - """Initialize the service.""" - self.hass = hass - - def convert(self, names, type_="entities", filter_matches=False): - """Return a list of converted Alexa devices based on names. - - Names may be matched either by serialNumber, accountName, or - Homeassistant entity_id and can return any of the above plus entities - - Parameters - ---------- - names : list(string) - A list of names to convert - type : string - The type to return entities, entity_ids, serialnumbers, names - filter_matches : bool - Whether non-matching items are removed from the returned list. - - Returns - ------- - list(string) - List of home assistant entity_ids - - """ - devices = [] - if isinstance(names, str): - names = [names] - for item in names: - matched = False - for alexa in self.devices: - _LOGGER.debug( - "Testing item: %s against (%s, %s, %s, %s)", - item, - alexa, - alexa.name, - hide_serial(alexa.unique_id), - alexa.entity_id, - ) - if item in (alexa, alexa.name, alexa.unique_id, alexa.entity_id): - if type_ == "entities": - converted = alexa - elif type_ == "serialnumbers": - converted = alexa.unique_id - elif type_ == "names": - converted = alexa.name - elif type_ == "entity_ids": - converted = alexa.entity_id - devices.append(converted) - matched = True - _LOGGER.debug("Converting: %s to (%s): %s", item, type_, converted) - if not filter_matches and not matched: - devices.append(item) - return devices - - @property - def targets(self): - """Return a dictionary of Alexa devices.""" - devices = {} - for _, account_dict in self.hass.data[DATA_ALEXAMEDIA]["accounts"].items(): - if "devices" not in account_dict: - return devices - for serial, alexa in account_dict["devices"]["media_player"].items(): - devices[alexa["accountName"]] = serial - return devices - - @property - def devices(self): - """Return a list of Alexa devices.""" - devices = [] - if ( - "accounts" not in self.hass.data[DATA_ALEXAMEDIA] - and not self.hass.data[DATA_ALEXAMEDIA]["accounts"].items() - ): - return devices - for _, account_dict in self.hass.data[DATA_ALEXAMEDIA]["accounts"].items(): - devices = devices + list(account_dict["entities"]["media_player"].values()) - return devices - - async def async_send_message(self, message="", **kwargs): - """Send a message to a Alexa device.""" - _LOGGER.debug("Message: %s, kwargs: %s", message, kwargs) - kwargs["message"] = message - targets = kwargs.get(ATTR_TARGET) - title = kwargs.get(ATTR_TITLE) if ATTR_TITLE in kwargs else ATTR_TITLE_DEFAULT - data = kwargs.get(ATTR_DATA) - if isinstance(targets, str): - targets = [targets] - entities = self.convert(targets, type_="entities") - try: - entities.extend(self.hass.components.group.expand_entity_ids(entities)) - except ValueError: - _LOGGER.debug("Invalid Home Assistant entity in %s", entities) - tasks = [] - if data["type"] == "tts": - targets = self.convert(entities, type_="entities", filter_matches=True) - _LOGGER.debug("TTS entities: %s", targets) - for alexa in targets: - _LOGGER.debug("TTS by %s : %s", alexa, message) - tasks.append(alexa.async_send_tts(message)) - elif data["type"] == "announce": - targets = self.convert(entities, type_="serialnumbers", filter_matches=True) - _LOGGER.debug( - "Announce targets: %s entities: %s", - list(map(hide_serial, targets)), - entities, - ) - for account, account_dict in self.hass.data[DATA_ALEXAMEDIA][ - "accounts" - ].items(): - for alexa in account_dict["entities"]["media_player"].values(): - if alexa.unique_id in targets and alexa.available: - _LOGGER.debug( - ("%s: Announce by %s to " "targets: %s: %s"), - hide_email(account), - alexa, - list(map(hide_serial, targets)), - message, - ) - tasks.append( - alexa.async_send_announcement( - message, - targets=targets, - title=title, - method=(data["method"] if "method" in data else "all"), - ) - ) - break - elif data["type"] == "push": - targets = self.convert(entities, type_="entities", filter_matches=True) - for alexa in targets: - _LOGGER.debug("Push by %s : %s %s", alexa, title, message) - tasks.append(alexa.async_send_mobilepush(message, title=title)) - await asyncio.gather(*tasks) diff --git a/custom_components/alexa_media/sensor.py b/custom_components/alexa_media/sensor.py deleted file mode 100644 index 428a354..0000000 --- a/custom_components/alexa_media/sensor.py +++ /dev/null @@ -1,495 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- -# SPDX-License-Identifier: Apache-2.0 -""" -Alexa Devices Sensors. - -For more details about this platform, please refer to the documentation at -https://community.home-assistant.io/t/echo-devices-alexa-as-media-player-testers-needed/58639 -""" -import datetime -import logging -from typing import List, Text # noqa pylint: disable=unused-import - -from homeassistant.const import DEVICE_CLASS_TIMESTAMP, STATE_UNAVAILABLE -from homeassistant.exceptions import NoEntitySpecifiedError -from homeassistant.helpers.entity import Entity -from homeassistant.util import dt -import pytz - -from . import ( - CONF_EMAIL, - CONF_EXCLUDE_DEVICES, - CONF_INCLUDE_DEVICES, - DATA_ALEXAMEDIA, - DOMAIN as ALEXA_DOMAIN, - hide_email, - hide_serial, -) -from .helpers import add_devices, retry_async - -_LOGGER = logging.getLogger(__name__) - -LOCAL_TIMEZONE = datetime.datetime.now(datetime.timezone.utc).astimezone().tzinfo - -RECURRING_PATTERN = { - None: "Never Repeat", - "P1D": "Every day", - "XXXX-WE": "Weekends", - "XXXX-WD": "Weekdays", - "XXXX-WXX-1": "Every Monday", - "XXXX-WXX-2": "Every Tuesday", - "XXXX-WXX-3": "Every Wednesday", - "XXXX-WXX-4": "Every Thursday", - "XXXX-WXX-5": "Every Friday", - "XXXX-WXX-6": "Every Saturday", - "XXXX-WXX-7": "Every Sunday", -} - -RECURRING_PATTERN_ISO_SET = { - None: {}, - "P1D": {1, 2, 3, 4, 5, 6, 7}, - "XXXX-WE": {6, 7}, - "XXXX-WD": {1, 2, 3, 4, 5}, - "XXXX-WXX-1": {1}, - "XXXX-WXX-2": {2}, - "XXXX-WXX-3": {3}, - "XXXX-WXX-4": {4}, - "XXXX-WXX-5": {5}, - "XXXX-WXX-6": {6}, - "XXXX-WXX-7": {7}, -} - - -@retry_async(limit=5, delay=5, catch_exceptions=False) -async def async_setup_platform(hass, config, add_devices_callback, discovery_info=None): - """Set up the Alexa sensor platform.""" - devices: List[AlexaMediaSensor] = [] - SENSOR_TYPES = { - "Alarm": AlarmSensor, - "Timer": TimerSensor, - "Reminder": ReminderSensor, - } - account = config[CONF_EMAIL] - include_filter = config.get(CONF_INCLUDE_DEVICES, []) - exclude_filter = config.get(CONF_EXCLUDE_DEVICES, []) - account_dict = hass.data[DATA_ALEXAMEDIA]["accounts"][account] - _LOGGER.debug("%s: Loading sensors", hide_email(account)) - if "sensor" not in account_dict["entities"]: - (hass.data[DATA_ALEXAMEDIA]["accounts"][account]["entities"]["sensor"]) = {} - for key, device in account_dict["devices"]["media_player"].items(): - if key not in account_dict["entities"]["media_player"]: - _LOGGER.debug( - "%s: Media player %s not loaded yet; delaying load", - hide_email(account), - hide_serial(key), - ) - if devices: - await add_devices( - hide_email(account), - devices, - add_devices_callback, - include_filter, - exclude_filter, - ) - return False - if key not in (account_dict["entities"]["sensor"]): - (account_dict["entities"]["sensor"][key]) = {} - for (n_type, class_) in SENSOR_TYPES.items(): - n_type_dict = ( - account_dict["notifications"][key][n_type] - if key in account_dict["notifications"] - and n_type in account_dict["notifications"][key] - else {} - ) - if ( - n_type in ("Alarm, Timer") - and "TIMERS_AND_ALARMS" in device["capabilities"] - ): - alexa_client = class_( - account_dict["entities"]["media_player"][key], - n_type_dict, - account, - ) - elif n_type in ("Reminder") and "REMINDERS" in device["capabilities"]: - alexa_client = class_( - account_dict["entities"]["media_player"][key], - n_type_dict, - account, - ) - else: - continue - _LOGGER.debug( - "%s: Found %s %s sensor (%s) with next: %s", - hide_email(account), - hide_serial(key), - n_type, - len(n_type_dict.keys()), - alexa_client.state, - ) - devices.append(alexa_client) - (account_dict["entities"]["sensor"][key][n_type]) = alexa_client - else: - for alexa_client in account_dict["entities"]["sensor"][key].values(): - _LOGGER.debug( - "%s: Skipping already added device: %s", - hide_email(account), - alexa_client, - ) - return await add_devices( - hide_email(account), - devices, - add_devices_callback, - include_filter, - exclude_filter, - ) - - -async def async_setup_entry(hass, config_entry, async_add_devices): - """Set up the Alexa sensor platform by config_entry.""" - return await async_setup_platform( - hass, config_entry.data, async_add_devices, discovery_info=None - ) - - -async def async_unload_entry(hass, entry) -> bool: - """Unload a config entry.""" - account = entry.data[CONF_EMAIL] - account_dict = hass.data[DATA_ALEXAMEDIA]["accounts"][account] - for key, sensors in account_dict["entities"]["sensor"].items(): - for device in sensors[key].values(): - await device.async_remove() - return True - - -class AlexaMediaSensor(Entity): - """Representation of Alexa Media sensors.""" - - def __init__( - self, - client, - n_dict, - sensor_property: Text, - account, - name="Next Notification", - icon=None, - ): - """Initialize the Alexa sensor device.""" - # Class info - self._client = client - self._n_dict = n_dict - self._sensor_property = sensor_property - self._account = account - self._dev_id = client.unique_id - self._name = name - self._unit = None - self._device_class = DEVICE_CLASS_TIMESTAMP - self._icon = icon - self._all = [] - self._active = [] - self._next = None - self._timestamp: datetime.datetime = None - self._process_raw_notifications() - - def _process_raw_notifications(self): - self._all = ( - list(map(self._fix_alarm_date_time, self._n_dict.items())) - if self._n_dict - else [] - ) - self._all = list(map(self._update_recurring_alarm, self._all)) - self._all = sorted(self._all, key=lambda x: x[1][self._sensor_property]) - self._active = ( - list(filter(lambda x: x[1]["status"] == "ON", self._all)) - if self._all - else [] - ) - self._next = self._active[0][1] if self._active else None - - def _fix_alarm_date_time(self, value): - if ( - self._sensor_property != "date_time" - or not value - or isinstance(value[1][self._sensor_property], datetime.datetime) - ): - return value - naive_time = dt.parse_datetime(value[1][self._sensor_property]) - timezone = pytz.timezone(self._client._timezone) - if timezone and naive_time: - value[1][self._sensor_property] = timezone.localize(naive_time) - elif not naive_time: - # this is typically an older alarm - value[1][self._sensor_property] = datetime.datetime.fromtimestamp( - value[1]["alarmTime"] / 1000, tz=LOCAL_TIMEZONE - ) - _LOGGER.warning( - "There is an old format alarm on %s set for %s. " - " This alarm should be removed in the Alexa app and recreated. ", - self._client.name, - dt.as_local(value[1][self._sensor_property]), - ) - else: - _LOGGER.warning( - "%s is returning erroneous data. " - "Returned times may be wrong. " - "Please confirm the timezone in the Alexa app is correct. " - "Debugging info: \nRaw: %s \nNaive Time: %s " - "\nTimezone: %s", - self._client.name, - value[1], - naive_time, - self._client._timezone, - ) - return value - - def _update_recurring_alarm(self, value): - _LOGGER.debug("value %s", value) - alarm = value[1][self._sensor_property] - alarm_on = value[1]["status"] == "ON" - recurring_pattern = value[1]["recurringPattern"] - while ( - alarm_on - and recurring_pattern - and alarm < dt.now() - and RECURRING_PATTERN_ISO_SET[recurring_pattern] - and alarm.isoweekday not in RECURRING_PATTERN_ISO_SET[recurring_pattern] - ): - alarm += datetime.timedelta(days=1) - if alarm != value[1][self._sensor_property]: - _LOGGER.debug( - "Alarm with recurrence %s set to %s", - RECURRING_PATTERN[recurring_pattern], - alarm, - ) - value[1][self._sensor_property] = alarm - return value - - @staticmethod - def _round_time(value: datetime.datetime) -> datetime.datetime: - precision = datetime.timedelta(seconds=1).total_seconds() - seconds = (value - value.min.replace(tzinfo=value.tzinfo)).seconds - rounding = (seconds + precision / 2) // precision * precision - return value + datetime.timedelta(0, rounding - seconds, -value.microsecond) - - async def async_added_to_hass(self): - """Store register state change callback.""" - try: - if not self.enabled: - return - except AttributeError: - pass - # Register event handler on bus - self._listener = self.hass.bus.async_listen( - f"{ALEXA_DOMAIN}_{hide_email(self._account)}"[0:32], self._handle_event - ) - await self.async_update() - - async def async_will_remove_from_hass(self): - """Prepare to remove entity.""" - # Register event handler on bus - self._listener() - - def _handle_event(self, event): - """Handle events. - - This will update PUSH_NOTIFICATION_CHANGE events to see if the sensor - should be updated. - """ - try: - if not self.enabled: - return - except AttributeError: - pass - if "notification_update" in event.data: - if ( - event.data["notification_update"]["dopplerId"]["deviceSerialNumber"] - == self._client.unique_id - ): - _LOGGER.debug("Updating sensor %s", self.name) - self.async_schedule_update_ha_state(True) - - @property - def available(self): - """Return the availabilty of the sensor.""" - return True - - @property - def hidden(self): - """Return whether the sensor should be hidden.""" - return self.state == STATE_UNAVAILABLE - - @property - def unique_id(self): - """Return the unique ID.""" - return f"{self._client.unique_id}_{self._name}" - - @property - def name(self): - """Return the name of the sensor.""" - return f"{self._client.name} {self._name}" - - @property - def should_poll(self): - """Return the polling state.""" - return not ( - self.hass.data[DATA_ALEXAMEDIA]["accounts"][self._account]["websocket"] - ) - - @property - def state(self): - """Return the state of the sensor.""" - return ( - self._next[self._sensor_property].replace(tzinfo=LOCAL_TIMEZONE).isoformat() - if self._next - else STATE_UNAVAILABLE - ) - - @property - def unit_of_measurement(self): - """Return the unit_of_measurement of the device.""" - return self._unit - - @property - def device_class(self): - """Return the device_class of the device.""" - return self._device_class - - async def async_update(self): - """Update state.""" - try: - if not self.enabled: - return - except AttributeError: - pass - account_dict = self.hass.data[DATA_ALEXAMEDIA]["accounts"][self._account] - self._timestamp = account_dict["notifications"]["process_timestamp"] - try: - self._n_dict = account_dict["notifications"][self._dev_id][self._type] - except KeyError: - self._n_dict = None - self._process_raw_notifications() - try: - self.async_schedule_update_ha_state() - except NoEntitySpecifiedError: - pass # we ignore this due to a harmless startup race condition - - @property - def device_info(self): - """Return the device_info of the device.""" - return { - "identifiers": {(ALEXA_DOMAIN, self._dev_id)}, - "via_device": (ALEXA_DOMAIN, self._dev_id), - } - - @property - def icon(self): - """Return the icon of the sensor.""" - return self._icon - - @property - def recurrence(self): - """Return the recurrence pattern of the sensor.""" - return RECURRING_PATTERN[self._next["recurringPattern"]] if self._next else None - - @property - def device_state_attributes(self): - """Return additional attributes.""" - import json - - attr = { - "recurrence": self.recurrence, - "total_active": len(self._active), - "total_all": len(self._all), - "sorted_active": json.dumps(self._active, default=str), - "sorted_all": json.dumps(self._all, default=str), - } - return attr - - -class AlarmSensor(AlexaMediaSensor): - """Representation of a Alexa Alarm sensor.""" - - def __init__(self, client, n_json, account): - """Initialize the Alexa sensor.""" - # Class info - self._type = "Alarm" - super().__init__( - client, n_json, "date_time", account, f"next {self._type}", "mdi:alarm" - ) - - -class TimerSensor(AlexaMediaSensor): - """Representation of a Alexa Timer sensor.""" - - def __init__(self, client, n_json, account): - """Initialize the Alexa sensor.""" - # Class info - self._type = "Timer" - super().__init__( - client, n_json, "remainingTime", account, f"next {self._type}", "mdi:timer" - ) - - @property - def state(self) -> datetime.datetime: - """Return the state of the sensor.""" - return ( - dt.as_local( - super()._round_time( - datetime.datetime.fromtimestamp( - self._timestamp.timestamp() - + self._next[self._sensor_property] / 1000 - ) - ) - ).isoformat() - if self._next and self._timestamp - else STATE_UNAVAILABLE - ) - - @property - def paused(self) -> bool: - """Return the paused state of the sensor.""" - return self._next["status"] == "PAUSED" if self._next else None - - @property - def icon(self): - """Return the icon of the sensor.""" - return self._icon if not self.paused else "mdi:timer-off" - - -class ReminderSensor(AlexaMediaSensor): - """Representation of a Alexa Reminder sensor.""" - - def __init__(self, client, n_json, account): - """Initialize the Alexa sensor.""" - # Class info - self._type = "Reminder" - super().__init__( - client, n_json, "alarmTime", account, f"next {self._type}", "mdi:reminder" - ) - - @property - def state(self): - """Return the state of the sensor.""" - return ( - dt.as_local( - super()._round_time( - datetime.datetime.fromtimestamp( - self._next[self._sensor_property] / 1000, tz=LOCAL_TIMEZONE - ) - ) - ).isoformat() - if self._next - else STATE_UNAVAILABLE - ) - - @property - def reminder(self): - """Return the reminder of the sensor.""" - return self._next["reminderLabel"] if self._next else None - - @property - def device_state_attributes(self): - """Return the scene state attributes.""" - attr = super().device_state_attributes - attr.update({"reminder": self.reminder}) - return attr diff --git a/custom_components/alexa_media/services.yaml b/custom_components/alexa_media/services.yaml deleted file mode 100644 index c1e4c51..0000000 --- a/custom_components/alexa_media/services.yaml +++ /dev/null @@ -1,29 +0,0 @@ -# SPDX-License-Identifier: Apache-2.0 -update_last_called: - # Description of the service - description: Forces update of last_called echo device for each Alexa account. - # Different fields that your service accepts - fields: - # Key of the field - email: - # Description of the field - description: List of Alexa accounts to update. If empty, will update all known accounts. - # Example value that can be passed for this field - example: 'my_email@alexa.com' - -clear_history: - # Description of the service - description: Clear last entries from Alexa history for each Alexa account. - # Different fields that your service accepts - fields: - # Key of the field - email: - # Description of the field - description: List of Alexa accounts to update. If empty, will delete from all known accounts. - # Example value that can be passed for this field - example: 'my_email@alexa.com' - entries: - # Description of the field - description: Number of entries to clear from 1 to 50. If empty, clear 50. - # Example value that can be passed for this field - example: 50 \ No newline at end of file diff --git a/custom_components/alexa_media/strings.json b/custom_components/alexa_media/strings.json deleted file mode 100644 index 9d81c87..0000000 --- a/custom_components/alexa_media/strings.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "config": { - "error": { - "connection_error": "Error connecting; check network and retry", - "identifier_exists": "Email for Alexa URL already registered", - "invalid_credentials": "Invalid credentials", - "unknown_error": "Unknown error, please report log info" - }, - "step": { - "user": { - "data": { - "password": "Password", - "email": "Email Address", - "url": "Amazon region domain (e.g., amazon.co.uk)", - "include_devices": "Included device (comma separated)", - "exclude_devices": "Excluded device (comma separated)", - "debug": "Advanced debugging", - "scan_interval": "Seconds between scans" - }, - "description": "Please enter your information.", - "title": "Alexa Media Player - Configuration" - }, - "captcha": { - "data": { - "password": "Password", - "captcha": "Captcha" - }, - "description": "**{email} - alexa.{url}**\n{message}\n {captcha_image}", - "title": "Alexa Media Player - Captcha" - }, - "twofactor": { - "data": { - "securitycode": "2FA Code" - }, - "description": "**{email} - alexa.{url}**\nEnter the One Time Password (OTP).\n{message}", - "title": "Alexa Media Player - Two Factor Authentication" - }, - "authselect": { - "data": { - "authselectoption": "OTP method" - }, - "description": "**{email} - alexa.{url}**\n{message}", - "title": "Alexa Media Player - One Time Password" - }, - "claimspicker": { - "data": { - "authselectoption": "Verification method" - }, - "description": "**{email} - alexa.{url}**\nPlease select verification method. (e.g., `sms` or `email`)\n{message}", - "title": "Alexa Media Player - Verification Method" - } - - }, - "title": "Alexa Media Player" - } -} diff --git a/custom_components/alexa_media/switch.py b/custom_components/alexa_media/switch.py deleted file mode 100644 index 37b3023..0000000 --- a/custom_components/alexa_media/switch.py +++ /dev/null @@ -1,355 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- -# SPDX-License-Identifier: Apache-2.0 -""" -Alexa Devices Switches. - -For more details about this platform, please refer to the documentation at -https://community.home-assistant.io/t/echo-devices-alexa-as-media-player-testers-needed/58639 -""" -import logging -from typing import List # noqa pylint: disable=unused-import - -from homeassistant.components.switch import SwitchDevice -from homeassistant.exceptions import NoEntitySpecifiedError - -from . import ( - CONF_EMAIL, - CONF_EXCLUDE_DEVICES, - CONF_INCLUDE_DEVICES, - DATA_ALEXAMEDIA, - DOMAIN as ALEXA_DOMAIN, - hide_email, - hide_serial, -) -from .helpers import _catch_login_errors, add_devices, retry_async - -_LOGGER = logging.getLogger(__name__) - - -@retry_async(limit=5, delay=5, catch_exceptions=True) -async def async_setup_platform(hass, config, add_devices_callback, discovery_info=None): - """Set up the Alexa switch platform.""" - devices = [] # type: List[DNDSwitch] - SWITCH_TYPES = [ - ("dnd", DNDSwitch), - ("shuffle", ShuffleSwitch), - ("repeat", RepeatSwitch), - ] - account = config[CONF_EMAIL] - include_filter = config.get(CONF_INCLUDE_DEVICES, []) - exclude_filter = config.get(CONF_EXCLUDE_DEVICES, []) - account_dict = hass.data[DATA_ALEXAMEDIA]["accounts"][account] - _LOGGER.debug("%s: Loading switches", hide_email(account)) - if "switch" not in account_dict["entities"]: - (hass.data[DATA_ALEXAMEDIA]["accounts"][account]["entities"]["switch"]) = {} - for key, _ in account_dict["devices"]["media_player"].items(): - if key not in account_dict["entities"]["media_player"]: - _LOGGER.debug( - "%s: Media player %s not loaded yet; delaying load", - hide_email(account), - hide_serial(key), - ) - if devices: - await add_devices( - hide_email(account), - devices, - add_devices_callback, - include_filter, - exclude_filter, - ) - return False - if key not in ( - hass.data[DATA_ALEXAMEDIA]["accounts"][account]["entities"]["switch"] - ): - ( - hass.data[DATA_ALEXAMEDIA]["accounts"][account]["entities"]["switch"][ - key - ] - ) = {} - for (switch_key, class_) in SWITCH_TYPES: - if ( - switch_key == "dnd" - and not account_dict["devices"]["switch"][key].get("dnd") - ) or ( - switch_key in ["shuffle", "repeat"] - and "MUSIC_SKILL" - not in account_dict["devices"]["media_player"][key].get( - "capabilities" - ) - ): - _LOGGER.debug( - "%s: Skipping %s for %s", - hide_email(account), - switch_key, - hide_serial(key), - ) - continue - alexa_client = class_( - account_dict["entities"]["media_player"][key], account - ) # type: AlexaMediaSwitch - _LOGGER.debug( - "%s: Found %s %s switch with status: %s", - hide_email(account), - hide_serial(key), - switch_key, - alexa_client.is_on, - ) - devices.append(alexa_client) - ( - hass.data[DATA_ALEXAMEDIA]["accounts"][account]["entities"][ - "switch" - ][key][switch_key] - ) = alexa_client - else: - for alexa_client in hass.data[DATA_ALEXAMEDIA]["accounts"][account][ - "entities" - ]["switch"][key].values(): - _LOGGER.debug( - "%s: Skipping already added device: %s", - hide_email(account), - alexa_client, - ) - return await add_devices( - hide_email(account), - devices, - add_devices_callback, - include_filter, - exclude_filter, - ) - - -async def async_setup_entry(hass, config_entry, async_add_devices): - """Set up the Alexa switch platform by config_entry.""" - return await async_setup_platform( - hass, config_entry.data, async_add_devices, discovery_info=None - ) - - -async def async_unload_entry(hass, entry) -> bool: - """Unload a config entry.""" - account = entry.data[CONF_EMAIL] - account_dict = hass.data[DATA_ALEXAMEDIA]["accounts"][account] - for key, switches in account_dict["entities"]["switch"].items(): - for device in switches[key].values(): - await device.async_remove() - return True - - -class AlexaMediaSwitch(SwitchDevice): - """Representation of a Alexa Media switch.""" - - def __init__(self, client, switch_property, switch_function, account, name="Alexa"): - """Initialize the Alexa Switch device.""" - # Class info - self._client = client - self._login = client._login - self._account = account - self._name = name - self._switch_property = switch_property - self._state = False - self._switch_function = switch_function - - async def async_added_to_hass(self): - """Store register state change callback.""" - try: - if not self.enabled: - return - except AttributeError: - pass - # Register event handler on bus - self._listener = self.hass.bus.async_listen( - f"{ALEXA_DOMAIN}_{hide_email(self._login.email)}"[0:32], self._handle_event - ) - - async def async_will_remove_from_hass(self): - """Prepare to remove entity.""" - # Register event handler on bus - self._listener() - - def _handle_event(self, event): - """Handle events. - - This will update PUSH_MEDIA_QUEUE_CHANGE events to see if the switch - should be updated. - """ - try: - if not self.enabled: - return - except AttributeError: - pass - if "queue_state" in event.data: - queue_state = event.data["queue_state"] - if queue_state["dopplerId"]["deviceSerialNumber"] == self._client.unique_id: - self._state = getattr(self._client, self._switch_property) - self.async_schedule_update_ha_state() - - @_catch_login_errors - async def _set_switch(self, state, **kwargs): - try: - if not self.enabled: - return - except AttributeError: - pass - success = await self._switch_function(state) - # if function returns success, make immediate state change - if success: - setattr(self._client, self._switch_property, state) - _LOGGER.debug( - "Switch set to %s based on %s", - getattr(self._client, self._switch_property), - state, - ) - self.async_schedule_update_ha_state() - elif self.should_poll: - # if we need to poll, refresh media_client - _LOGGER.debug( - "Requesting update of %s due to %s switch to %s", - self._client, - self._name, - state, - ) - await self._client.async_update() - - @property - def is_on(self): - """Return true if on.""" - return self.available and getattr(self._client, self._switch_property) - - async def async_turn_on(self, **kwargs): - """Turn on switch.""" - await self._set_switch(True, **kwargs) - - async def async_turn_off(self, **kwargs): - """Turn off switch.""" - await self._set_switch(False, **kwargs) - - @property - def available(self): - """Return the availabilty of the switch.""" - return getattr(self._client, self._switch_property) is not None - - @property - def unique_id(self): - """Return the unique ID.""" - return self._client.unique_id + "_" + self._name - - @property - def name(self): - """Return the name of the switch.""" - return "{} {} switch".format(self._client.name, self._name) - - @property - def device_class(self): - """Return the device_class of the switch.""" - return "switch" - - @property - def hidden(self): - """Return whether the switch should be hidden from the UI.""" - return not self.available - - @property - def should_poll(self): - """Return the polling state.""" - return not ( - self.hass.data[DATA_ALEXAMEDIA]["accounts"][self._account]["websocket"] - ) - - @_catch_login_errors - async def async_update(self): - """Update state.""" - try: - if not self.enabled: - return - except AttributeError: - pass - try: - self.async_schedule_update_ha_state() - except NoEntitySpecifiedError: - pass # we ignore this due to a harmless startup race condition - - @property - def device_info(self): - """Return device_info for device registry.""" - return { - "identifiers": {(ALEXA_DOMAIN, self._client.unique_id)}, - "via_device": (ALEXA_DOMAIN, self._client.unique_id), - } - - @property - def icon(self): - """Return the icon of the switch.""" - return self._icon() - - def _icon(self, on=None, off=None): - return on if self.is_on else off - - -class DNDSwitch(AlexaMediaSwitch): - """Representation of a Alexa Media Do Not Disturb switch.""" - - def __init__(self, client, account): - """Initialize the Alexa Switch.""" - # Class info - super().__init__( - client, - "dnd_state", - client.alexa_api.set_dnd_state, - account, - "do not disturb", - ) - - @property - def icon(self): - """Return the icon of the switch.""" - return super()._icon("mdi:do-not-disturb", "mdi:do-not-disturb-off") - - def _handle_event(self, event): - """Handle events. - - This will update PUSH_EQUALIZER_STATE_CHANGE events to see if the DND switch - should be updated. - """ - try: - if not self.enabled: - return - except AttributeError: - pass - if "player_state" in event.data: - queue_state = event.data["player_state"] - if queue_state["dopplerId"]["deviceSerialNumber"] == self._client.unique_id: - self._state = getattr(self._client, self._switch_property) - self.async_schedule_update_ha_state() - - -class ShuffleSwitch(AlexaMediaSwitch): - """Representation of a Alexa Media Shuffle switch.""" - - def __init__(self, client, account): - """Initialize the Alexa Switch.""" - # Class info - super().__init__( - client, "shuffle", client.alexa_api.shuffle, account, "shuffle" - ) - - @property - def icon(self): - """Return the icon of the switch.""" - return super()._icon("mdi:shuffle", "mdi:shuffle-disabled") - - -class RepeatSwitch(AlexaMediaSwitch): - """Representation of a Alexa Media Repeat switch.""" - - def __init__(self, client, account): - """Initialize the Alexa Switch.""" - # Class info - super().__init__( - client, "repeat_state", client.alexa_api.repeat, account, "repeat" - ) - - @property - def icon(self): - """Return the icon of the switch.""" - return super()._icon("mdi:repeat", "mdi:repeat-off") diff --git a/custom_components/garbage_collection/.translations/cs.json b/custom_components/garbage_collection/.translations/cs.json deleted file mode 100644 index 92f5ada..0000000 --- a/custom_components/garbage_collection/.translations/cs.json +++ /dev/null @@ -1,157 +0,0 @@ -{ - "config": { - "title": "Garbage Collection", - "step": { - "user": { - "title": "Garbage Collection - Konfigurace", - "description": "Zadej jméno sensoru a nastav parametry. Více na https://github.com/bruxy70/Garbage-Collection", - "data": { - "name": "Friendly name", - "frequency": "Frekvence", - "icon_normal": "Ikona", - "icon_tomorrow": "Ikona svoz zítra", - "icon_today": "Ikona svoz dnes", - "verbose_state": "Verbose state (popis místo čísel)", - "verbose_format": "Verbose format (Pouýij `date` a `days` proměnné (ve složených závorkách))", - "date_format": "Formát data(see http://strftime.org/)" - } - }, - "annual_group": { - "title": "Garbage Collection - Další parametry", - "description": "Zadej datum svozu (např. 11/20 pro 20. listoped)", - "data": { - "date": "Datum (mm/dd)", - "entities": "Seznam entit (odděleno čárkou)" - } - }, - "detail": { - "title": "Garbage Collection - Dny svozu", - "description": "Vyber jeden nebo více dnů svozu. Více na: https://github.com/bruxy70/Garbage-Collection", - "data": { - "collection_days_mon": "Pondělí", - "collection_days_tue": "Úterý", - "collection_days_wed": "Středa", - "collection_days_thu": "Čtvrtek", - "collection_days_fri": "Pátek", - "collection_days_sat": "Sobota", - "collection_days_sun": "Neděle", - "force_week_order_numbers": "Číslo týdne v měsící místo čísla dne" - } - }, - "final": { - "title": "Garbage Collection - Další parametry", - "description": "Přidané a zakázané datumy jsou seznamy datumů ve formátu yyyy-mm-dd, oddělených čárkou. Více info na https://github.com/bruxy70/Garbage-Collection", - "data": { - "first_month": "První měsíc svozu", - "last_month": "Poslední měsíc scozu", - "period": "Perioda (svoz každých n týdnů/dnů): (1-52)", - "first_week": "První týden svozu (1-52)", - "first_date": "První datum", - "weekday_order_number_1": "Prvn den v měsíci", - "weekday_order_number_2": "Druhý den v měsíci", - "weekday_order_number_3": "Třetí den v měsíci", - "weekday_order_number_4": "Čtvrtý den v měsíci", - "weekday_order_number_5": "Pátý den v měsíci", - "week_order_number_1": "Prvn týden v měsíci", - "week_order_number_2": "Druhý týden v měsíci", - "week_order_number_3": "Třetí týden v měsíci", - "week_order_number_4": "Čtvrtý týden v měsíci", - "week_order_number_5": "Pátý týden v měsíci", - "include_dates": "Přidané datumy (volitelné)", - "exclude_dates": "Zakázané datumy (volitelné)", - "move_country_holidays": "Státní svátky - země (volitelné)", - "prov": "Státní svátky - provincie (volitelné)", - "state": "Státní svátky - stát (volitelné)", - "observed": "Státní svátky - observed (volitelné)" - - } - } - }, - "error": { - "name": "Jméno sensoru nemůže být prázdné.", - "days": "VYber jeden nebo více dní!", - "entities": "Entita neexistuje!", - "month_day": "Špatný formát data!", - "weekday_order_number": "Vyber jeden nebo více dní!", - "period": "Perioda musí být číslo mezi 1 a 52", - "first_week": "První týden musí být číslo mezi 1 a 52", - "date": "Špatný formát data!" - - }, - "abort": { - "single_instance_allowed": "Only a single configuration of Garbage Collection is allowed." - } - }, - "options": { - "step": { - "init": { - "title": "Garbage Collection - Konfigurace", - "description": "Zadej jméno sensoru a nastav parametry. Více na https://github.com/bruxy70/Garbage-Collection", - "data": { - "frequency": "Frekvence", - "icon_normal": "Ikona", - "icon_tomorrow": "Ikona svoz zítra", - "icon_today": "Ikona svoz dnes", - "verbose_state": "Verbose state (popis místo čísel)", - "verbose_format": "Verbose format (Pouýij `date` a `days` proměnné (ve složených závorkách))", - "date_format": "Formát data(see http://strftime.org/)" - } - }, - "annual_group": { - "title": "Garbage Collection - Další parametry", - "description": "Zadej datum svozu (např. 11/20 pro 20. listoped)", - "data": { - "date": "Datum (mm/dd)", - "entities": "Seznam entit (odděleno čárkou)" - } - }, - "detail": { - "title": "Garbage Collection - Dny svozu", - "description": "Vyber jeden nebo více dnů svozu. Více na: https://github.com/bruxy70/Garbage-Collection", - "data": { - "collection_days_mon": "Pondělí", - "collection_days_tue": "Úterý", - "collection_days_wed": "Středa", - "collection_days_thu": "Čtvrtek", - "collection_days_fri": "Pátek", - "collection_days_sat": "Sobota", - "collection_days_sun": "Neděle", - "force_week_order_numbers": "Číslo týdne v měsící místo čísla dne" - - } - }, - "final": { - "title": "Garbage Collection - Další parametry", - "description": "Přidané a zakázané datumy jsou seznamy datumů ve formátu yyyy-mm-dd, oddělených čárkou. Více info na https://github.com/bruxy70/Garbage-Collection", - "data": { - "first_month": "První měsíc svozu", - "last_month": "Poslední měsíc scozu", - "period": "Perioda (svoz každých n týdnů-dnů): (1-52)", - "first_week": "První týden svozu (1-52)", - "first_date": "První datum", - "weekday_order_number_1": "Prvn den v měsíci", - "weekday_order_number_2": "Druhý den v měsíci", - "weekday_order_number_3": "Třetí den v měsíci", - "weekday_order_number_4": "Čtvrtý den v měsíci", - "weekday_order_number_5": "Pátý den v měsíci", - "week_order_number_1": "Prvn týden v měsíci", - "week_order_number_2": "Druhý týden v měsíci", - "week_order_number_3": "Třetí týden v měsíci", - "week_order_number_4": "Čtvrtý týden v měsíci", - "week_order_number_5": "Pátý týden v měsíci", - "include_dates": "Přidané datumy (volitelné)", - "exclude_dates": "Zakázané datumy (volitelné)", - "move_country_holidays": "Státní svátky - země (volitelné)", - "prov": "Státní svátky - provincie (volitelné)", - "state": "Státní svátky - stát (volitelné)", - "observed": "Státní svátky - observed (volitelné)" - } - } - }, - "error": { - "date": "Špatný formát data!", - "entities": "Entita neexistuje!" - } - } - -} \ No newline at end of file diff --git a/custom_components/garbage_collection/.translations/en.json b/custom_components/garbage_collection/.translations/en.json deleted file mode 100644 index 0ae5f67..0000000 --- a/custom_components/garbage_collection/.translations/en.json +++ /dev/null @@ -1,155 +0,0 @@ -{ - "config": { - "title": "Garbage Collection", - "step": { - "user": { - "title": "Garbage Collection - Collection frequency", - "description": "Enter the sensor name and configure sensor parameters. More info on https://github.com/bruxy70/Garbage-Collection", - "data": { - "name": "Friendly name", - "frequency": "Frequency", - "icon_normal": "Icon", - "icon_tomorrow": "Icon collectio tomorrow", - "icon_today": "Icon collection today", - "verbose_state": "Verbose state (text, instead of number)", - "verbose_format": "Verbose format (using `date` and `days` variables (in squary brackets))", - "date_format": "Date format (see http://strftime.org/)" - } - }, - "annual_group": { - "title": "Garbage Collection - Additional parameters", - "description": "Enter the collection day date (e.g. 11/20 for November 20)", - "data": { - "date": "Date (mm/dd)", - "entities": "List of entities (comma separated)" - } - }, - "detail": { - "title": "Garbage Collection - Collection days", - "description": "Select one or more collection days. More details here: https://github.com/bruxy70/Garbage-Collection", - "data": { - "collection_days_mon": "Monday", - "collection_days_tue": "Tuesday", - "collection_days_wed": "Wednesday", - "collection_days_thu": "Thursday", - "collection_days_fri": "Friday", - "collection_days_sat": "Saturday", - "collection_days_sun": "Sunday", - "force_week_order_numbers": "Order of week in a month instead of order of weekday" - } - }, - "final": { - "title": "Garbage Collection - Additional parameters", - "description": "Include and exclude dates are comma separated lists of dates, in format yyyy-mm-dd. More info on https://github.com/bruxy70/Garbage-Collection", - "data": { - "first_month": "First collection month", - "last_month": "Last collection month", - "period": "Collection every n weeks/days: (1-52)", - "first_week": "First collection week (1-52)", - "first_date": "First date", - "weekday_order_number_1": "1st weekday of month", - "weekday_order_number_2": "2nd weekday of month", - "weekday_order_number_3": "3rd weekday of month", - "weekday_order_number_4": "4th weekday of month", - "weekday_order_number_5": "5th weekday of month", - "week_order_number_1": "1st week of month", - "week_order_number_2": "2nd week of month", - "week_order_number_3": "3rd week of month", - "week_order_number_4": "4th week of month", - "week_order_number_5": "5th week of month", - "include_dates": "Include dates (optional)", - "exclude_dates": "Exclude dates (optional)", - "move_country_holidays": "Move holidays to next day (optional)", - "prov": "Country holidays - prov (optional)", - "state": "Country holidays - state (optional)", - "observed": "Country holidays - observed (optional)" - } - } - }, - "error": { - "name": "The sensor name cannot be empty. Please enter the sensor name.", - "days": "Select 1 or more days!", - "entities": "Entity does not exist!", - "month_day": "Invalid date format!", - "weekday_order_number": "Select 1 or more days", - "period": "Period must be a number between 1 and 52", - "first_week": "Firsr week must be a number between 1 and 52", - "date": "Invalid date format!" - - }, - "abort": { - "single_instance_allowed": "Only a single configuration of Garbage Collection is allowed." - } - }, - "options": { - "step": { - "init": { - "title": "Garbage Collection - Collection frequency", - "description": "Change sensor parameters. More info on https://github.com/bruxy70/Garbage-Collection", - "data": { - "frequency": "Frequency", - "icon_normal": "Icon", - "icon_tomorrow": "Icon collectio tomorrow", - "icon_today": "Icon collection today", - "verbose_state": "Verbose state (text, instead of number)", - "verbose_format": "Verbose format (using `date` and `days` variables (in squary brackets))", - "date_format": "Date format (see http://strftime.org/)" - } - }, - "annual_group": { - "title": "Garbage Collection - Additional parameters", - "description": "Enter the collection day date (e.g. 11/20 for November 20)", - "data": { - "date": "Date (mm/dd)", - "entities": "List of entities (comma separated)" - } - }, - "detail": { - "title": "Garbage Collection - Collection days", - "description": "Select one or more collection days. More details here: https://github.com/bruxy70/Garbage-Collection", - "data": { - "collection_days_mon": "Monday", - "collection_days_tue": "Tuesday", - "collection_days_wed": "Wednesday", - "collection_days_thu": "Thursday", - "collection_days_fri": "Friday", - "collection_days_sat": "Saturday", - "collection_days_sun": "Sunday", - "force_week_order_numbers": "Order of week in a month instead of order of weekday" - } - }, - "final": { - "title": "Garbage Collection - Additional parameters", - "description": "Include and exclude dates are comma separated lists of dates, in format yyyy-mm-dd. More info on https://github.com/bruxy70/Garbage-Collection", - "data": { - "first_month": "First collection month", - "last_month": "Last collection month", - "period": "Collection every n weeks/days: (1-52)", - "first_week": "First collection week (1-52)", - "first_date": "First date", - "weekday_order_number_1": "1st weekday of month", - "weekday_order_number_2": "2nd weekday of month", - "weekday_order_number_3": "3rd weekday of month", - "weekday_order_number_4": "4th weekday of month", - "weekday_order_number_5": "5th weekday of month", - "week_order_number_1": "1st week of month", - "week_order_number_2": "2nd week of month", - "week_order_number_3": "3rd week of month", - "week_order_number_4": "4th week of month", - "week_order_number_5": "5th week of month", - "include_dates": "Include dates (optional)", - "exclude_dates": "Exclude dates (optional)", - "move_country_holidays": "Move holidays to next day (optional)", - "prov": "Country holidays - prov (optional)", - "state": "Country holidays - state (optional)", - "observed": "Country holidays - observed (optional)" - } - } - }, - "error": { - "date": "Invalid date format!", - "entities": "Entity does not exist!" - } - } - -} \ No newline at end of file diff --git a/custom_components/garbage_collection/.translations/es.json b/custom_components/garbage_collection/.translations/es.json deleted file mode 100644 index 52ab53a..0000000 --- a/custom_components/garbage_collection/.translations/es.json +++ /dev/null @@ -1,155 +0,0 @@ -{ - "config": { - "title": "Recolección de basura", - "step": { - "user": { - "title": "Recolección de basura - Frecuencia de recogida", - "description": "Ingrese el nombre del sensor y configure los parámetros del sensor. Más información en https://github.com/bruxy70/Garbage-Collection", - "data": { - "name": "Nombre amigable", - "frequency": "Frequencia", - "icon_normal": "Icono", - "icon_tomorrow": "Icono de recoleccion para mañana", - "icon_today": "Icono de recoleccion para hoy", - "verbose_state": "Estado detallado (texto, en lugar de número)", - "verbose_format": "Formato detallado (usando las variables `fecha` y` dias` (entre corchetes))", - "date_format": "Formato de fecha(ver en http://strftime.org/)" - } - }, - "annual_group": { - "title": "Recolección de basura - Parámetros adicionales", - "description": "Ingrese la fecha del día de recolección (por ejemplo, 20/11 para el 20 de noviembre)", - "data": { - "date": "Fecha (mm/dd)", - "entities": "Lista de entidades (separadas por comas)" - } - }, - "detail": { - "title": "Recolección de basura - Días de recogida", - "description": "Seleccione uno o más días de recolección. Más detalles aquí: https://github.com/bruxy70/Garbage-Collection", - "data": { - "collection_days_mon": "Lunes", - "collection_days_tue": "Martes", - "collection_days_wed": "Miercoles", - "collection_days_thu": "Jueves", - "collection_days_fri": "Viernes", - "collection_days_sat": "Sabado", - "collection_days_sun": "Domingo", - "force_week_order_numbers": "Orden de la semana en un mes en lugar del orden del día de la semana" - } - }, - "final": { - "title": "Recolección de basura - Parámetros adicionales", - "description": "Las fechas de inclusión y exclusión son listas de fechas separadas por comas, en formato yyyy-mm-dd. Más información en https://github.com/bruxy70/Garbage-Collection", - "data": { - "first_month": "Primer mes de recogida", - "last_month": "Último mes de recogida", - "period": "Recolección cada n semanas / días: (1-52)", - "first_week": "Primera semana de recolección (1-52)", - "first_date": "Primera fecha", - "weekday_order_number_1": "Primer día de la semana del mes", - "weekday_order_number_2": "Segundo día de la semana del mes", - "weekday_order_number_3": "Tercer día de la semana del mes", - "weekday_order_number_4": "Cuarto día de la semana del mes", - "weekday_order_number_5": "Quinto día de la semana del mes", - "week_order_number_1": "1ra semana del mes", - "week_order_number_2": "2da semana del mes", - "week_order_number_3": "3ra semana del mes", - "week_order_number_4": "4ta semana del mes", - "week_order_number_5": "5ta semana del mes", - "include_dates": "Incluir fechas (opcional)", - "exclude_dates": "Excluir fechas (opcional)", - "move_country_holidays": "Mover vacaciones al día siguiente (opcional)", - "prov": "Días festivos - prov (opcional)", - "state": "Días festivos - estado (opcional)", - "observed": "Días festivos - observado (opcional)" - } - } - }, - "error": { - "name": "El nombre del sensor no puede estar vacío. Por favor, introduzca el nombre del sensor.", - "days": "Seleccione 1 o más días!", - "entities": "La entidad no existe!", - "month_day": "Formato de fecha inválido!", - "weekday_order_number": "Seleccione 1 o más días", - "period": "El período debe ser un número entre 1 y 52", - "first_week": "La primera semana debe ser un número entre 1 y 52", - "date": "Formato de fecha inválido!" - - }, - "abort": { - "single_instance_allowed": "Solo se permite una única configuración de Recolección de basura." - } - }, - "options": { - "step": { - "init": { - "title": "Recolección de basura - Frecuencia de recogida", - "description": "Cambiar los parámetros del sensor. Más información en https://github.com/bruxy70/Garbage-Collection", - "data": { - "frequency": "Frequencia", - "icon_normal": "Icono", - "icon_tomorrow": "Icono de recoleccion para mañana", - "icon_today": "Icono de recoleccion para hoy", - "verbose_state": "Estado detallado (texto, en lugar de número)", - "verbose_format": "Formato detallado (usando las variables `fecha` y` dias` (entre corchetes))", - "date_format": "Formato de fecha(ver en http://strftime.org/)" - } - }, - "annual_group": { - "title": "Recolección de basura - Parámetros adicionales", - "description": "Ingrese la fecha del día de recolección (por ejemplo, 20/11 para el 20 de noviembre)", - "data": { - "date": "Fecha (mm/dd)", - "entities": "Lista de entidades (separadas por comas)" - } - }, - "detail": { - "title": "Recolección de basura - Días de recogida", - "description": "Seleccione uno o más días de recolección. Más detalles aquí: https://github.com/bruxy70/Garbage-Collection", - "data": { - "collection_days_mon": "Lunes", - "collection_days_tue": "Martes", - "collection_days_wed": "Miercoles", - "collection_days_thu": "Jueves", - "collection_days_fri": "Viernes", - "collection_days_sat": "Sabado", - "collection_days_sun": "Domingo", - "force_week_order_numbers": "Orden de la semana en un mes en lugar del orden del día de la semana" - } - }, - "final": { - "title": "Recolección de basura - Parámetros adicionales", - "description": "Las fechas de inclusión y exclusión son listas de fechas separadas por comas, en formato yyyy-mm-dd. Más información en https://github.com/bruxy70/Garbage-Collection", - "data": { - "first_month": "Primer mes de recogida", - "last_month": "Último mes de recogida", - "period": "Recolección cada n semanas / días: (1-52)", - "first_week": "Primera semana de recolección (1-52)", - "first_date": "Primera fecha", - "weekday_order_number_1": "Primer día de la semana del mes", - "weekday_order_number_2": "Segundo día de la semana del mes", - "weekday_order_number_3": "Tercer día de la semana del mes", - "weekday_order_number_4": "Cuarto día de la semana del mes", - "weekday_order_number_5": "Quinto día de la semana del mes", - "week_order_number_1": "1ra semana del mes", - "week_order_number_2": "2da semana del mes", - "week_order_number_3": "3ra semana del mes", - "week_order_number_4": "4ta semana del mes", - "week_order_number_5": "5ta semana del mes", - "include_dates": "Incluir fechas (opcional)", - "exclude_dates": "Excluir fechas (opcional)", - "move_country_holidays": "Mover vacaciones al día siguiente (opcional)", - "prov": "Días festivos - prov (opcional)", - "state": "Días festivos - estado (opcional)", - "observed": "Días festivos - observado (opcional)" - } - } - }, - "error": { - "date": "Formato de fecha inválido!", - "entities": "La entidad no existe!" - } - } - -} diff --git a/custom_components/garbage_collection/.translations/fr.json b/custom_components/garbage_collection/.translations/fr.json deleted file mode 100644 index 987dd68..0000000 --- a/custom_components/garbage_collection/.translations/fr.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "config": { - "title": "Garbage Collection", - "step": { - "user": { - "title": "Garbage Collection - Fréquence de la collecte", - "description": "Définir le nom du capteur et configurer les paramètres du capteur. Plus d'info sur https://github.com/bruxy70/Garbage-Collection", - "data": { - "name": "Friendly name", - "frequency": "Fréquence", - "icon_normal": "Icone", - "icon_tomorrow": "Icone pour collecte à jour J+1", - "icon_today": "Icone pour collecte au jour J", - "verbose_state": "Etat verbeux (texte, au lieu du chiffre)", - "verbose_format": "Format état verbeux (utilisation des variables `date` et `days` (entre caractères accolade ))", - "date_format": "Format de date (voir http://strftime.org/)" - } - }, - "annual_group": { - "title": "Garbage Collection - Paramètres additionnels", - "description": "Entrer la date du jour de collecte (Ex: 11/20 pour le 20 Novembre)", - "data": { - "date": "Date (mm/dd)", - "entities": "Liste des entités (séparées par une virgule)" - } - }, - "detail": { - "title": "Garbage Collection - Jours de collecte", - "description": "Choisir un ou plusieurs jours de collecte. Plus de détail ici: https://github.com/bruxy70/Garbage-Collection", - "data": { - "collection_days_mon": "Lundi", - "collection_days_tue": "Mardi", - "collection_days_wed": "Mercredi", - "collection_days_thu": "Jeudi", - "collection_days_fri": "Vendredi", - "collection_days_sat": "Samedi", - "collection_days_sun": "Dimance", - "force_week_order_numbers": "Nième occurrence du jour de la semaine dans un mois, au lieu du jour de la semaine dans la Nième semaine de chaque mois. Plus d'info sur https://github.com/bruxy70/Garbage-Collection#parameters-for-monthly-collection" - } - }, - "final": { - "title": "Garbage Collection - Paramètres additionnels", - "description": "Liste de dates, séparées par des virgules, d'incluston et d'exclusion. Les dates sont au format yyyy-mm-dd. Plus d'info sur https://github.com/bruxy70/Garbage-Collection", - "data": { - "first_month": "Premier mois de la collecte", - "last_month": "Dernier mois de la collecte", - "period": "Collecte toutes les n semaines/jours: (1-52)", - "first_week": "Première semaine de la collecte (1-52)", - "first_date": "Première date", - "weekday_order_number_1": "1er jour de semaine du mois", - "weekday_order_number_2": "2ème jour de semaine du mois", - "weekday_order_number_3": "3ème jour de semaine du mois", - "weekday_order_number_4": "4ème jour de semaine du mois", - "weekday_order_number_5": "5th jour de semaine du mois", - "week_order_number_1": "1ère semaine du mois", - "week_order_number_2": "2ème semaine du mois", - "week_order_number_3": "3ème semaine du mois", - "week_order_number_4": "4ème semaine du mois", - "week_order_number_5": "5ème semaine du mois", - "include_dates": "Inclusion de dates (optionel)", - "exclude_dates": "Exclusion de dates (optionel)", - "move_country_holidays": "Move holidays to next day (optional)" - } - } - }, - "error": { - "name": "Le nom du capteur ne peut pas être vide. Merci d'entrer un nom pour le capteur.", - "days": "Choisir un ou plusieurs jours!", - "entities": "L'entité n'existe pas!", - "month_day": "Format de date invalide!", - "weekday_order_number": "Choisir un ou plusieurs jours", - "period": "Period doit être un nombre entre 1 et 52", - "first_week": "La première semaine doit être un nombre entre 1 et 52", - "date": "Format de date invalide!" - - }, - "abort": { - "single_instance_allowed": "Une seule configuration de Garbage Collection est autorisée" - } - }, - "options": { - "step": { - "init": { - "title": "Garbage Collection - Fréquence de la collecte", - "description": "Modifier les paramètres des capteur. Plus d'infos sur https://github.com/bruxy70/Garbage-Collection", - "data": { - "frequency": "Fréquence", - "icon_normal": "Icone", - "icon_tomorrow": "Icone pour collecte à jour J+1", - "icon_today": "Icone pour collecte au jour J", - "verbose_state": "Etat verbeux (texte, au lieu du chiffre)", - "verbose_format": "Format état verbeux (utilisation des variables `date` et `days` (entre caractères accolade ))", - "date_format": "Format de date (voir http://strftime.org/)" - } - }, - "annual_group": { - "title": "Garbage Collection - Paramètres additionnels", - "description": "Entrer la date du jour de collecte (Ex: 11/20 pour le 20 Novembre)", - "data": { - "date": "Date (mm/dd)", - "entities": "Liste des entités (séparées par une virgule)" - } - }, - "detail": { - "title": "Garbage Collection - Collection days", - "description": "Choisir un ou plusieurs jours de collecte. Plus de détail ici: https://github.com/bruxy70/Garbage-Collection", - "data": { - "collection_days_mon": "Lundi", - "collection_days_tue": "Mardi", - "collection_days_wed": "Mercredi", - "collection_days_thu": "Jeudi", - "collection_days_fri": "Vendredi", - "collection_days_sat": "Samedi", - "collection_days_sun": "Dimance", - "force_week_order_numbers": "Nième occurrence du jour de la semaine dans un mois, au lieu du jour de la semaine dans la Nième semaine de chaque mois. Plus d'info sur https://github.com/bruxy70/Garbage-Collection#parameters-for-monthly-collection" - } - }, - "final": { - "title": "Garbage Collection - Paramètres additionnels", - "description": "Liste de dates, séparées par des virgules, d'incluston et d'exclusion. Les dates sont au format yyyy-mm-dd. Plus d'info sur https://github.com/bruxy70/Garbage-Collection", - "data": { - "first_month": "Premier mois de la collecte", - "last_month": "Dernier mois de la collecte", - "period": "Collecte toutes les n semaines/jours: (1-52)", - "first_week": "Première semaine de la collecte (1-52)", - "first_date": "Première date", - "weekday_order_number_1": "1er jour de semaine du mois", - "weekday_order_number_2": "2ème jour de semaine du mois", - "weekday_order_number_3": "3ème jour de semaine du mois", - "weekday_order_number_4": "4ème jour de semaine du mois", - "weekday_order_number_5": "5th jour de semaine du mois", - "week_order_number_1": "1ère semaine du mois", - "week_order_number_2": "2ème semaine du mois", - "week_order_number_3": "3ème semaine du mois", - "week_order_number_4": "4ème semaine du mois", - "week_order_number_5": "5ème semaine du mois", - "include_dates": "Inclusion de dates (optionel)", - "exclude_dates": "Exclusion de dates (optionel)", - "move_country_holidays": "Move holidays to next day (optional)" - } - } - }, - "error": { - "date": "Format de date invalide!", - "entities": "L'entité n'existe pas!" - } - } - -} diff --git a/custom_components/garbage_collection/.translations/it.json b/custom_components/garbage_collection/.translations/it.json deleted file mode 100644 index 511c2fb..0000000 --- a/custom_components/garbage_collection/.translations/it.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "config": { - "title": "Raccolta Differenziata", - "step": { - "user": { - "title": "Raccolta Differenziata - Frequenza di raccolta", - "description": "Immetti il nome del sensore e configura i suoi parametri. Maggiori informazioni su https://github.com/bruxy70/Garbage-Collection", - "data": { - "name": "Nome personalizzato", - "frequency": "Frequenza", - "icon_normal": "Icona", - "icon_tomorrow": "Icona raccolta domani", - "icon_today": "Icona raccolta oggi", - "verbose_state": "Stato Verbale (testo, al posto di numeri)", - "verbose_format": "Formato Verbale (usare le variabili `date` e `days` (in parentesi graffe))", - "date_format": "Formato Data (vedere http://strftime.org/)" - } - }, - "annual_group": { - "title": "Raccolta Differenziata - Parametri aggiuntivi", - "description": "Inserire la data del giorno della raccolta (es. 11/20 per Novembre 20)", - "data": { - "date": "Data (mm/dd)", - "entities": "Lista di entità (separate da virgole)" - } - }, - "detail": { - "title": "Raccolta Differenziata - Giorni di raccolta", - "description": "Seleziona uno o più giorni di raccolta. Maggiori dettagli qui: https://github.com/bruxy70/Garbage-Collection", - "data": { - "collection_days_mon": "Lunedì", - "collection_days_tue": "Martedì", - "collection_days_wed": "Mercoledì", - "collection_days_thu": "Giovedì", - "collection_days_fri": "Venerdì", - "collection_days_sat": "Sabato", - "collection_days_sun": "Domenica", - "force_week_order_numbers": "Ordina per settimana in un mese anziché per giorno della settimana" - } - }, - "final": { - "title": "Raccolta Differenziata - Parametri aggiuntivi", - "description": "'Includi ed escludi date' sono liste di date separate da virgole, nel formato yyyy-mm-dd. Maggiori informazioni su https://github.com/bruxy70/Garbage-Collection", - "data": { - "first_month": "Prima raccolta del mese", - "last_month": "Ultima raccolta del mese", - "period": "Raccolta ogni n settimane/giorno: (1-52)", - "first_week": "Prima raccolta della settimana (1-52)", - "first_date": "Prima date", - "weekday_order_number_1": "1° giorno della settimana del mese", - "weekday_order_number_2": "2° giorno della settimana del mese", - "weekday_order_number_3": "3° giorno della settimana del mese", - "weekday_order_number_4": "4° giorno della settimana del mese", - "weekday_order_number_5": "5° giorno della settimana del mese", - "week_order_number_1": "1° settimana del mese", - "week_order_number_2": "2° settimana del mese", - "week_order_number_3": "3° settimana del mese", - "week_order_number_4": "4° settimana del mese", - "week_order_number_5": "5° settimana del mese", - "include_dates": "Includi date (opzionale)", - "exclude_dates": "Escludi date (opzionale)", - "move_country_holidays": "Move holidays to next day (optional)" - } - } - }, - "error": { - "name": "Il nome del sensore non può essere vuoto. Immettere il nome del sensore.", - "days": "Seleziona uno o più giorni!", - "entities": "L'entità non esiste!", - "month_day": "Formato data non valido!", - "weekday_order_number": "Seleziona uno o più giorni", - "period": "Il periodo deve essere un numero compreso tra 1 e 52", - "first_week": "La prima settimana deve essere un numero tra 1 e 52", - "date": "Formato data non valido!" - - }, - "abort": { - "single_instance_allowed": "E' consentita solo una singola configurazione di Raccolta Differenziata." - } - }, - "options": { - "step": { - "init": { - "title": "Raccolta Differenziata - Frequenza di raccolta", - "description": "Cambia i parametri del sensore. Maggiori informazioni su https://github.com/bruxy70/Garbage-Collection", - "data": { - "frequency": "Frequenza", - "icon_normal": "Icona", - "icon_tomorrow": "Icona raccolta domani", - "icon_today": "Icona raccolta oggi", - "verbose_state": "Stato Verbale (testo, al posto di numeri)", - "verbose_format": "Formato Verbale (usare le variabili `date` e `days` (in parentesi graffe))", - "date_format": "Formato Data (vedere http://strftime.org/)" - } - }, - "annual_group": { - "title": "Raccolta Differenziata - Parametri aggiuntivi", - "description": "Inserire la data del giorno della raccolta (es. 11/20 per Novembre 20)", - "data": { - "date": "Data (mm/dd)", - "entities": "Lista di entità (separate da virgole)" - } - }, - "detail": { - "title": "Raccolta Differenziata - Giorni di raccolta", - "description": "Seleziona uno o più giorni di raccolta. Maggiori dettagli qui: https://github.com/bruxy70/Garbage-Collection", - "data": { - "collection_days_mon": "Lunedì", - "collection_days_tue": "Martedì", - "collection_days_wed": "Mercoledì", - "collection_days_thu": "Giovedì", - "collection_days_fri": "Venerdì", - "collection_days_sat": "Sabato", - "collection_days_sun": "Domenica", - "force_week_order_numbers": "Ordina per settimana in un mese anziché per giorno della settimana" - } - }, - "final": { - "title": "Raccolta Differenziata - Parametri aggiuntivi", - "description": "'Includi ed escludi date' sono liste di date separate da virgole, nel formato yyyy-mm-dd. Maggiori informazioni su https://github.com/bruxy70/Garbage-Collection", - "data": { - "first_month": "Prima raccolta del mese", - "last_month": "Ultima raccolta del mese", - "period": "Raccolta ogni n settimane/giorno: (1-52)", - "first_week": "Prima raccolta della settimana (1-52)", - "first_date": "Prima date", - "weekday_order_number_1": "1° giorno della settimana del mese", - "weekday_order_number_2": "2° giorno della settimana del mese", - "weekday_order_number_3": "3° giorno della settimana del mese", - "weekday_order_number_4": "4° giorno della settimana del mese", - "weekday_order_number_5": "5° giorno della settimana del mese", - "week_order_number_1": "1° settimana del mese", - "week_order_number_2": "2° settimana del mese", - "week_order_number_3": "3° settimana del mese", - "week_order_number_4": "4° settimana del mese", - "week_order_number_5": "5° settimana del mese", - "include_dates": "Includi date (opzionale)", - "exclude_dates": "Escludi date (opzionale)", - "move_country_holidays": "Move holidays to next day (optional)" - } - } - }, - "error": { - "date": "Formato data non valido!", - "entities": "L'entità non esiste!" - } - } - -} diff --git a/custom_components/garbage_collection/.translations/sensor.cs.json b/custom_components/garbage_collection/.translations/sensor.cs.json deleted file mode 100644 index a243c72..0000000 --- a/custom_components/garbage_collection/.translations/sensor.cs.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "state": { - "today": "Dnes", - "tomorrow": "Zítra" - } -} \ No newline at end of file diff --git a/custom_components/garbage_collection/.translations/sensor.de.json b/custom_components/garbage_collection/.translations/sensor.de.json deleted file mode 100644 index 39f748b..0000000 --- a/custom_components/garbage_collection/.translations/sensor.de.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "state": { - "today": "Heute", - "tomorrow": "Morgen" - } -} diff --git a/custom_components/garbage_collection/.translations/sensor.en.json b/custom_components/garbage_collection/.translations/sensor.en.json deleted file mode 100644 index ad074f4..0000000 --- a/custom_components/garbage_collection/.translations/sensor.en.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "state": { - "today": "Today", - "tomorrow": "Tomorrow" - } -} \ No newline at end of file diff --git a/custom_components/garbage_collection/.translations/sensor.es.json b/custom_components/garbage_collection/.translations/sensor.es.json deleted file mode 100644 index d365f7a..0000000 --- a/custom_components/garbage_collection/.translations/sensor.es.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "state": { - "today": "Hoy", - "tomorrow": "Mañana" - } -} diff --git a/custom_components/garbage_collection/.translations/sensor.fr.json b/custom_components/garbage_collection/.translations/sensor.fr.json deleted file mode 100644 index da22ae4..0000000 --- a/custom_components/garbage_collection/.translations/sensor.fr.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "state": { - "today": "Aujourd'hui", - "tomorrow": "Demain" - } -} diff --git a/custom_components/garbage_collection/.translations/sensor.it.json b/custom_components/garbage_collection/.translations/sensor.it.json deleted file mode 100644 index ce8ff71..0000000 --- a/custom_components/garbage_collection/.translations/sensor.it.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "state": { - "today": "Oggi", - "tomorrow": "Domani" - } -} diff --git a/custom_components/garbage_collection/.translations/sensor.nl.json b/custom_components/garbage_collection/.translations/sensor.nl.json deleted file mode 100644 index 60b5a26..0000000 --- a/custom_components/garbage_collection/.translations/sensor.nl.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "state": { - "today": "Vandaag", - "tomorrow": "Morgen" - } -} diff --git a/custom_components/garbage_collection/__init__.py b/custom_components/garbage_collection/__init__.py deleted file mode 100644 index 8a95b6d..0000000 --- a/custom_components/garbage_collection/__init__.py +++ /dev/null @@ -1,101 +0,0 @@ -""" -Component to integrate with garbage_colection. -""" -import os -from datetime import timedelta -import logging -from homeassistant import config_entries -import voluptuous as vol -import homeassistant.helpers.config_validation as cv -from homeassistant.helpers import discovery -from homeassistant.util import Throttle -from .sensor import GarbageCollection - -from integrationhelper.const import CC_STARTUP_VERSION - -from homeassistant.const import CONF_NAME - -from .const import ( - CONF_SENSORS, - CONF_ENABLED, - CONF_FREQUENCY, - DEFAULT_NAME, - DOMAIN_DATA, - DOMAIN, - ISSUE_URL, - PLATFORM, - VERSION, - CONFIG_SCHEMA, -) - -MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=30) - -_LOGGER = logging.getLogger(__name__) - - -async def async_setup(hass, config): - """Set up this component using YAML.""" - if config.get(DOMAIN) is None: - # We get here if the integration is set up using config flow - return True - - # Print startup message - _LOGGER.info( - CC_STARTUP_VERSION.format(name=DOMAIN, version=VERSION, issue_link=ISSUE_URL) - ) - platform_config = config[DOMAIN].get(CONF_SENSORS, {}) - - # If platform is not enabled, skip. - if not platform_config: - return False - - for entry in platform_config: - # If entry is not enabled, skip. - # if not entry[CONF_ENABLED]: - # continue - hass.async_create_task( - discovery.async_load_platform(hass, PLATFORM, DOMAIN, entry, config) - ) - hass.async_create_task( - hass.config_entries.flow.async_init( - DOMAIN, context={"source": config_entries.SOURCE_IMPORT}, data={} - ) - ) - return True - - -async def async_setup_entry(hass, config_entry): - """Set up this integration using UI.""" - if config_entry.source == config_entries.SOURCE_IMPORT: - # We get here if the integration is set up using YAML - hass.async_create_task(hass.config_entries.async_remove(config_entry.entry_id)) - return False - # Print startup message - _LOGGER.info( - CC_STARTUP_VERSION.format(name=DOMAIN, version=VERSION, issue_link=ISSUE_URL) - ) - config_entry.options = config_entry.data - config_entry.add_update_listener(update_listener) - # Add sensor - hass.async_add_job( - hass.config_entries.async_forward_entry_setup(config_entry, PLATFORM) - ) - return True - - -async def async_remove_entry(hass, config_entry): - """Handle removal of an entry.""" - try: - await hass.config_entries.async_forward_entry_unload(config_entry, PLATFORM) - _LOGGER.info( - "Successfully removed sensor from the garbage_collection integration" - ) - except ValueError: - pass - - -async def update_listener(hass, entry): - """Update listener.""" - entry.data = entry.options - await hass.config_entries.async_forward_entry_unload(entry, PLATFORM) - hass.async_add_job(hass.config_entries.async_forward_entry_setup(entry, PLATFORM)) diff --git a/custom_components/garbage_collection/__pycache__/__init__.cpython-37.pyc b/custom_components/garbage_collection/__pycache__/__init__.cpython-37.pyc deleted file mode 100644 index e667d05191022d818676c4dee7bcb4ef1a514485..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2590 zcmZuzOLH4H5(Y3sazv37MbWn8=Q!(Z!la6JUYk9nwn9@QTU8R}@L{i~YBMz)9y@6>UBNB#w_Ie8EJ19D0OLpf3ss-_3%26|?`@9TyhSF2?NzyE*! z&#(WpiqKDba`CfZ@FiU0e_$x`5yh0m*vD|UVv<#?n+u*a~LQ?dLOJB)%%=(q2 zOb|xNs$VgYLR?L1e$9-F@mf;%>o6`+Ctgn)e#7`z;*F%~H_f;lUrVn0*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`e60_l%LOzW2Z17)P>vR@J_Wh1XjO`{qa*05s(PFy3>p!rIfRCzD@T=IW$|n( zXW2|B3&!fbD~sC4ES^H|Z7&u3DvTq@u3K?w8B*)NkCE{!b?pxmnU3l=uEu6Eig`i5 zPB9k`*KNqZaj6&N57Vz9WZuL#uI9)iD>_LbAM2jZ;Xf+GHRHUhO-&n9_onR|?9C~# z0Rew=9}eQ-?!Fg1_J%J!uNRD-!MW@W)C!y@djKQ!04E6anG^(hPthIJ)S!`(;o}l- shCx%-&KF5WXEFPmhF$1}rCV@ic{N}Je^B2Q@~B!SWy`teY&fgG0P9(;U;qFB diff --git a/custom_components/garbage_collection/__pycache__/config_flow.cpython-37.pyc b/custom_components/garbage_collection/__pycache__/config_flow.cpython-37.pyc deleted file mode 100644 index cba8f1eabfe4a71ea664d13b5ea4f8d6ddc4bbb3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 16446 zcmds8TWlQHd7jH&X0N>8Bw1cjSK1OK%km{L?T{ju5^ZW%At_59v|X<_Lusjf6jf*ne+eO`7gtZnM_i`?-wt;{TttVN0R=9GR}on|EzNtUdnp5mHlHEm_|45wq&td-TX zevdA_%ZM9VwcF~^d#ql)*Xq;ztbV=U8qf!Bp?&`f=-oe!@DbpR`Wtr>rr3%z8?H z%6eLV+B&VDw$A8htZ{wZI;)?x>i@XY^;R^ZI$~S^Zh-f_}kzPJhmNUVq+tL4Uz| zQGe0;l>RB})B2~am-Lsc34OwPS%2AjMSq3Yk*I#gn$#z)DSgVis9%&NQ{A36XLe*g zZzPS>LrI@CGpm=jFPl9(@+HYg8<~fakwMwq1NDKdziMQSF0^{h=r($ApEr7qKHRSu z{l)<91@sv-hR|mSeTolM{VGa^jS-ZL_$8k;)J19Rz~;#*!*FuT_1a41R&J$Qe=E0A zw{w@u_RaDwbGlxwn#*pbUK{_2wt7tVQbpS^ZPS>kEV~8dwdHcPdb7NI2kERBrexM! zyJ9+2Ym{Bntytzq;0tMN+>6Z=uT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;j#FtGfIXV8g426(2sn#Tqyx zxUbLBFUpSKceJ+1wN*^`Uwdl*Yw#5FQ(ygY4Seu|8g$xHe-!JCwQCqM85}!MV~lI4 zuL=5THxzP>XKuLxe?EmzPF+7Bf4K}56M1z?`dp^`!|_sMkd=F~T& zh1=9!MODr>C(G%^;ev`&I7}f;$P=+uk-{IUNjJdp2VSyVTX8QS&t8^GprPJM8ATi$ z;Sjl?dZdc=jewF^`M3s$LyvVcr6k{w5-z3^3_1K(#rRXGR*(C_Fjnn6``K}y>RyfEFPPTG+rmcK{f zhXfW0ED@j_4W~*uI#Bsf^7EJ3&;Kgz+bRsM*MJsOZkw$rk3z>z~v z|CC{+yi$&@iQsY@S(C1Q2*bsXIU3V*ZEBh?naC9<2VFVo^p@27EVKv59YF#5p*Ca8 zXp9{^PWK8}7>;naMK=PD6J;rPB{r&r=N#ugBF(rY9=x;TpCXzXXSeOQhlfU<_EHUW>0_L5OdRKZ!_|*P$xQi4_}hw%O&+C`S?Az3c>wx z6?IAS9PLB61wT!CUnN%rVnm80ijl8<8#lXh?e`@U#r z8yXGl?`Nrw`zA79lI&QN#7BB)S<;7dGE0;U%-#(8gXjMvB9fhty5}b+O3rj?0UtC^ z%-H=4x94UT7G{cVk_usehj<4c@301Cp%kPF!1>-fflw6GL81;3I7DEWz+nR92lCxB zUoG?1G2dpZ8{hT~vCI?S2?8exoFZ_Vz!?H(37jKvo&bFTA?dRPx&H$M{%C+d4B$I| z`5dvZ*1td)t1WBn>-2gZATlfXo`$o{Gemovz+D1Y2z1y^QTnRd=2.8.1", - "integrationhelper>=0.2.2", - "holidays>=0.10.1", - "typing", - "uuid", - "voluptuous" - ], - "homeassistant": "0.96.0" -} \ No newline at end of file diff --git a/custom_components/garbage_collection/sensor.py b/custom_components/garbage_collection/sensor.py deleted file mode 100644 index 76300a2..0000000 --- a/custom_components/garbage_collection/sensor.py +++ /dev/null @@ -1,496 +0,0 @@ -"""Sensor platform for garbage_collection.""" -from homeassistant.helpers.entity import Entity -import homeassistant.util.dt as dt_util -import holidays -import logging -import locale -from datetime import datetime, date, timedelta -from dateutil.relativedelta import relativedelta -from homeassistant.core import HomeAssistant, State -from typing import List, Any - -_LOGGER = logging.getLogger(__name__) - -SCAN_INTERVAL = timedelta(seconds=60) -THROTTLE_INTERVAL = timedelta(seconds=60) -ATTR_NEXT_DATE = "next_date" -ATTR_DAYS = "days" - -from homeassistant.const import CONF_NAME, WEEKDAYS, CONF_ENTITIES -from .const import ( - ATTRIBUTION, - DEFAULT_NAME, - DOMAIN, - CONF_SENSOR, - CONF_ENABLED, - CONF_FREQUENCY, - CONF_ICON_NORMAL, - CONF_ICON_TODAY, - CONF_ICON_TOMORROW, - CONF_VERBOSE_STATE, - CONF_VERBOSE_FORMAT, - CONF_DATE_FORMAT, - DEFAULT_DATE_FORMAT, - DEFAULT_VERBOSE_FORMAT, - CONF_FIRST_MONTH, - CONF_LAST_MONTH, - CONF_COLLECTION_DAYS, - CONF_FORCE_WEEK_NUMBERS, - CONF_WEEKDAY_ORDER_NUMBER, - CONF_WEEK_ORDER_NUMBER, - CONF_DATE, - CONF_EXCLUDE_DATES, - CONF_INCLUDE_DATES, - CONF_MOVE_COUNTRY_HOLIDAYS, - CONF_PROV, - CONF_STATE, - CONF_OBSERVED, - CONF_PERIOD, - CONF_FIRST_WEEK, - CONF_FIRST_DATE, - CONF_SENSORS, - MONTH_OPTIONS, - FREQUENCY_OPTIONS, - STATE_TODAY, - STATE_TOMORROW, -) - -_LOGGER = logging.getLogger(__name__) - - -async def async_setup_platform( - hass, config, async_add_entities, discovery_info=None -): # pylint: disable=unused-argument - """Setup sensor platform.""" - async_add_entities([GarbageCollection(hass, discovery_info)], True) - - -async def async_setup_entry(hass, config_entry, async_add_devices): - """Setup sensor platform.""" - async_add_devices([GarbageCollection(hass, config_entry.data)], True) - - -def nth_week_date(n: int, date_of_month: date, collection_day: int) -> date: - """Find weekday in the nth week of the month""" - first_of_month = date(date_of_month.year, date_of_month.month, 1) - month_starts_on = first_of_month.weekday() - return first_of_month + relativedelta( - days=collection_day - month_starts_on + (n - 1) * 7 - ) - - -def nth_weekday_date(n: int, date_of_month: date, collection_day: int) -> date: - """Find nth weekday of the month""" - first_of_month = date(date_of_month.year, date_of_month.month, 1) - month_starts_on = first_of_month.weekday() - # 1st of the month is before the day of collection - # (so 1st collection week the week when month starts) - if collection_day >= month_starts_on: - return first_of_month + relativedelta( - days=collection_day - month_starts_on + (n - 1) * 7 - ) - else: # Next week - return first_of_month + relativedelta( - days=7 - month_starts_on + collection_day + (n - 1) * 7 - ) - - -def to_date(day: Any) -> date: - if day is None: - return None - if type(day) == date: - return day - if type(day) == datetime: - return day.date() - return date.fromisoformat(day) - - -def to_dates(dates: List[Any]) -> List[date]: - # Convert list of text to datetimes, if not already datetimes - converted = [] - for day in dates: - try: - converted.append(to_date(day)) - except ValueError: - continue - return converted - - -class GarbageCollection(Entity): - """GarbageCollection Sensor class.""" - - def __init__(self, hass, config): - self.config = config - self.__name = config.get(CONF_NAME) - self.__frequency = config.get(CONF_FREQUENCY) - self.__collection_days = config.get(CONF_COLLECTION_DAYS) - first_month = config.get(CONF_FIRST_MONTH) - if first_month in MONTH_OPTIONS: - self.__first_month = MONTH_OPTIONS.index(first_month) + 1 - else: - self.__first_month = 1 - last_month = config.get(CONF_LAST_MONTH) - if last_month in MONTH_OPTIONS: - self.__last_month = MONTH_OPTIONS.index(last_month) + 1 - else: - self.__last_month = 12 - self._weekday_order_numbers = config.get(CONF_WEEKDAY_ORDER_NUMBER) - self._week_order_numbers = config.get(CONF_WEEK_ORDER_NUMBER) - self.__monthly_force_week_numbers = bool( - self._week_order_numbers is not None and len(self._week_order_numbers) != 0 - ) - self.__include_dates = to_dates(config.get(CONF_INCLUDE_DATES, [])) - self.__exclude_dates = to_dates(config.get(CONF_EXCLUDE_DATES, [])) - country_holidays = config.get(CONF_MOVE_COUNTRY_HOLIDAYS) - self.__holidays = [] - holidays_log = "" - if country_holidays is not None and country_holidays != "": - today = dt_util.now().date() - this_year = today.year - years = [this_year, this_year + 1] - prov = config.get(CONF_PROV) - state = config.get(CONF_STATE) - observed = config.get(CONF_OBSERVED, True) - _LOGGER.debug( - "(%s) Country Holidays with parameters: country: %s, prov: %s, state: %s, observed: %s", - self.__name, - country_holidays, - prov, - state, - observed, - ) - kwargs = {"years": years} - if state is not None and state != "": - kwargs["state"] = state - if prov is not None and prov != "": - kwargs["prov"] = prov - if observed is not None and type(observed) == bool and observed == False: - kwargs["observed"] = observed - hol = holidays.CountryHoliday(country_holidays, **kwargs).items() - try: - for date, name in hol: - if date >= today: - self.__holidays.append(date) - holidays_log += f"\n {date}: {name}" - except KeyError: - _LOGGER.error( - "(%s) Invalid country code (%s)", self.__name, country_holidays - ) - _LOGGER.debug("(%s) Found these holidays: %s", self.__name, holidays_log) - self.__period = config.get(CONF_PERIOD) - self.__first_week = config.get(CONF_FIRST_WEEK) - self.__first_date = to_date(config.get(CONF_FIRST_DATE)) - self.__next_date = None - self.__last_updated = None - self.__days = 0 - self.__date = config.get(CONF_DATE) - self.__entities = config.get(CONF_ENTITIES) - self.__verbose_state = config.get(CONF_VERBOSE_STATE) - self.__state = "" if bool(self.__verbose_state) else 2 - self.__icon_normal = config.get(CONF_ICON_NORMAL) - self.__icon_today = config.get(CONF_ICON_TODAY) - self.__icon_tomorrow = config.get(CONF_ICON_TOMORROW) - self.__date_format = config.get(CONF_DATE_FORMAT, DEFAULT_DATE_FORMAT) - self.__verbose_format = config.get(CONF_VERBOSE_FORMAT, DEFAULT_VERBOSE_FORMAT) - self.__icon = self.__icon_normal - - @property - def unique_id(self): - """Return a unique ID to use for this sensor.""" - return self.config.get("unique_id", None) - - @property - def device_info(self): - return { - "identifiers": {(DOMAIN, self.config.get("unique_id", None))}, - "name": self.config.get("name"), - "manufacturer": "Garbage Collection", - } - - @property - def name(self): - """Return the name of the sensor.""" - return self.__name - - @property - def state(self): - """Return the state of the sensor.""" - return self.__state - - @property - def icon(self): - return self.__icon - - @property - def device_state_attributes(self): - """Return the state attributes.""" - res = {} - if self.__next_date is None: - res[ATTR_NEXT_DATE] = None - else: - res[ATTR_NEXT_DATE] = datetime( - self.__next_date.year, self.__next_date.month, self.__next_date.day - ).astimezone() - res[ATTR_DAYS] = self.__days - res["last_updated"] = self.__last_updated - return res - - def date_inside(self, dat: date) -> bool: - month = dat.month - if self.__first_month <= self.__last_month: - return bool(month >= self.__first_month and month <= self.__last_month) - else: - return bool(month <= self.__last_month or month >= self.__first_month) - - def __monthly_candidate(self, day1: date) -> date: - if self.__monthly_force_week_numbers: - for week_order_number in self._week_order_numbers: - candidate_date = nth_week_date( - week_order_number, day1, WEEKDAYS.index(self.__collection_days[0]), - ) - # date is today or in the future -> we have the date - if candidate_date >= day1: - return candidate_date - else: - for weekday_order_number in self._weekday_order_numbers: - candidate_date = nth_weekday_date( - weekday_order_number, - day1, - WEEKDAYS.index(self.__collection_days[0]), - ) - # date is today or in the future -> we have the date - if candidate_date >= day1: - return candidate_date - if day1.month == 12: - next_collection_month = date(day1.year + 1, 1, 1) - else: - next_collection_month = date(day1.year, day1.month + 1, 1) - if self.__monthly_force_week_numbers: - return nth_week_date( - self._week_order_numbers[0], - next_collection_month, - WEEKDAYS.index(self.__collection_days[0]), - ) - else: - return nth_weekday_date( - self._weekday_order_numbers[0], - next_collection_month, - WEEKDAYS.index(self.__collection_days[0]), - ) - - def find_candidate_date(self, day1: date) -> date: - """Find the next possible date starting from day1, - only based on calendar, not lookimg at include/exclude days""" - week = day1.isocalendar()[1] - weekday = day1.weekday() - year = day1.year - if self.__frequency in ["weekly", "even-weeks", "odd-weeks", "every-n-weeks"]: - # Everything except montthly - # convert to every-n-weeks - if self.__frequency == "weekly": - period = 1 - first_week = 1 - elif self.__frequency == "even-weeks": - period = 2 - first_week = 2 - elif self.__frequency == "odd-weeks": - period = 2 - first_week = 1 - else: - period = self.__period - first_week = self.__first_week - offset = -1 - if (week - first_week) % period == 0: # Collection this week - for day_name in self.__collection_days: - day_index = WEEKDAYS.index(day_name) - if day_index >= weekday: # Collection still did not happen - offset = day_index - weekday - break - if offset == -1: # look in following weeks - in_weeks = period - (week - first_week) % period - offset = ( - 7 * in_weeks - weekday + WEEKDAYS.index(self.__collection_days[0]) - ) - return day1 + relativedelta(days=offset) - elif self.__frequency == "every-n-days": - if self.__first_date is None or self.__period is None: - _LOGGER.error( - "(%s) Please configure first_date and period for every-n-days collection frequency.", - self.__name, - ) - return None - if (day1 - self.__first_date).days % self.__period == 0: - return day1 - offset = self.__period - ((day1 - self.__first_date).days % self.__period) - return day1 + relativedelta(days=offset) - elif self.__frequency == "monthly": - # Monthly - if self.__period is None or self.__period == 1: - return self.__monthly_candidate(day1) - else: - candidate_date = self.__monthly_candidate(day1) - while (candidate_date.month - self.__first_month) % self.__period != 0: - candidate_date = self.__monthly_candidate( - candidate_date + relativedelta(days=1) - ) - return candidate_date - elif self.__frequency == "annual": - # Annual - if self.__date is None: - _LOGGER.error( - "(%s) Please configure the date for annual collection frequency.", - self.__name, - ) - return None - conf_date = datetime.strptime(self.__date, "%m/%d").date() - candidate_date = date(year, conf_date.month, conf_date.day) - if candidate_date < day1: - candidate_date = date(year + 1, conf_date.month, conf_date.day) - return candidate_date - elif self.__frequency == "group": - if self.__entities is None: - _LOGGER.error("(%s) Please add entities for the group.", self.__name) - return None - candidate_date = None - for entity in self.__entities: - d = self.hass.states.get(entity).attributes.get(ATTR_NEXT_DATE).date() - if candidate_date is None or d < candidate_date: - candidate_date = d - return candidate_date - else: - _LOGGER.debug(f"({self.__name}) Unknown frequency {self.__frequency}") - return None - - def __insert_include_date(self, day1: date, next_date: date) -> date: - include_dates = list(filter(lambda date: date >= day1, self.__include_dates)) - if len(include_dates) > 0 and include_dates[0] < next_date: - _LOGGER.debug( - "(%s) Inserting include_date %s", self.__name, include_dates[0] - ) - return include_dates[0] - else: - return next_date - - def __skip_holiday(self, day: date) -> date: - return day + relativedelta(days=1) - - def ready_for_update(self) -> bool: - today = dt_util.now().date() - ready_for_update = bool( - self.__last_updated is None or self.__last_updated.date() != today - ) - if self.__frequency == "group": - members_ready = True - for entity in self.__entities: - if ( - self.hass.states.get(entity).attributes.get("last_updated").date() - != today - ): - members_ready = False - if ready_for_update and not members_ready: - ready_for_update = False - return ready_for_update - - def get_next_date(self, day1: date) -> date: - """Find the next date starting from day1.""" - first_day = day1 - i = 0 - while i < 365: - next_date = self.find_candidate_date(first_day) - while next_date in self.__holidays: - _LOGGER.debug( - "(%s) Skipping public holiday on %s", self.__name, next_date - ) - next_date = self.__skip_holiday(next_date) - next_date = self.__insert_include_date(first_day, next_date) - if next_date not in self.__exclude_dates: - return next_date - _LOGGER.debug("(%s) Skipping exclude_date %s", self.__name, next_date) - first_day = next_date + relativedelta(days=1) - i += 1 - _LOGGER.error("(%s) Cannot find any suitable date", self.__name) - return None - - async def async_update(self) -> None: - """Get the latest data and updates the states.""" - now = dt_util.now() - if not self.ready_for_update(): - # _LOGGER.debug( - # "(%s) Skipping the update, already did it today", - # self.__name) - return - _LOGGER.debug("(%s) Calling update", self.__name) - today = now.date() - year = today.year - month = today.month - self.__last_updated = now - if self.date_inside(today): - next_date = self.get_next_date(today) - if next_date is not None: - if not self.date_inside(next_date): - if self.__first_month <= self.__last_month: - next_year = date(year + 1, self.__first_month, 1) - next_date = self.get_next_date(next_year) - _LOGGER.debug( - "(%s) Did not find a date this year, " - "lookig at next year", - self.__name, - ) - else: - next_year = date(year, self.__first_month, 1) - next_date = self.get_next_date(next_year) - _LOGGER.debug( - "(%s) Date not within the range, " - "searching again from %s", - self.__name, - MONTH_OPTIONS[self.__first_month - 1], - ) - else: - if self.__first_month <= self.__last_month and month > self.__last_month: - next_year = date(year + 1, self.__first_month, 1) - next_date = self.get_next_date(next_year) - _LOGGER.debug( - "(%s) Date outside range, lookig at next year", self.__name - ) - else: - next_year = date(year, self.__first_month, 1) - next_date = self.get_next_date(next_year) - _LOGGER.debug( - "(%s) Current date is outside of the range, " - "starting from first month", - self.__name, - ) - self.__next_date = next_date - if next_date is not None: - self.__days = (next_date - today).days - next_date_txt = next_date.strftime(self.__date_format) - _LOGGER.debug( - "(%s) Found next date: %s, that is in %d days", - self.__name, - next_date_txt, - self.__days, - ) - if self.__days > 1: - if bool(self.__verbose_state): - self.__state = self.__verbose_format.format( - date=next_date_txt, days=self.__days - ) - # self.__state = "on_date" - else: - self.__state = 2 - self.__icon = self.__icon_normal - else: - if self.__days == 0: - if bool(self.__verbose_state): - self.__state = STATE_TODAY - else: - self.__state = self.__days - self.__icon = self.__icon_today - elif self.__days == 1: - if bool(self.__verbose_state): - self.__state = STATE_TOMORROW - else: - self.__state = self.__days - self.__icon = self.__icon_tomorrow - else: - self.__days = None diff --git a/custom_components/hacs/.translations/da.json b/custom_components/hacs/.translations/da.json deleted file mode 100644 index 8e45229..0000000 --- a/custom_components/hacs/.translations/da.json +++ /dev/null @@ -1,191 +0,0 @@ -{ - "common": { - "about": "Om", - "appdaemon_apps": "AppDaemon-apps", - "background_task": "Baggrundsopgave kører. Denne side vil genindlæses automatisk.", - "check_log_file": "Tjek din logfil for flere detaljer.", - "continue": "Fortsæt", - "disabled": "Deaktiveret", - "documentation": "Dokumentation", - "hacs_is_disabled": "HACS er deaktiveret", - "installed": "installeret", - "integration": "Integration", - "integrations": "Integrationer", - "manage": "administrer", - "plugin": "Plugin", - "plugins": "Plugins", - "python_script": "Python-script", - "python_scripts": "Python-scripts", - "repositories": "Repositories", - "settings": "indstillinger", - "theme": "Tema", - "themes": "Temaer", - "version": "Version" - }, - "config": { - "abort": { - "single_instance_allowed": "Kun en enkelt konfiguration af HACS er tilladt." - }, - "error": { - "auth": "Personlig adgangstoken er ikke korrekt." - }, - "step": { - "user": { - "data": { - "appdaemon": "Aktiver opdagelse & sporing af AppDaemon-apps", - "python_script": "Aktivér opdagelse og sporing af python_scripts", - "sidepanel_icon": "Sidepanelikon", - "sidepanel_title": "Sidepanelets titel", - "theme": "Aktivér opdagelse og sporing af temaer", - "token": "GitHub personlig adgangstoken" - }, - "description": "Hvis du har brug for hjælp til konfigurationen, så kig her: https:\/\/hacs.xyz\/docs\/configuration\/start" - } - } - }, - "confirm": { - "add_to_lovelace": "Er du sikker på, at du vil tilføje dette til dine Lovelace-ressourcer?", - "bg_task": "Handlingen er deaktiveret, mens baggrundsopgaver kører.", - "cancel": "Annuller", - "continue": "Er du sikker på, at du vil fortsætte?", - "delete": "Er du sikker på, at du vil slette '{Item}'?", - "delete_installed": "'{item}' er installeret. Du skal afinstallere det, før du kan slette det.", - "exist": "{item} findes allerede", - "generic": "Er du sikker?", - "home_assistant_is_restarting": "Vent venligst - Home Assistant genstarter nu.", - "home_assistant_version_not_correct": "Du kører Home Assistant version '{haversion}', men dette repository kræver som minimum version '{minversion}'.", - "no": "Nej", - "no_upgrades": "Der er ingen opdateringer tilgængelig", - "ok": "OK", - "overwrite": "Dette vil overskrive den.", - "reload_data": "Dette genindlæser data fra alle repositories, som HACS kender til. Dette vil tage nogen tid at fuldføre.", - "restart_home_assistant": "Er du sikker på, at du vil genstarte Home Assistant?", - "uninstall": "Er du sikker på, at du vil afinstallere '{Item}'?", - "upgrade_all": "Dette vil opdatere alle repositories. Sørg for at du har læst udgivelsesnoterne for dem alle, inden du fortsætter.", - "yes": "Ja" - }, - "options": { - "step": { - "user": { - "data": { - "appdaemon": "Aktiver opdagelse og sporing af AppDaemon-apps", - "country": "Filtrer med landekode.", - "debug": "Aktiver debug.", - "experimental": "Aktivér eksperimentelle funktioner", - "not_in_use": "Ikke i brug med YAML", - "release_limit": "Antal udgivelser, der skal vises.", - "sidepanel_icon": "Sidepanelikon", - "sidepanel_title": "Sidepanelets titel" - } - } - } - }, - "repository_banner": { - "config_flow": "Denne integration understøtter config_flow. Det betyder, at du nu kan gå til integrationssektionen i din brugerflade for at konfigurere den.", - "config_flow_title": "Brugerfladekonfiguration understøttet", - "integration_not_loaded": "Denne integration er ikke indlæst i Home Assistant.", - "no_restart_required": "Ingen genstart påkrævet", - "not_loaded": "Ikke indlæst", - "plugin_not_loaded": "Dette plugin er ikke føjet til dine Lovelace-ressourcer.", - "restart": "Du skal genstarte Home Assistant.", - "restart_pending": "Afventer genstart" - }, - "repository": { - "add_to_lovelace": "Tilføj til Lovelace", - "authors": "Forfattere", - "available": "Tilgængelig", - "back_to": "Tilbage til", - "changelog": "Udgivelsesnoter", - "downloads": "Downloads", - "flag_this": "Marker denne", - "frontend_version": "Frontend-version", - "github_stars": "GitHub-stjerner", - "goto_integrations": "Gå til integrationer", - "hide": "Skjul", - "hide_beta": "Skjul beta", - "install": "Installer", - "installed": "Installeret", - "lovelace_copy_example": "Kopiér eksemplet til din Udklipsholder", - "lovelace_instruction": "Tilføj dette til din lovelace-konfiguration", - "lovelace_no_js_type": "Kunne ikke afgøre typen af dette plugin, tjek venligst repository.", - "newest": "nyeste", - "note_appdaemon": "Du skal stadig føje den til filen 'apps.yaml'", - "note_installed": "Når det er installeret, vil dette være placeret i", - "note_integration": "du skal stadig føje den til filen 'configuration.yaml'", - "note_plugin": "du skal stadig tilføje det til din lovelace-konfiguration ('ui-lovelace.yaml' eller Tekstbaseret redigering)", - "open_issue": "Opret issue", - "open_plugin": "Åbn plugin", - "reinstall": "Geninstaller", - "repository": "Repository", - "restart_home_assistant": "Genstart Home Assistant", - "show_beta": "Vis beta", - "uninstall": "Afinstaller", - "update_information": "Opdater oplysninger", - "upgrade": "Opdater" - }, - "settings": { - "add_custom_repository": "TILFØJ ET BRUGERDEFINERET REPOSITORY", - "adding_new_repo": "Tilføjer nyt repository '{repo}'", - "adding_new_repo_category": "Med kategorien '{category}'.", - "bg_task_custom": "Brugerdefinerede repositories er skjult, mens opgaver i baggrunden kører.", - "category": "Kategori", - "compact_mode": "Kompakt tilstand", - "custom_repositories": "BRUGERDEFINEREDE REPOSITORIES", - "delete": "Slet", - "display": "Visning", - "grid": "Gitter", - "hacs_repo": "HACS-repo", - "hidden_repositories": "Skjulte repositories", - "missing_category": "Du skal vælge en kategori", - "open_repository": "Åbn repository", - "reload_data": "Genindlæs data", - "reload_window": "Genindlæs vindue", - "repository_configuration": "Konfiguration af repository", - "save": "Gem", - "table": "Tabel", - "table_view": "Tabelvisning", - "unhide": "Vis", - "upgrade_all": "Opdater alle" - }, - "store": { - "ascending": "stigende", - "clear_new": "Marker alle som set", - "descending": "faldende", - "last_updated": "Sidst opdateret", - "name": "Navn", - "new_repositories": "Nye repositories", - "pending_upgrades": "Afventende opdateringer", - "placeholder_search": "Indtast en søgeterm...", - "sort": "sorter", - "stars": "Stjerner", - "status": "Status" - }, - "time": { - "ago": "siden", - "day": "dag", - "days": "dage", - "hour": "time", - "hours": "timer", - "minute": "minut", - "minutes": "minutter", - "month": "måned", - "months": "måneder", - "one": "Et", - "one_day_ago": "en dag siden", - "one_hour_ago": "en time siden", - "one_minute_ago": "et minut siden", - "one_month_ago": "en måned siden", - "one_second_ago": "et sekund siden", - "one_year_ago": "et år siden", - "second": "sekund", - "seconds": "sekunder", - "x_days_ago": "{x} dage siden", - "x_hours_ago": "{x} timer siden", - "x_minutes_ago": "{x} minutter siden", - "x_months_ago": "{x} måneder siden", - "x_seconds_ago": "{x} sekunder siden", - "x_years_ago": "{x} år siden", - "year": "år", - "years": "år" - } -} \ No newline at end of file diff --git a/custom_components/hacs/.translations/de.json b/custom_components/hacs/.translations/de.json deleted file mode 100644 index f96ac00..0000000 --- a/custom_components/hacs/.translations/de.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "common": { - "about": "Über", - "appdaemon": "AppDaemon", - "appdaemon_apps": "AppDaemon Apps", - "background_task": "Hintergrundprozess läuft. Diese Seite lädt neu, sobald dieser fertig ist.", - "check_log_file": "Überprüfe die Logdatei für weitere Informationen.", - "continue": "Fortfahren", - "disabled": "Deaktiviert", - "documentation": "Dokumentation", - "hacs_is_disabled": "HACS ist deaktiviert", - "installed": "Installiert", - "integration": "Integration", - "integrations": "Integrationen", - "manage": "verwalten", - "netdaemon": "NetDaemon", - "netdaemon_apps": "NetDaemon Apps", - "plugin": "Plugin", - "plugins": "Plugins", - "python_script": "Python Skript", - "python_scripts": "Python Skripte", - "repositories": "Repositories", - "settings": "Einstellungen", - "theme": "Theme", - "themes": "Themes", - "version": "Version" - }, - "config": { - "abort": { - "single_instance_allowed": "Es ist nur eine einzelne HACS-Instanz erlaubt." - }, - "error": { - "auth": "Persönlicher Zugriffstoken ist falsch." - }, - "step": { - "user": { - "data": { - "appdaemon": "AppDaemon App-Entdeckung & Nachverfolgung aktivieren", - "netdaemon": "NetDaemon App-Entdeckung & Nachverfolgung aktivieren", - "python_script": "Python Script-Entdeckung & Nachverfolgung aktivieren", - "sidepanel_icon": "Sidepanel Symbol", - "sidepanel_title": "Sidepanel Titel", - "theme": "Theme-Entdeckung & Nachverfolgung aktivieren", - "token": "Persönlicher GitHub Zugriffstoken" - }, - "description": "Wenn du Hilfe mit den Einstellungen brauchst, kannst du hier nachsehen: https:\/\/hacs.xyz\/docs\/configuration\/start", - "title": "HACS (Home Assistant Community Store)" - } - }, - "title": "HACS (Home Assistant Community Store)" - }, - "confirm": { - "add_to_lovelace": "Möchtest du dies wirklich zu deinen Lovelace-Ressourcen hinzufügen?", - "bg_task": "Die Aktion ist deaktiviert, während Hintergrundprozesse ausgeführt werden.", - "cancel": "Abbrechen", - "continue": "Bist du dir sicher, dass du fortfahren möchtest?", - "delete": "Möchtest du '{item}' wirklich löschen?", - "delete_installed": "'{item}' ist installiert. Du musst es deinstallieren, bevor du es löschen kannst.", - "exist": "{item} existiert bereits", - "generic": "Bist du dir sicher?", - "home_assistant_is_restarting": "Bitte warte, Home Assistant wird jetzt neu gestartet.", - "home_assistant_version_not_correct": "Du benutzt die Home Assistant-Version '{haversion}', für dieses Repository muss jedoch die Mindestversion '{minversion}' installiert sein.", - "no": "Nein", - "no_upgrades": "Keine Upgrades ausstehend", - "ok": "OK", - "overwrite": "Dadurch wird die Datei überschrieben.", - "reload_data": "Hierdurch werden die Daten aller Repositories die HACS kennt neu geladen. Dies wird einige Zeit in Anspruch nehmen.", - "restart_home_assistant": "Bist du dir sicher, dass du Home Assistant neu starten möchtest?", - "uninstall": "Möchtest du '{item}' wirklich deinstallieren?", - "upgrade_all": "Hierdurch werden all diese Repositories aktualisiert. Stelle sicher, dass du die Versionshinweise vorher gelesen hast.", - "yes": "Ja" - }, - "options": { - "step": { - "user": { - "data": { - "appdaemon": "AppDaemon App-Entdeckung & Nachverfolgung aktivieren", - "country": "Nach Ländercode filtern.", - "debug": "Debug aktivieren.", - "experimental": "Experimentelle Funktionen aktivieren", - "netdaemon": "NetDaemon App-Entdeckung & Nachverfolgung aktivieren", - "not_in_use": "Nicht in Verwendung mit YAML", - "release_limit": "Anzahl anzuzeigender Releases.", - "sidepanel_icon": "Sidepanel Symbol", - "sidepanel_title": "Sidepanel Titel" - } - } - } - }, - "repository_banner": { - "config_flow": "Diese Integration unterstützt config_flow. Das bedeutet, dass du jetzt in den Integrationsbereich deiner Benutzeroberfläche wechseln kannst, um es zu konfigurieren.", - "config_flow_title": "UI-Konfiguration unterstützt", - "integration_not_loaded": "Diese Integration ist in Home Assistant nicht geladen.", - "no_restart_required": "Kein Neustart erforderlich", - "not_loaded": "Nicht geladen", - "plugin_not_loaded": "Dieses Plugin wurde deinen Lovelace-Ressourcen nicht hinzugefügt.", - "restart": "Du musst Home Assistant neu starten.", - "restart_pending": "Neustart ausstehend" - }, - "repository": { - "add_to_lovelace": "Zu Lovelace hinzufügen", - "authors": "Autoren", - "available": "Verfügbar", - "back_to": "Zurück zu", - "changelog": "Änderungsprotokoll", - "downloads": "Downloads", - "flag_this": "Melden", - "frontend_version": "Frontend Version", - "github_stars": "GitHub Sterne", - "goto_integrations": "Gehe zu Integrationen", - "hide": "Verstecken", - "hide_beta": "Beta verstecken", - "install": "Installieren", - "installed": "Installiert", - "lovelace_copy_example": "Beispiel in die Zwischenablage kopieren", - "lovelace_instruction": "Zum Hinzufügen zu deinen Lovelace-Einstellungen, benutze Folgendes", - "lovelace_no_js_type": "Konnte die Art dieses Plugins nicht erkennen. Prüfe das Repository.", - "newest": "neueste", - "note_appdaemon": "du musst es dann noch in die Datei 'apps.yaml' hinzufügen", - "note_installed": "Wird installiert nach", - "note_integration": "du musst es dann noch in die Datei 'configuration.yaml' hinzufügen", - "note_plugin": "du musst es dann noch in deine Lovelace-Einstellungen ('ui-lovelace.yaml' oder im Raw-Konfigurationseditor) hinzufügen", - "note_plugin_post_107": "Du musst es noch zu deiner Lovelace-Konfiguration hinzufügen ('configuration.yaml' oder der Ressourceneditor '\/config\/lovelace\/resources')", - "open_issue": "Problem melden", - "open_plugin": "Plugin öffnen", - "reinstall": "Neu installieren", - "repository": "Repository", - "restart_home_assistant": "Home Assistant neu starten", - "show_beta": "Beta anzeigen", - "uninstall": "Deinstallieren", - "update_information": "Aktualisierungsinformationen", - "upgrade": "Aktualisieren" - }, - "settings": { - "add_custom_repository": "BENUTZERDEFINIERTES REPOSITORY HINZUFÜGEN", - "adding_new_repo": "Hinzufügen eines neuen Repository '{repo}'", - "adding_new_repo_category": "Mit der Kategorie '{category}'.", - "bg_task_custom": "Custom Repositorys werden ausgeblendet, während Hintergrundaufgaben ausgeführt werden.", - "category": "Kategorie", - "compact_mode": "Kompakter Modus", - "custom_repositories": "BENUTZERDEFINIERTE REPOSITORIES", - "delete": "Löschen", - "display": "Anzeige", - "grid": "Gitter", - "hacs_repo": "HACS repo", - "hidden_repositories": "versteckte Repositories", - "missing_category": "Du musst eine Kategorie auswählen.", - "open_repository": "Repository öffnen", - "reload_data": "Daten neu laden", - "reload_window": "Fenster neu laden", - "repository_configuration": "Repository Konfiguration", - "save": "Speichern", - "table": "Tabelle", - "table_view": "Tabellenansicht", - "unhide": "einblenden", - "upgrade_all": "Alles aktualisieren" - }, - "store": { - "ascending": "Aufsteigend", - "clear_new": "Alle neuen Repositories als gesehen markieren", - "descending": "Absteigend", - "last_updated": "Zuletzt aktualisiert", - "name": "Name", - "new_repositories": "Neue Repositories", - "pending_upgrades": "Ausstehende Upgrades", - "placeholder_search": "Suchbegriff eingeben…", - "sort": "Sortieren", - "stars": "Sterne", - "status": "Status" - }, - "time": { - "ago": "vor", - "day": "Tag", - "days": "Tage", - "hour": "Stunde", - "hours": "Stunden", - "minute": "Minute", - "minutes": "Minuten", - "month": "Monat", - "months": "Monate", - "one": "Eins", - "one_day_ago": "vor einem Tag", - "one_hour_ago": "vor einer Stunde", - "one_minute_ago": "vor einer Minute", - "one_month_ago": "vor einem Monat", - "one_second_ago": "vor einer Sekunde", - "one_year_ago": "vor einem Jahr", - "second": "Sekunde", - "seconds": "Sekunden", - "x_days_ago": "vor {x} Tagen", - "x_hours_ago": "vor {x} Stunden", - "x_minutes_ago": "vor {x} Minuten", - "x_months_ago": "vor {x} Monaten", - "x_seconds_ago": "vor {x} Sekunden", - "x_years_ago": "vor {x} Jahren", - "year": "Jahr", - "years": "Jahre" - } -} \ No newline at end of file diff --git a/custom_components/hacs/.translations/el.json b/custom_components/hacs/.translations/el.json deleted file mode 100644 index 0d446ad..0000000 --- a/custom_components/hacs/.translations/el.json +++ /dev/null @@ -1,186 +0,0 @@ -{ - "common": { - "about": "Σχετικά με", - "appdaemon": "AppDaemon", - "appdaemon_apps": "AppDaemon Apps", - "background_task": "Τρέχει μια διεργασία στο παρασκήνιο, η σελίδα θα ανανεωθεί μόλις αυτό ολοκληρωθεί.", - "check_log_file": "Ελέγξτε το αρχείο καταγραφής για περισσότερες λεπτομέρειες.", - "continue": "Να συνεχίσει", - "disabled": "Απενεργοποιημένο", - "documentation": "Τεκμηρίωση", - "hacs_is_disabled": "Το HACS είναι απενεργοποιημένο", - "installed": "εγκατεστημένο", - "integration": "Ενσωμάτωση", - "integrations": "Ενσωματωμένα", - "netdaemon": "NetDaemon", - "netdaemon_apps": "NetDaemon Apps", - "plugin": "Πρόσθετο", - "plugins": "Πρόσθετα", - "python_script": "Πρόγραμμα Python", - "python_scripts": "Προγράμματα Python", - "repositories": "Αποθετήρια", - "settings": "ρυθμίσεις", - "theme": "Θέμα", - "themes": "Θέματα", - "version": "Έκδοση" - }, - "config": { - "abort": { - "single_instance_allowed": "Μονάχα μία ρύθμιση των παραμέτρων του HACS επιτρέπεται." - }, - "error": { - "auth": "Το διακριτικό πρόσβασης δεν είναι σωστό." - }, - "step": { - "user": { - "data": { - "appdaemon": "Ενεργοποίηση εύρεσης & παρακολούθησης για το AppDaemon", - "netdaemon": "Ενεργοποίηση εύρεσης & παρακολούθησης για το NetDaemon", - "python_script": "Ενεργοποίηση εύρεσης & παρακολούθησης για τα python_scripts", - "sidepanel_icon": "Εικονίδιο πλαϊνού πάνελ", - "sidepanel_title": "Τίτλος πλαϊνού πάνελ", - "theme": "Ενεργοποίηση εύρεσης & παρακολούθησης για τα θεμάτων", - "token": "Διακριτικό πρόσβασης του GitHub" - }, - "description": "Εάν χρειαστείτε βοήθεια με τις ρυθμίσεις ανατρέξτε εδώ: https:\/\/hacs.xyz\/docs\/configuration\/start", - "title": "HACS (Home Assistant Community Store)" - } - }, - "title": "HACS (Home Assistant Community Store)" - }, - "confirm": { - "add_to_lovelace": "Είστε βέβαιοι ότι θέλετε να προσθέσετε αυτό στους πόρους του Lovelace;", - "bg_task": "Η ενέργεια είναι απενεργοποιημένη όσο εκτελούνται εργασίες στο παρασκήνιο", - "cancel": "Ακύρωση", - "continue": "Είστε βέβαιοι ότι θέλετε να συνεχίσετε;", - "delete": "Είστε σίγουροι ότι θέλετε να διαγράψετε το '{item}';", - "delete_installed": "Το '{item}' είναι εγκατεστημένο, πρέπει να το απεγκαταστήσετε πριν να το διαγράψετε.", - "exist": "{item} υπάρχει ήδη", - "generic": "Είστε βέβαιοι;", - "home_assistant_is_restarting": "Περιμένετε, το Home Assistant επανεκκινείται τώρα.", - "no": "Οχι", - "no_upgrades": "Δεν υπάρχουν αναβαθμίσεις σε εκκρεμότητα", - "ok": "Εντάξει", - "overwrite": "Αυτό θα το αντικαταστήσει.", - "restart_home_assistant": "Είστε βέβαιοι ότι θέλετε να κάνετε επανεκκίνηση του Home Assistant;", - "uninstall": "Είστε βέβαιοι ότι θέλετε να απεγκαταστήσετε το '{item}';", - "upgrade_all": "Αυτό θα αναβαθμίσει όλα αυτά τα αποθετήρια, βεβαιωθείτε ότι έχετε διαβάσει τις σημειώσεις έκδοσης για όλα πριν προχωρήσετε.", - "yes": "Ναι" - }, - "options": { - "step": { - "user": { - "data": { - "appdaemon": "Ενεργοποίηση εύρεσης & παρακολούθησης για το AppDaemon", - "country": "Κριτήριο με βάση τον κωδικό χώρας.", - "debug": "Ενεργοποίηση εντοπισμού σφαλμάτων.", - "experimental": "Ενεργοποίση πειραματικών λειτουργιών", - "netdaemon": "Ενεργοποίηση εύρεσης & παρακολούθησης για το NetDaemon", - "release_limit": "Αριθμός εκδόσεων που να παραθέτονται.", - "sidepanel_icon": "Εικονίδιο πλαϊνού πάνελ", - "sidepanel_title": "Τίτλος πλαϊνού πάνελ" - } - } - } - }, - "repository_banner": { - "integration_not_loaded": "Αυτή η ενσωμάτωση δεν φορτώθηκε στο Home Assistant.", - "no_restart_required": "Δεν απαιτείται επανεκκίνηση", - "not_loaded": "Δεν έχει φορτωθεί", - "plugin_not_loaded": "Αυτό το πρόσθετο δεν προστέθηκε στους πόρους του Lovelace.", - "restart": "Πρέπει να κάνετε επανεκκίνηση του Home Assistant.", - "restart_pending": "Επανεκκίνηση σε εκκρεμότητα" - }, - "repository": { - "add_to_lovelace": "Προσθήκη στο Lovelace", - "authors": "Συγγραφείς", - "available": "Διαθέσιμο", - "back_to": "Πίσω στο", - "changelog": "Σημειώσεις των αλλαγών", - "downloads": "Λήψεις", - "flag_this": "Σημείωσε αυτό", - "frontend_version": "Έκδοση Frontend", - "hide": "Απόκρυψη", - "hide_beta": "Απόκριση του beta", - "install": "Εγκατάσταση", - "installed": "Εγκατεστημένο", - "lovelace_copy_example": "Αντίγραψε το παράδειγμα στο πρόχειρο", - "lovelace_instruction": "Όταν το προσθέσετε στις ρυθμίσεις του lovelace χρησιμοποιήστε τούτο", - "lovelace_no_js_type": "Δεν καταφέραμε να προσδιορίσουμε τον τύπο αυτού του προσθέτου, ελέξτε το αποθετήριο.", - "newest": "νεότερο", - "note_appdaemon": "εξακολουθεί να χρειάζεται να το προσθέσετε στο αρχείο 'apps.yaml'", - "note_installed": "Όταν εγκατασταθεί, θα προστεθεί στο", - "note_integration": "εξακολουθεί να χρειάζεται να το προσθέσετε στο αρχείο 'configuration.yaml'", - "note_plugin": "εξακολουθεί να χρειάζετε να το προσθέσετε στις ρυθμίσεις του lovelace ('ui-lovelace.yaml' ή μέσω του γραφικού επεξεργαστή των ρυθμίσεων)", - "open_issue": "Εκκρεμόν ζήτημα", - "open_plugin": "Ανοιχτό πρόσθετο", - "reinstall": "Επανεγκατάσταση", - "repository": "Αποθετήριο", - "restart_home_assistant": "Επανεκκίνηση του Home Assistant", - "show_beta": "Εμφάνιση του beta", - "uninstall": "Απεγκατάσταση", - "update_information": "Ενημέρωση πληροφοριών", - "upgrade": "Ενημέρωση" - }, - "settings": { - "add_custom_repository": "ΠΡΟΣΘΕΣΤΕ ΕΝΑ ΕΙΔΙΚΟ ΑΠΟΘΕΤΗΡΙΟ", - "adding_new_repo_category": "Με κατηγορία '{category}'.", - "category": "Κατηγορία", - "compact_mode": "Συμπαγής λειτουργία", - "custom_repositories": "ΕΙΔΙΚΑ ΑΠΟΘΕΤΗΡΙΑ", - "delete": "Διαγραφή", - "display": "Εμφάνιση", - "grid": "Πλέγμα", - "hacs_repo": "Αποθετήριο του HACS", - "hidden_repositories": "κρυφά αποθετήρια", - "missing_category": "Πρέπει να επιλέξετε μια κατηγορία", - "open_repository": "Ανοίξτε το αποθετήριο", - "reload_data": "Επαναφόρτωση δεδομένων", - "reload_window": "Επαναφόρτωση του παραθύρου", - "save": "Αποθήκευση", - "table": "Πίνακας", - "table_view": "Προβολή πίνακα", - "upgrade_all": "Αναβάθμιση όλων" - }, - "store": { - "ascending": "αύξουσα", - "clear_new": "Απαλοιφή όλων των νέων αποθετηρίων", - "descending": "φθίνουσα", - "last_updated": "Τελευταία ενημέρωση", - "name": "Ονομα", - "new_repositories": "Νέα αποθετήρια", - "pending_upgrades": "Εκκρεμείς αναβαθμίσεις", - "placeholder_search": "Παρακαλώ πληκτρολογήστε έναν όρο προς αναζήτηση...", - "sort": "είδος", - "stars": "Αστέρια", - "status": "Κατάσταση" - }, - "time": { - "ago": "πριν", - "day": "ημέρα", - "days": "ημέρες", - "hour": "ώρα", - "hours": "ώρες", - "minute": "λεπτό", - "minutes": "λεπτά", - "month": "μήνας", - "months": "μήνες", - "one": "Ένα", - "one_day_ago": "πριν από μία ημέρα", - "one_hour_ago": "πριν από μια ώρα", - "one_minute_ago": "πριν από ένα λεπτό", - "one_month_ago": "πριν από ένα μήνα", - "one_second_ago": "πριν από ένα δευτερόλεπτο", - "one_year_ago": "πριν από ένα χρόνο", - "second": "δευτερόλεπτο", - "seconds": "δευτερόλεπτα", - "x_days_ago": "{x} ημέρες πριν", - "x_hours_ago": "{x} ώρες πριν", - "x_minutes_ago": "{x} λεπτά πριν", - "x_months_ago": "{x} μήνες πριν", - "x_seconds_ago": "{x} δευτερόλεπτα πριν", - "x_years_ago": "{x} χρόνια πριν", - "year": "έτος", - "years": "χρόνια" - } -} \ No newline at end of file diff --git a/custom_components/hacs/.translations/en.json b/custom_components/hacs/.translations/en.json deleted file mode 100644 index 387c89f..0000000 --- a/custom_components/hacs/.translations/en.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "common": { - "about": "About", - "appdaemon": "AppDaemon", - "appdaemon_apps": "AppDaemon Apps", - "background_task": "Background task running, this page will reload when it's done.", - "check_log_file": "Check your log file for more details.", - "continue": "Continue", - "disabled": "Disabled", - "documentation": "Documentation", - "hacs_is_disabled": "HACS is disabled", - "installed": "installed", - "integration": "Integration", - "integrations": "Integrations", - "manage": "manage", - "netdaemon": "NetDaemon", - "netdaemon_apps": "NetDaemon Apps", - "plugin": "Plugin", - "plugins": "Plugins", - "python_script": "Python Script", - "python_scripts": "Python Scripts", - "repositories": "Repositories", - "settings": "settings", - "theme": "Theme", - "themes": "Themes", - "version": "Version" - }, - "config": { - "abort": { - "single_instance_allowed": "Only a single configuration of HACS is allowed." - }, - "error": { - "auth": "Personal Access Token is not correct." - }, - "step": { - "user": { - "data": { - "appdaemon": "Enable AppDaemon apps discovery & tracking", - "netdaemon": "Enable NetDaemon apps discovery & tracking", - "python_script": "Enable python_scripts discovery & tracking", - "sidepanel_icon": "Side panel icon", - "sidepanel_title": "Side panel title", - "theme": "Enable Themes discovery & tracking", - "token": "GitHub Personal Access Token" - }, - "description": "If you need help with the configuration have a look here: https:\/\/hacs.xyz\/docs\/configuration\/start\/", - "title": "HACS (Home Assistant Community Store)" - } - }, - "title": "HACS (Home Assistant Community Store)" - }, - "confirm": { - "add_to_lovelace": "Are you sure you want to add this to your Lovelace resources?", - "bg_task": "Action is disabled while background tasks is running.", - "cancel": "Cancel", - "continue": "Are you sure you want to continue?", - "delete": "Are you sure you want to delete \"{item}\"?", - "delete_installed": "'{item}' is installed, you need to uninstall it before you can delete it.", - "exist": "{item} already exists", - "generic": "Are you sure?", - "home_assistant_is_restarting": "Hold on, Home Assistant is now restarting.", - "home_assistant_version_not_correct": "You are running Home Assistant version '{haversion}', but this repository requires minimum version '{minversion}' to be installed.", - "no": "No", - "no_upgrades": "No upgrades pending", - "ok": "OK", - "overwrite": "Doing this will overwrite it.", - "reload_data": "This reloads the data of all repositories HACS knows about, this will take some time to finish.", - "restart_home_assistant": "Are you sure you want to restart Home Assistant?", - "uninstall": "Are you sure you want to uninstall \"{item}\"?", - "upgrade_all": "This will upgrade all of these repositories, make sure that you have read the release notes for all of them before proceeding.", - "yes": "Yes" - }, - "options": { - "step": { - "user": { - "data": { - "appdaemon": "Enable AppDaemon apps discovery & tracking", - "country": "Filter with country code.", - "debug": "Enable debug.", - "experimental": "Enable experimental features", - "netdaemon": "Enable NetDaemon apps discovery & tracking", - "not_in_use": "Not in use with YAML", - "release_limit": "Number of releases to show.", - "sidepanel_icon": "Side panel icon", - "sidepanel_title": "Side panel title" - } - } - } - }, - "repository_banner": { - "config_flow": "This integration supports config_flow, that means that you now can go to the integration section of your UI to configure it.", - "config_flow_title": "UI Configuration supported", - "integration_not_loaded": "This integration is not loaded in Home Assistant.", - "no_restart_required": "No restart required", - "not_loaded": "Not loaded", - "plugin_not_loaded": "This plugin is not added to your Lovelace resources.", - "restart": "You need to restart Home Assistant.", - "restart_pending": "Restart pending" - }, - "repository": { - "add_to_lovelace": "Add to Lovelace", - "authors": "Authors", - "available": "Available", - "back_to": "Back to", - "changelog": "Change log", - "downloads": "Downloads", - "flag_this": "Flag this", - "frontend_version": "Frontend version", - "github_stars": "GitHub stars", - "goto_integrations": "Go to integrations", - "hide": "Hide", - "hide_beta": "Hide beta", - "install": "Install", - "installed": "Installed", - "lovelace_copy_example": "Copy the example to your clipboard", - "lovelace_instruction": "When you add this to your lovelace configuration use this", - "lovelace_no_js_type": "Could not determine the type of this plugin, check the repository.", - "newest": "newest", - "note_appdaemon": "you still need to add it to your 'apps.yaml' file", - "note_installed": "When installed, this will be located in", - "note_integration": "you still need to add it to your 'configuration.yaml' file", - "note_plugin": "you still need to add it to your lovelace configuration ('ui-lovelace.yaml' or the raw UI config editor)", - "note_plugin_post_107": "you still need to add it to your lovelace configuration ('configuration.yaml' or the resource editor '\/config\/lovelace\/resources')", - "open_issue": "Open issue", - "open_plugin": "Open plugin", - "reinstall": "Reinstall", - "repository": "Repository", - "restart_home_assistant": "Restart Home Assistant", - "show_beta": "Show beta", - "uninstall": "Uninstall", - "update_information": "Update information", - "upgrade": "Update" - }, - "settings": { - "add_custom_repository": "ADD CUSTOM REPOSITORY", - "adding_new_repo": "Adding new repository '{repo}'", - "adding_new_repo_category": "With category '{category}'.", - "bg_task_custom": "Custom repositories are hidden while background tasks is running.", - "category": "Category", - "compact_mode": "Compact mode", - "custom_repositories": "CUSTOM REPOSITORIES", - "delete": "Delete", - "display": "Display", - "grid": "Grid", - "hacs_repo": "HACS repo", - "hidden_repositories": "hidden repositories", - "missing_category": "You need to select a category", - "open_repository": "Open repository", - "reload_data": "Reload data", - "reload_window": "Reload window", - "repository_configuration": "Repository configuration", - "save": "Save", - "table": "Table", - "table_view": "Table view", - "unhide": "unhide", - "upgrade_all": "Upgrade all" - }, - "store": { - "ascending": "ascending", - "clear_new": "Clear all new repositories", - "descending": "descending", - "last_updated": "Last updated", - "name": "Name", - "new_repositories": "New Repositories", - "pending_upgrades": "Pending upgrades", - "placeholder_search": "Please enter a search term...", - "sort": "sort", - "stars": "Stars", - "status": "Status" - }, - "time": { - "ago": "ago", - "day": "day", - "days": "days", - "hour": "hour", - "hours": "hours", - "minute": "minute", - "minutes": "minutes", - "month": "month", - "months": "months", - "one": "One", - "one_day_ago": "one day ago", - "one_hour_ago": "one hour ago", - "one_minute_ago": "one minute ago", - "one_month_ago": "one month ago", - "one_second_ago": "one second ago", - "one_year_ago": "one year ago", - "second": "second", - "seconds": "seconds", - "x_days_ago": "{x} days ago", - "x_hours_ago": "{x} hours ago", - "x_minutes_ago": "{x} minutes ago", - "x_months_ago": "{x} months ago", - "x_seconds_ago": "{x} seconds ago", - "x_years_ago": "{x} years ago", - "year": "year", - "years": "years" - } -} \ No newline at end of file diff --git a/custom_components/hacs/.translations/es.json b/custom_components/hacs/.translations/es.json deleted file mode 100644 index ccc56f4..0000000 --- a/custom_components/hacs/.translations/es.json +++ /dev/null @@ -1,198 +0,0 @@ -{ - "common": { - "about": "Acerca de", - "appdaemon": "AppDaemon", - "appdaemon_apps": "AppDaemon Apps", - "background_task": "Ejecutando tareas en segundo plano. Se refrescará automaticamente esta página al finalizar.", - "check_log_file": "Compruebe el archivo de registro para obtener más detalles.", - "continue": "Continuar", - "disabled": "Deshabilitado", - "documentation": "Documentación", - "hacs_is_disabled": "HACS está deshabilitado", - "installed": "instalado", - "integration": "Integración", - "integrations": "Integraciones", - "manage": "Administrar", - "netdaemon": "NetDaemon", - "netdaemon_apps": "NetDaemon Apps", - "plugin": "Plugin", - "plugins": "Plugins", - "python_script": "Python Script", - "python_scripts": "Python Scripts", - "repositories": "Repositorios", - "settings": "configuraciones", - "theme": "Tema", - "themes": "Temas", - "version": "Versión" - }, - "config": { - "abort": { - "single_instance_allowed": "Sólo se permite una única configuración de HACS." - }, - "error": { - "auth": "El token de acceso personal no es correcto." - }, - "step": { - "user": { - "data": { - "appdaemon": "Habilitar el descubrimiento y seguimiento de las aplicaciones de AppDaemon", - "netdaemon": "Habilitar el descubrimiento y seguimiento de las aplicaciones de NetDaemon", - "python_script": "Habilitar el descubrimiento y seguimiento en python_scripts", - "sidepanel_icon": "Ícono del panel lateral", - "sidepanel_title": "Título del panel lateral", - "theme": "Habilitar el descubrimiento y seguimiento de temas", - "token": "Token de acceso personal de GitHub" - }, - "description": "Si necesitas ayuda con la configuración, visita la siguiente pagina: https:\/\/hacs.xyz\/docs\/configuration\/start", - "title": "HACS (Home Assistant Community Store)" - } - }, - "title": "HACS (Home Assistant Community Store)" - }, - "confirm": { - "add_to_lovelace": "¿Está seguro de que desea agregar esto a sus recursos de Lovelace?", - "bg_task": "La acción está deshabilitada mientras se ejecutan tareas en segundo plano.", - "cancel": "Cancelar", - "continue": "Estás seguro de que quieres continuar?", - "delete": "¿Seguro que quieres eliminar '{item}'?", - "delete_installed": "'{item}' está instalado, debe desinstalarlo antes de poder eliminarlo.", - "exist": "{item} ya existe", - "generic": "¿Estás seguro?", - "home_assistant_is_restarting": "Espera, Home Assistant se está reiniciando.", - "home_assistant_version_not_correct": "Está ejecutando la versión '{haversion}' de Home Assistant, pero este repositorio requiere la instalación de la versión '{minversion}' mínima.", - "no": "No", - "no_upgrades": "No hay actualizaciones pendientes", - "ok": "OK", - "overwrite": "Si lo hace, se sobrescribirá.", - "reload_data": "Esto recarga los datos de todos los repositorios que HACS conoce, esto tardará algún tiempo en finalizar.", - "restart_home_assistant": "¿Está seguro de que desea reiniciar Home Assistant?", - "uninstall": "¿Está seguro de que desea desinstalar '{item}'?", - "upgrade_all": "Esto actualizará todos estos repositorios, asegúrese de que ha leído las notas de la versión de todos ellos antes de continuar.", - "yes": "Si" - }, - "options": { - "step": { - "user": { - "data": { - "appdaemon": "Habilitar el descubrimiento y seguimiento de las aplicaciones de AppDaemon", - "country": "Filtrar por el código de país.", - "debug": "Habilitar depuración.", - "experimental": "Habilitar funciones experimentales", - "netdaemon": "Habilitar el descubrimiento y seguimiento de las aplicaciones de NetDaemon", - "not_in_use": "No usarse con YAML", - "release_limit": "Número de versiones a mostrar.", - "sidepanel_icon": "Icono del panel lateral", - "sidepanel_title": "Título del panel lateral" - } - } - } - }, - "repository_banner": { - "config_flow": "Esta integración soporta config_flow, lo que significa que ahora puede ir a la sección de integración de su UI para configurarlo.", - "config_flow_title": "Configuración de UI soportada", - "integration_not_loaded": "Esta integración no se carga en Home Assistant.", - "no_restart_required": "No es necesario reiniciar", - "not_loaded": "No está cargado", - "plugin_not_loaded": "Este plugin no se añade a sus recursos de Lovelace.", - "restart": "Es necesario reiniciar Home Assistant.", - "restart_pending": "Reinicio pendiente" - }, - "repository": { - "add_to_lovelace": "Añadir a Lovelace", - "authors": "Autores", - "available": "Disponible", - "back_to": "Volver a", - "changelog": "Registro de cambios", - "downloads": "Descargas", - "flag_this": "Marcar esto", - "frontend_version": "Versión del frontend", - "github_stars": "Estrellas de GitHub", - "goto_integrations": "Ir a integraciones", - "hide": "Ocultar", - "hide_beta": "Ocultar beta", - "install": "Instalar", - "installed": "Instalado", - "lovelace_copy_example": "Copiar el ejemplo al clipboard", - "lovelace_instruction": "Agregue lo siguiente en su configuración de lovelace", - "lovelace_no_js_type": "No se pudo determinar el tipo de plugin, revise el repositorio.", - "newest": "más nuevo", - "note_appdaemon": "deberá agregar esto a su archivo 'apps.yaml'", - "note_installed": "Al instalarse se encontrará en", - "note_integration": "deberá agregar esto a su archivo 'configuration.yaml'", - "note_plugin": "deberá agregar esto a su configuración de lovelace ('ui-lovelace.yaml' o en el editor UI de lovelace)", - "open_issue": "Abrir issue", - "open_plugin": "Abrir plugin", - "reinstall": "Reinstalar", - "repository": "Repositorio", - "restart_home_assistant": "Reiniciar Home Assistant", - "show_beta": "Mostrar beta", - "uninstall": "Desinstalar", - "update_information": "Actualizar información", - "upgrade": "Actualizar" - }, - "settings": { - "add_custom_repository": "AGREGAR REPOSITORIO PERSONALIZADO", - "adding_new_repo": "Añadiendo un nuevo repositorio '{repo}'.", - "adding_new_repo_category": "Con la categoría '{category}'.", - "bg_task_custom": "Los repositorios personalizados están ocultos mientras se ejecutan las tareas en segundo plano.", - "category": "Categoría", - "compact_mode": "Modo compacto", - "custom_repositories": "REPOSITORIOS PERSONALIZADOS", - "delete": "Eliminar", - "display": "Mostrar", - "grid": "Cuadrícula", - "hacs_repo": "HACS repo", - "hidden_repositories": "repositorios ocultos", - "missing_category": "Es necesario seleccionar una categoría", - "open_repository": "Abrir repositorio", - "reload_data": "Recargar datos", - "reload_window": "Recargar ventana", - "repository_configuration": "Configuración del repositorio", - "save": "Grabar", - "table": "Tabla", - "table_view": "Vista de la tabla", - "unhide": "mostrar", - "upgrade_all": "Actualizar todo" - }, - "store": { - "ascending": "ascendente", - "clear_new": "Borrar todos los nuevos repositorios", - "descending": "descendente", - "last_updated": "Última actualización", - "name": "Nombre", - "new_repositories": "Nuevos Repositorios", - "pending_upgrades": "Actualizaciones pendientes", - "placeholder_search": "Por favor escriba una palabra clave de búsqueda...", - "sort": "ordenar", - "stars": "Estrellas", - "status": "Estado" - }, - "time": { - "ago": "hace", - "day": "dia", - "days": "dias", - "hour": "hora", - "hours": "horas", - "minute": "minuto", - "minutes": "minutos", - "month": "mes", - "months": "meses", - "one": "Uno", - "one_day_ago": "hace un día", - "one_hour_ago": "hace una hora", - "one_minute_ago": "hace un minuto", - "one_month_ago": "hace un mes", - "one_second_ago": "hace un segundo", - "one_year_ago": "hace un año", - "second": "segundo", - "seconds": "segundos", - "x_days_ago": "hace {x} dias", - "x_hours_ago": "hace {x} horas", - "x_minutes_ago": "hace {x} minutos", - "x_months_ago": "hace {x} meses", - "x_seconds_ago": "hace {x} segundos", - "x_years_ago": "hace {x} años", - "year": "año", - "years": "años" - } -} \ No newline at end of file diff --git a/custom_components/hacs/.translations/fr.json b/custom_components/hacs/.translations/fr.json deleted file mode 100644 index 2d2f487..0000000 --- a/custom_components/hacs/.translations/fr.json +++ /dev/null @@ -1,198 +0,0 @@ -{ - "common": { - "about": "À propos de", - "appdaemon": "AppDaemon", - "appdaemon_apps": "Applications AppDaemon", - "background_task": "Tache de fond en cours, cette page se rechargera une fois terminée", - "check_log_file": "Consultez votre fichier journal pour plus de détails.", - "continue": "Continuer", - "disabled": "Désactivé", - "documentation": "Documentation", - "hacs_is_disabled": "HACS est désactivé", - "installed": "installés", - "integration": "Intégration", - "integrations": "Intégrations", - "manage": "gérer", - "netdaemon": "NetDaemon", - "netdaemon_apps": "Applications NetDaemon", - "plugin": "Plugin", - "plugins": "Plugins", - "python_script": "Script Python", - "python_scripts": "Scripts Python", - "repositories": "Dépôts", - "settings": "paramètres", - "theme": "Thème", - "themes": "Thèmes", - "version": "Version" - }, - "config": { - "abort": { - "single_instance_allowed": "Une seule configuration de HACS est autorisée." - }, - "error": { - "auth": "Le jeton personnel d'accès est invalide." - }, - "step": { - "user": { - "data": { - "appdaemon": "Activer la découverte et le suivi des applications AppDaemon", - "netdaemon": "Activer la découverte et le suivi des applications NetDaemon", - "python_script": "Activer la découverte et le suivi des scripts python", - "sidepanel_icon": "Icône de la barre latérale", - "sidepanel_title": "Titre de la barre latérale", - "theme": "Activer la découverte et le suivi des thèmes", - "token": "Jeton d'accès personnel GitHub" - }, - "description": "Si vous avez besoin d'aide pour la configuration, jetez un œil ici: https:\/\/hacs.xyz\/docs\/configuration\/start", - "title": "HACS (Home Assistant Community Store)" - } - }, - "title": "HACS (Home Assistant Community Store)" - }, - "confirm": { - "add_to_lovelace": "Êtes-vous sûr de vouloir l'ajouter à vos ressources Lovelace ?", - "bg_task": "L'action est désactivée pendant l'exécution de tâches en arrière-plan.", - "cancel": "Annuler", - "continue": "Es-tu sur de vouloir continuer?", - "delete": "Êtes-vous sûr de vouloir supprimer '{item}'?", - "delete_installed": "'{item}' est installé, vous devez le désinstaller avant de pouvoir le supprimer.", - "exist": "{item} existe déjà", - "generic": "Êtes-vous sûr?", - "home_assistant_is_restarting": "Attendez, Home Assistant redémarre maintenant.", - "home_assistant_version_not_correct": "Vous utilisez la version '{haversion}' de Home Assistant, mais ce référentiel nécessite l'installation de la version minimale '{minversion}'.", - "no": "Non", - "no_upgrades": "Aucune mise à niveau en attente", - "ok": "OK", - "overwrite": "En faisant cela, cela l'écrasera.", - "reload_data": "Cela recharge les données de tous les dépôts dont HACS a connaissance, cela prendra un certain temps à terminer.", - "restart_home_assistant": "Voulez-vous vraiment redémarrer Home Assistant ?", - "uninstall": "Êtes-vous sûr de vouloir désinstaller '{item}'?", - "upgrade_all": "Cela mettra à niveau tous ces dépôts, assurez-vous d'avoir lu les notes de publication pour chacun d'entre eux avant de continuer.", - "yes": "Oui" - }, - "options": { - "step": { - "user": { - "data": { - "appdaemon": "Activer la découverte et le suivi des applications AppDaemon", - "country": "Filtrer par code pays.", - "debug": "Activez le débogage.", - "experimental": "Activer les fonctionnalités expérimentales", - "netdaemon": "Activer la découverte et le suivi des applications NetDaemon", - "not_in_use": "Non utilisé avec YAML", - "release_limit": "Nombre de recensés à afficher.", - "sidepanel_icon": "Icône de la barre latérale", - "sidepanel_title": "Titre de la barre latérale" - } - } - } - }, - "repository_banner": { - "config_flow": "Cette intégration prend en charge config_flow, ce qui signifie que vous pouvez maintenant accéder à la section d'intégration de votre interface utilisateur pour le configurer.", - "config_flow_title": "Configuration de l'interface utilisateur prise en charge", - "integration_not_loaded": "Cette intégration n'est pas chargée dans Home Assistant.", - "no_restart_required": "Aucun redémarrage requis", - "not_loaded": "Non chargé", - "plugin_not_loaded": "Ce plugin n'est pas ajouté à vos ressources Lovelace.", - "restart": "Vous devez redémarrer Home Assistant.", - "restart_pending": "Redémarrage en attente" - }, - "repository": { - "add_to_lovelace": "Ajouter à Lovelace", - "authors": "Auteurs", - "available": "Disponible", - "back_to": "Retour", - "changelog": "Change log", - "downloads": "Téléchargements", - "flag_this": "Marquer", - "frontend_version": "Version de l'interface", - "github_stars": "Étoiles GitHub", - "goto_integrations": "Aller aux intégrations", - "hide": "Masquer", - "hide_beta": "Masquer les bêta", - "install": "Installer", - "installed": "Installé", - "lovelace_copy_example": "Copier cet exemple dans le presse-papier", - "lovelace_instruction": "Quand vous l'ajoutez à votre configuration lovelace, utilisez", - "lovelace_no_js_type": "Impossible de déterminer le type de plugin, veuillez vérifier le dépôt", - "newest": "nouveau", - "note_appdaemon": "vous devez toujours l'ajouter à votre fichier 'apps.yaml'", - "note_installed": "Une fois installé, il se trouvera dans", - "note_integration": "Vous devez toujours l'ajouter à votre fichier 'configuration.yaml'", - "note_plugin": "Vous devez toujours l'ajouter à votre configuration lovelace ('ui-lovelace.yaml' ou l'éditeur de configuration de l'interface)", - "open_issue": "Ouvrir un ticket", - "open_plugin": "Ouvrir le plugin", - "reinstall": "Réinstaller", - "repository": "Dépôt", - "restart_home_assistant": "Redémarrer Home Assistant", - "show_beta": "Afficher les bêta", - "uninstall": "Désinstaller", - "update_information": "Mettre à jour les informations", - "upgrade": "Mettre à jour" - }, - "settings": { - "add_custom_repository": "AJOUTER UN DÉPÔT PERSONNALISÉ", - "adding_new_repo": "Ajout d'un nouveau dépôt '{repo}'", - "adding_new_repo_category": "Avec la catégorie '{category}'.", - "bg_task_custom": "Les dépôts personnalisés sont masqués pendant l'exécution de tâches en arrière-plan.", - "category": "Catégorie", - "compact_mode": "Mode compact", - "custom_repositories": "DÉPÔTS PERSONNALISÉS", - "delete": "Supprimer", - "display": "Affichage", - "grid": "Grille", - "hacs_repo": "Dépôt HACS", - "hidden_repositories": "dépôts cachés", - "missing_category": "Vous devez sélectionner une catégorie", - "open_repository": "Ouvrir dépôt", - "reload_data": "Recharger les données", - "reload_window": "Recharger la fenêtre", - "repository_configuration": "Configuration de dépôt", - "save": "Enregistrer", - "table": "Tableau", - "table_view": "Vue table", - "unhide": "Afficher", - "upgrade_all": "Tout mettre à jour" - }, - "store": { - "ascending": "ascendant", - "clear_new": "Effacer tous les nouveaux dépôts", - "descending": "descendant", - "last_updated": "Dernière mise à jour", - "name": "Nom", - "new_repositories": "Nouveaux dépôts", - "pending_upgrades": "Mises à niveau en attente", - "placeholder_search": "Veuillez entrer un terme de recherche...", - "sort": "Trier", - "stars": "Étoiles", - "status": "Statut" - }, - "time": { - "ago": "il y a", - "day": "jour", - "days": "jours", - "hour": "heure", - "hours": "heures", - "minute": "minute", - "minutes": "minutes", - "month": "mois", - "months": "mois", - "one": "Un", - "one_day_ago": "il y a 1 jour", - "one_hour_ago": "il y a 1 heure", - "one_minute_ago": "il y a 1 minute", - "one_month_ago": "il y a 1 mois", - "one_second_ago": "il y a 1 seconde", - "one_year_ago": "il y a 1 an", - "second": "seconde", - "seconds": "secondes", - "x_days_ago": "il y a {x} jours", - "x_hours_ago": "il y a {x} heures", - "x_minutes_ago": "il y a {x} minutes", - "x_months_ago": "il y a {x} mois", - "x_seconds_ago": "il y a {x} secondes", - "x_years_ago": "il y a {x} ans", - "year": "an", - "years": "ans" - } -} \ No newline at end of file diff --git a/custom_components/hacs/.translations/hu.json b/custom_components/hacs/.translations/hu.json deleted file mode 100644 index 657e261..0000000 --- a/custom_components/hacs/.translations/hu.json +++ /dev/null @@ -1,194 +0,0 @@ -{ - "common": { - "about": "Névjegy", - "appdaemon": "AppDaemon", - "appdaemon_apps": "AppDaemon Appok", - "background_task": "Éppen háttérfeladat fut, ez az oldal frissülni fog, ha kész.", - "check_log_file": "További részletekért ellenőrizd a naplófájlt.", - "continue": "Folytatás", - "disabled": "Tiltva", - "documentation": "Dokumentáció", - "hacs_is_disabled": "A HACS le van tiltva", - "installed": "Telepített", - "integration": "Integráció", - "integrations": "Integrációk", - "manage": "kezelés", - "plugin": "Bővítmény", - "plugins": "Bővítmények", - "python_script": "Python Szkript", - "python_scripts": "Python Szkriptek", - "repositories": "Tárolók", - "settings": "beállítások", - "theme": "Téma", - "themes": "Témák", - "version": "Verzió" - }, - "config": { - "abort": { - "single_instance_allowed": "Csak egyetlen HACS-konfiguráció megengedett." - }, - "error": { - "auth": "A Személyes Hozzáférési Token nem megfelelő." - }, - "step": { - "user": { - "data": { - "appdaemon": "AppDaemon appok felfedezésének és nyomon követésének engedélyezése", - "python_script": "Python szkriptek felfedezésének és nyomon követésének engedélyezése", - "sidepanel_icon": "Oldalsó panel ikon", - "sidepanel_title": "Oldalsó panel cím", - "theme": "Témák felfedezésének és nyomon követésének engedélyezése", - "token": "GitHub Személyes Hozzáférési Token" - }, - "description": "Ha segítségre van szükséged a konfigurációval kapcsolatban, akkor tekintsd meg ezt az oldalt: https:\/\/hacs.xyz\/docs\/configuration\/start", - "title": "HACS (Home Assistant Community Store)" - } - }, - "title": "HACS (Home Assistant Community Store)" - }, - "confirm": { - "add_to_lovelace": "Biztosan hozzá szeretnéd ezt adni a Lovelace erőforrásokhoz?", - "bg_task": "A művelet le van tiltva, amíg háttérfeladat fut.", - "cancel": "Mégse", - "continue": "Biztosan folytatni szeretnéd?", - "delete": "Biztosan törölni szeretnéd a(z) '{item}'-t?", - "delete_installed": "A(z) '{item}' telepítve van, törlés előtt el kell távolítanod.", - "exist": "{item} már létezik", - "generic": "Biztos vagy benne?", - "home_assistant_is_restarting": "Várj, a Home Assistant éppen újraindul.", - "home_assistant_version_not_correct": "A Home Assistant '{haversion}' verzióját használod, de ehhez a tárolóhoz legalább a(z) '{minversion}' verzióra van szükség.", - "no": "Nem", - "no_upgrades": "Nincs függőben lévő frissítés", - "ok": "OK", - "overwrite": "Ezzel felül fogod írni.", - "reload_data": "Ez újratölti a HACS által ismert összes tároló adatát, ami némi időbe telhet.", - "restart_home_assistant": "Biztosan újraindítod a Home Assistant programot?", - "uninstall": "Biztosan el szeretnéd távolítani a(z) '{item}'-t?", - "upgrade_all": "Ez frissíteni fogja az összes tárolót. Győzödj meg róla, hogy elolvastad az összes kiadási megjegyzést, mielőtt továbblépnél.", - "yes": "Igen" - }, - "options": { - "step": { - "user": { - "data": { - "appdaemon": "AppDaemon appok felfedezésének és nyomon követésének engedélyezése", - "country": "Szűrés országkóddal.", - "debug": "Hibakeresés engedélyezése.", - "experimental": "Kísérleti funkciók engedélyezése", - "not_in_use": "YAML-lel nem használható", - "release_limit": "Megjelenítendő kiadások száma.", - "sidepanel_icon": "Oldalsó panel ikon", - "sidepanel_title": "Oldalsó panel cím" - } - } - } - }, - "repository_banner": { - "config_flow": "Ez az integráció támogatja a config_flow-t, vagyis a felhasználói felületen az integrációk menüben lehet konfigurálni.", - "config_flow_title": "A felhasználói felület konfigurációja támogatott", - "integration_not_loaded": "Ez az integráció nincs betöltve a Home Assistantban.", - "no_restart_required": "Nincs szükség újraindításra", - "not_loaded": "Nincs betöltve", - "plugin_not_loaded": "Ez a bővítmény nincs hozzáadva a Lovelace erőforrásokhoz.", - "restart": "Indítsd újra a Home Assistant programot.", - "restart_pending": "Újraindítás függőben" - }, - "repository": { - "add_to_lovelace": "Hozzáadás a Lovelace-hez", - "authors": "Szerzők", - "available": "Elérhető", - "back_to": "Vissza -", - "changelog": "Változási napló", - "downloads": "Letöltések", - "flag_this": "Megjelölés", - "frontend_version": "Frontend verzió", - "github_stars": "GitHub csillagok", - "goto_integrations": "Ugrás az integrációkhoz", - "hide": "Elrejtés", - "hide_beta": "Béta elrejtése", - "install": "Telepítés", - "installed": "Telepített", - "lovelace_copy_example": "Példa másolása a vágólapra", - "lovelace_instruction": "Amikor hozzáadod ezt a lovelace konfigurációdhoz, használd ezt", - "lovelace_no_js_type": "Nem sikerült meghatározni a beépülő modul típusát, ellenőrizd a tárolót.", - "newest": "legújabb", - "note_appdaemon": "de még hozzá kell adnod az 'apps.yaml' fájlhoz", - "note_installed": "Telepítéskor a következő helyre kerül:", - "note_integration": "de még hozzá kell adnod a 'configuration.yaml' fájlhoz", - "note_plugin": "de még hozzá kell adnod a lovelace konfigurációhoz (az 'ui-lovelace.yaml' fájlban vagy a Lovelace felületen a konfiguráció szerkesztőben)", - "open_issue": "Probléma jelentése", - "open_plugin": "Bővítmény megnyitása", - "reinstall": "Újratelepítés", - "repository": "Tároló", - "restart_home_assistant": "Home Assistant újraindítása", - "show_beta": "Béta megjelenítése", - "uninstall": "Eltávolítás", - "update_information": "Frissítési információk", - "upgrade": "Frissítés" - }, - "settings": { - "add_custom_repository": "EGYÉNI TÁROLÓ HOZZÁADÁSA", - "adding_new_repo": "Új tároló hozzáadása '{repo}'", - "adding_new_repo_category": "A '{category}' kategóriával.", - "bg_task_custom": "Az egyéni tárolók rejtve vannak, amíg háttérfeladat fut.", - "category": "Kategória", - "compact_mode": "Kompakt mód", - "custom_repositories": "EGYÉNI TÁROLÓK", - "delete": "Törlés", - "display": "Megjelenítés", - "grid": "Rács", - "hacs_repo": "HACS tároló", - "hidden_repositories": "rejtett tárolók", - "missing_category": "Ki kell választanod egy kategóriát", - "open_repository": "Tároló megnyitása", - "reload_data": "Adatok újratöltése", - "reload_window": "Ablak újratöltése", - "repository_configuration": "Tároló konfiguráció", - "save": "Mentés", - "table": "Táblázat", - "table_view": "Táblázat nézet", - "unhide": "felfedés", - "upgrade_all": "Minden frissítése" - }, - "store": { - "ascending": "növekvő", - "clear_new": "Új tárolók megjelölése látottként", - "descending": "csökkenő", - "last_updated": "Utolsó frissítés", - "name": "Név", - "new_repositories": "Új tárolók", - "pending_upgrades": "Függőben lévő frissítések", - "placeholder_search": "Kérlek adj meg egy keresési kifejezést...", - "sort": "rendezés", - "stars": "Csillag", - "status": "Állapot" - }, - "time": { - "ago": "ezelőtt", - "day": "nap", - "days": "nap", - "hour": "óra", - "hours": "óra", - "minute": "perc", - "minutes": "perc", - "month": "hónap", - "months": "hónap", - "one": "Egy", - "one_day_ago": "egy nappal ezelőtt", - "one_hour_ago": "egy órával ezelőtt", - "one_minute_ago": "egy perccel ezelőtt", - "one_month_ago": "egy hónappal ezelőtt", - "one_second_ago": "egy másodperccel ezelőtt", - "one_year_ago": "egy évvel ezelőtt", - "second": "másodperc", - "seconds": "másodperc", - "x_days_ago": "{x} nappal ezelőtt", - "x_hours_ago": "{x} órával ezelőtt", - "x_minutes_ago": "{x} perccel ezelőtt", - "x_months_ago": "{x} hónappal ezelőtt", - "x_seconds_ago": "{x} másodperccel ezelőtt", - "x_years_ago": "{x} évvel ezelőtt", - "year": "év", - "years": "év" - } -} \ No newline at end of file diff --git a/custom_components/hacs/.translations/it.json b/custom_components/hacs/.translations/it.json deleted file mode 100644 index fc42529..0000000 --- a/custom_components/hacs/.translations/it.json +++ /dev/null @@ -1,198 +0,0 @@ -{ - "common": { - "about": "Informazioni su", - "appdaemon": "AppDaemon", - "appdaemon_apps": "Applicazioni AppDaemon", - "background_task": "Attività in esecuzione, questa pagina sarà ricaricata al termine.", - "check_log_file": "Controlla il tuo file di registro per maggiori dettagli.", - "continue": "Continua", - "disabled": "Disabilitato", - "documentation": "Documentazione", - "hacs_is_disabled": "HACS è disabilitato", - "installed": "Installati", - "integration": "Integrazione", - "integrations": "Integrazioni", - "manage": "gestione", - "netdaemon": "NetDaemon", - "netdaemon_apps": "Applicazioni NetDaemon", - "plugin": "Plugin", - "plugins": "Plugin", - "python_script": "Script python", - "python_scripts": "Script python", - "repositories": "Repository", - "settings": "Impostazioni", - "theme": "Tema", - "themes": "Temi", - "version": "Versione" - }, - "config": { - "abort": { - "single_instance_allowed": "È consentita una sola configurazione di HACS." - }, - "error": { - "auth": "Il token di accesso personale non è corretto." - }, - "step": { - "user": { - "data": { - "appdaemon": "Abilita il rilevamento e il monitoraggio delle applicazioni AppDaemon", - "netdaemon": "Abilita il rilevamento e il monitoraggio delle applicazioni NetDaemon", - "python_script": "Abilita il rilevamento e il monitoraggio dei python_scripts", - "sidepanel_icon": "Icona nel pannello laterale", - "sidepanel_title": "Titolo nel pannello laterale", - "theme": "Abilita individuazione e tracciamento dei temi", - "token": "Token di accesso personale GitHub" - }, - "description": "Se hai bisogno di aiuto con la configurazione dai un'occhiata qui: https:\/\/hacs.xyz\/docs\/configuration\/start", - "title": "HACS (Home Assistant Community Store)" - } - }, - "title": "HACS (Home Assistant Community Store)" - }, - "confirm": { - "add_to_lovelace": "Sei sicuro di voler aggiungerlo alle tue risorse Lovelace?", - "bg_task": "L'azione è disabilitata mentre sono in esecuzione attività in background.", - "cancel": "Annulla", - "continue": "Sei sicuro di voler continuare?", - "delete": "Sei sicuro di voler disinstallare '{item}'?", - "delete_installed": "'{item}' è installato, è necessario disinstallarlo prima di poterlo eliminare.", - "exist": "{item} esiste già", - "generic": "Sei sicuro?", - "home_assistant_is_restarting": "Aspetta, Home Assistant si sta riavviando.", - "home_assistant_version_not_correct": "Stai eseguendo la versione Home Assistant '{haversion}', ma questo repository richiede l'installazione della versione minima '{minversion}'.", - "no": "No", - "no_upgrades": "Nessun aggiornamento in sospeso", - "ok": "OK", - "overwrite": "In questo modo lo sovrascriverà.", - "reload_data": "Questo ricarica i dati di tutte le repository di cui HACS è a conoscenza, ci vorrà del tempo per finire.", - "restart_home_assistant": "Sei sicuro di voler riavviare Home Assistant?", - "uninstall": "Sei sicuro di voler disinstallare '{item}'?", - "upgrade_all": "Questa azione aggiornerà tutti i repository, assicurati di aver letto le note di rilascio prima di procedere.", - "yes": "Sì" - }, - "options": { - "step": { - "user": { - "data": { - "appdaemon": "Abilita il rilevamento e il monitoraggio delle applicazioni AppDaemon", - "country": "Filtra con prefisso internazionale.", - "debug": "Abilita debug.", - "experimental": "Abilita funzionalità sperimentali", - "netdaemon": "Abilita il rilevamento e il monitoraggio delle applicazioni NetDaemon", - "not_in_use": "Non in uso con YAML", - "release_limit": "Numero di versioni da mostrare.", - "sidepanel_icon": "Icona nel pannello laterale", - "sidepanel_title": "Titolo nel pannello laterale" - } - } - } - }, - "repository_banner": { - "config_flow": "Questa integrazione supporta config_flow, questo significa che è ora possibile passare alla sezione \"IntegrazionI\" dell'interfaccia utente per la configurazione.", - "config_flow_title": "Configurazione dell'interfaccia utente supportata", - "integration_not_loaded": "Questa integrazione non è caricata in Home Assistant.", - "no_restart_required": "Non è necessario riavviare", - "not_loaded": "Non caricato", - "plugin_not_loaded": "Questo plugin non è stato aggiunto alle risorse di Lovelace.", - "restart": "È necessario riavviare Home Assistant.", - "restart_pending": "Riavvio in attesa" - }, - "repository": { - "add_to_lovelace": "Aggiungi a Lovelace", - "authors": "Autori", - "available": "Disponibile", - "back_to": "Torna a", - "changelog": "Change log", - "downloads": "Downloads", - "flag_this": "Spunta questo", - "frontend_version": "Frontend versione", - "github_stars": "GitHub stelle", - "goto_integrations": "Vai alle Integrazioni", - "hide": "Nascondi", - "hide_beta": "Nascondi beta", - "install": "Installa", - "installed": "Installato", - "lovelace_copy_example": "Copia l'esempio negli appunti", - "lovelace_instruction": "Quando lo aggiungi nella configurazione di lovelace, usa questo", - "lovelace_no_js_type": "Impossibile determinare il tipo di plugin, verificare il repository.", - "newest": "Più recente", - "note_appdaemon": "dovrai aggiungerlo nel file 'apps.yaml'", - "note_installed": "Una volta installato, si troverà in", - "note_integration": "dovrai aggiungerlo nel file 'configuration.yaml'", - "note_plugin": "devi aggiungere la configurazione nel file 'ui-lovelace.yaml' oppure via Editor RAW della UI.", - "open_issue": "Segnala anomalia", - "open_plugin": "Apri plugin", - "reinstall": "Reinstalla", - "repository": "Archivio Software (Repository)", - "restart_home_assistant": "Riavvia Home Assistant", - "show_beta": "Visualizza beta", - "uninstall": "Rimuovi", - "update_information": "Aggiorna informazioni", - "upgrade": "Aggiorna" - }, - "settings": { - "add_custom_repository": "AGGIUNGI REPOSITORY PERSONALIZZATA", - "adding_new_repo": "Aggiunta di un nuovo repository '{repo}'", - "adding_new_repo_category": "Con la categoria '{category}'.", - "bg_task_custom": "I repository personalizzati sono nascosti mentre sono in esecuzione attività in background.", - "category": "Categoria", - "compact_mode": "Modalità compatta", - "custom_repositories": "REPOSITORY PERSONALIZZATE", - "delete": "Cancella", - "display": "Visualizza", - "grid": "Griglia", - "hacs_repo": "HACS repo", - "hidden_repositories": "repository nascosti", - "missing_category": "Devi selezionare una categoria", - "open_repository": "Apri il repository", - "reload_data": "Ricarica i dati", - "reload_window": "Ricarica la finestra", - "repository_configuration": "Configurazione del repository", - "save": "Salva", - "table": "Tabella", - "table_view": "Vista tabella", - "unhide": "Mostra", - "upgrade_all": "Aggiorna tutto" - }, - "store": { - "ascending": "ascendente", - "clear_new": "Ripulisci i nuovi repository", - "descending": "discendente", - "last_updated": "Ultimo aggiornamento", - "name": "Nome", - "new_repositories": "Nuovi repository", - "pending_upgrades": "Aggiornamenti in sospeso", - "placeholder_search": "Inserire un termine di ricerca", - "sort": "Ordinare", - "stars": "Stelle", - "status": "Stato" - }, - "time": { - "ago": "fa", - "day": "giorno", - "days": "giorni", - "hour": "ora", - "hours": "ore", - "minute": "minuto", - "minutes": "minuti", - "month": "mese", - "months": "mesi", - "one": "Un", - "one_day_ago": "un giorno fa", - "one_hour_ago": "un'ora fa", - "one_minute_ago": "un minuto fa", - "one_month_ago": "un mese fa", - "one_second_ago": "un secondo fa", - "one_year_ago": "un anno fa", - "second": "secondo", - "seconds": "secondi", - "x_days_ago": "{x} giorni fa", - "x_hours_ago": "{x} ore fa", - "x_minutes_ago": "{x} minuti fa", - "x_months_ago": "{x} mesi fa", - "x_seconds_ago": "{x} secondi fa", - "x_years_ago": "{x} anni fa", - "year": "anno", - "years": "anni" - } -} \ No newline at end of file diff --git a/custom_components/hacs/.translations/nb.json b/custom_components/hacs/.translations/nb.json deleted file mode 100644 index 0a7ef22..0000000 --- a/custom_components/hacs/.translations/nb.json +++ /dev/null @@ -1,197 +0,0 @@ -{ - "common": { - "about": "Om", - "appdaemon": "AppDaemon", - "appdaemon_apps": "AppDaemon Apper", - "background_task": "Bakgrunnsoppgaven kjører. Denne siden lastes inn på nytt når den er ferdig.", - "check_log_file": "Sjekk loggfilen din for mer informasjon.", - "continue": "Fortsett", - "disabled": "Deaktivert", - "documentation": "dokumentasjon", - "hacs_is_disabled": "HACS er deaktivert", - "installed": "Installert", - "integration": "Integrasjon", - "integrations": "Integrasjoner", - "manage": "manage", - "netdaemon": "NetDaemon", - "netdaemon_apps": "NetDaemon Apper", - "plugin": "Plugin", - "plugins": "Plugins", - "python_script": "Python-skript", - "python_scripts": "Python-skript", - "repositories": "Repositories", - "settings": "Innstillinger", - "theme": "Tema", - "themes": "Temaer", - "version": "Versjon" - }, - "config": { - "abort": { - "single_instance_allowed": "Bare en konfigurasjon av HACS er tillatt." - }, - "error": { - "auth": "Personlig tilgangstoken er ikke korrekt." - }, - "step": { - "user": { - "data": { - "appdaemon": "Aktiver oppdagelse og sporing av AppDaemon-apper", - "netdaemon": "Aktiver oppdagelse og sporing av NetDaemon-apper", - "python_script": "Aktiver oppdagelse og sporing av python_scripts", - "sidepanel_icon": "Sidepanel ikon", - "sidepanel_title": "Sidepanel tittel", - "theme": "Aktiver oppdagelse og sporing av temaer", - "token": "GitHub Personal Access Token" - }, - "description": "Hvis du trenger hjelp med konfigurasjonen, ta en titt her: https:\/\/hacs.xyz\/docs\/configuration\/start", - "title": "HACS (Home Assistant Community Store)" - } - }, - "title": "HACS (Home Assistant Community Store)" - }, - "confirm": { - "add_to_lovelace": "Er du sikker på at du vil legge dette til i dine Lovelace resources?", - "bg_task": "Handlingen er deaktivert mens bakgrunnsoppgaver kjører.", - "cancel": "Avbryt", - "continue": "Er du sikker på at du vil fortsette?", - "delete": "Er du sikker på at du vil fjerne '{item}'?", - "delete_installed": "'{item}' er installert, du må avinstallere det før du kan slette det.", - "exist": "{item} eksisterer allerede", - "generic": "Er du sikker?", - "home_assistant_is_restarting": "Vent, Home Assistant starter nå på nytt.", - "home_assistant_version_not_correct": "Du kjører Home Assistant '{haversion}', men denne krever minimum versjon '{minversion}' for å bli installert.", - "no": "Nei", - "no_upgrades": "Ingen oppgraderinger tilgjengelig", - "ok": "OK", - "overwrite": "Å gjøre dette vil overskrive det.", - "reload_data": "Dette laster inn dataene til alle repositories HACS vet om, dette vil ta litt tid å fullføre.", - "restart_home_assistant": "Er du sikker på at du vil starte Home Assistant på nytt?", - "uninstall": "Er du sikker på at du vil avinstallere '{item}'?", - "upgrade_all": "Dette vil oppgradere alle disse repositorene, sørg for at du har lest utgivelses notatene for dem alle før du fortsetter.", - "yes": "Ja" - }, - "options": { - "step": { - "user": { - "data": { - "appdaemon": "Aktiver oppdagelse og sporing av AppDaemon-apper", - "country": "Filtrer med landskode.", - "debug": "Aktiver debug", - "experimental": "Aktiver eksperimentelle funksjoner", - "netdaemon": "Aktiver oppdagelse og sporing av NetDaemon-apper", - "not_in_use": "Ikke i bruk med YAML", - "release_limit": "Antall utgivelser som skal vises.", - "sidepanel_icon": "Sidepanel ikon", - "sidepanel_title": "Sidepanel tittel" - } - } - } - }, - "repository_banner": { - "config_flow": "Denne integrasjonen støtter config_flow, det betyr at du nå kan gå til integrasjoner i brukergrensesnittet for å konfigurere den.", - "config_flow_title": "UI konfigurasjon støttet", - "integration_not_loaded": "Integrasjonen er ikke lastet inn i Home Assistant.", - "no_restart_required": "Ingen omstart kreves", - "not_loaded": "Ikke lastet inn", - "plugin_not_loaded": "Denne pluginen er ikke lagt til i lovelace under \"resource\" delen av konfigurasjonen.", - "restart": "Du må restart Home Assistant", - "restart_pending": "Restart er nødvendig" - }, - "repository": { - "add_to_lovelace": "Legg til i Lovelace", - "authors": "Laget av", - "available": "Tilgjengelig", - "back_to": "Tilbake til", - "changelog": "Endringslogg", - "downloads": "Nedlastinger", - "flag_this": "Flag dette", - "frontend_version": "Frontend versjon", - "github_stars": "GitHub-stjerner", - "goto_integrations": "Gå til integrasjoner", - "hide": "Skjul", - "hide_beta": "Skjul beta", - "installed": "Installert", - "lovelace_copy_example": "Kopier eksemplet til utklippstavlen", - "lovelace_instruction": "Når du legger til dette i lovelace-konfigurasjonen din, bruk dette", - "lovelace_no_js_type": "Kunne ikke bestemme typen for denne plugin, sjekk repository.", - "newest": "Nyeste", - "note_appdaemon": "du må fortsatt legge den til i 'apps.yaml' filen", - "note_installed": "Når det er installert, vil dette ligge i", - "note_integration": "du må fortsatt legge den til 'configuration.yaml' filen", - "note_plugin": "du må fortsatt legge den til i lovelace-konfigurasjonen ('ui-lovelace.yaml' eller den rå UI-konfigurasjonsredigereren)", - "open_issue": "Meld et problem", - "open_plugin": "Åpne plugin", - "reinstall": "Installer på nytt", - "repository": "Repository", - "restart_home_assistant": "Start Home Assistant på nytt", - "show_beta": "Vis beta", - "uninstall": "Avinstaller", - "update_information": "Oppdater informasjon", - "upgrade": "Oppdater" - }, - "settings": { - "add_custom_repository": "LEGG TIL REPOSITORY", - "adding_new_repo": "Legger til ny repository '{repo}'", - "adding_new_repo_category": "Med kategori '{category}'.", - "bg_task_custom": "Custom repositories er skjult mens bakgrunnsoppgaver kjører.", - "category": "Kategori", - "compact_mode": "Kompakt modus", - "custom_repositories": "TILPASSEDE REPOSITORIER", - "delete": "Slett", - "display": "Vise", - "grid": "Nett", - "hacs_repo": "HACS repo", - "hidden_repositories": "Gjemte repositories", - "missing_category": "Du må velge en kategori", - "open_repository": "Åpne repository", - "reload_data": "Last inn data på nytt", - "reload_window": "Last inn vinduet på nytt", - "repository_configuration": "Repository konfigurasjon", - "save": "Lagre", - "table": "Tabell", - "table_view": "Tabellvisning", - "unhide": "Vis igjen", - "upgrade_all": "Oppgradere alle" - }, - "store": { - "ascending": "stigende", - "clear_new": "Tøm nye repositories", - "descending": "synkende", - "last_updated": "Sist oppdatert", - "name": "Navn", - "new_repositories": "Nye repositories", - "pending_upgrades": "Venter på oppgradering", - "placeholder_search": "Skriv inn et søkeord ...", - "sort": "sorter", - "stars": "Stjerner", - "status": "Status" - }, - "time": { - "ago": "siden", - "day": "dag", - "days": "dager", - "hour": "time", - "hours": "timer", - "minute": "minutt", - "minutes": "minutter", - "month": "måned", - "months": "måneder", - "one": "En", - "one_day_ago": "for en dag siden", - "one_hour_ago": "en time siden", - "one_minute_ago": "ett minutt siden", - "one_month_ago": "en måned siden", - "one_second_ago": "ett sekund siden", - "one_year_ago": "ett år siden", - "second": "sekund", - "seconds": "sekunder", - "x_days_ago": "{x} dager siden", - "x_hours_ago": "{x} timer siden", - "x_minutes_ago": "{x} minutter siden", - "x_months_ago": "{x} måneder siden", - "x_seconds_ago": "{x} sekunder siden", - "x_years_ago": "{x} år siden", - "year": "år", - "years": "år" - } -} \ No newline at end of file diff --git a/custom_components/hacs/.translations/nl.json b/custom_components/hacs/.translations/nl.json deleted file mode 100644 index 5a8de78..0000000 --- a/custom_components/hacs/.translations/nl.json +++ /dev/null @@ -1,197 +0,0 @@ -{ - "common": { - "about": "Over", - "appdaemon": "AppDaemon", - "appdaemon_apps": "AppDaemon Apps", - "background_task": "Achtergrond taak is draaiende, de pagina herhaalt zichzelf wanneer dit klaar is.", - "check_log_file": "Controleer het logbestand voor meer details.", - "continue": "Doorgaan", - "disabled": "Uitgeschakeld", - "documentation": "Documentatie", - "hacs_is_disabled": "HACS is uitgeschakeld", - "installed": "geinstalleerd", - "integration": "Integratie", - "integrations": "Integraties", - "manage": "beheer", - "netdaemon": "NetDaemon", - "netdaemon_apps": "NetDaemon Apps", - "plugin": "Plugin", - "plugins": "Plugins", - "python_script": "Python Script", - "python_scripts": "Python Scripts", - "repositories": "Repositories", - "settings": "instellingen", - "theme": "Thema", - "themes": "Themas", - "version": "Versie" - }, - "config": { - "abort": { - "single_instance_allowed": "Je kunt maar een enkele configuratie van HACS tegelijk hebben." - }, - "error": { - "auth": "Persoonlijke Toegang Token is niet correct." - }, - "step": { - "user": { - "data": { - "appdaemon": "Zet AppDaemon apps ontdekken & traceren aan", - "netdaemon": "Zet NetDaemon apps ontdekken & traceren aan", - "python_script": "Zet python_scripts ontdekken & traceren aan", - "sidepanel_icon": "Zijpaneel icoon", - "sidepanel_title": "Zijpaneel titel", - "theme": "Zet Themes ontdekken & traceren aan", - "token": "GitHub Persoonlijke Toegang Token" - }, - "description": "Als je hulp nodig hebt met de configuratie, kun je hier verder kijken: https:\/\/hacs.xyz\/docs\/configuration\/start", - "title": "HACS (Home Assistant Community Store)" - } - }, - "title": "HACS (Home Assistant Community Store)" - }, - "confirm": { - "add_to_lovelace": "Weet u zeker dat u dit wilt toevoegen aan uw Lovelace bronnen?", - "bg_task": "Actie is geblokkeerd terwijl achtergrondtaken actief zijn.", - "cancel": "Annuleer", - "continue": "Weet je zeker dat je wilt doorgaan?", - "delete": "Weet u zeker dat u '{item}' wilt verwijderen?", - "delete_installed": "'{item}' is geïnstalleerd, je dient het eerst te deïnstalleren voordat je het kan verwijderen.", - "exist": "{item} bestaat al.", - "generic": "Weet je het zeker?", - "home_assistant_is_restarting": "Een moment alstublieft, Home Assistant is aan het herstarten.", - "no": "Nee", - "no_upgrades": "Geen upgrades in afwachting.", - "ok": "Oké", - "overwrite": "Door dit te doen, wordt het overschreven.", - "reload_data": "Dit zal alle bekende data herladen van alle repositories van HACS. Dit kan even duren", - "restart_home_assistant": "Weet u zeker dat u Home Assistant opnieuw wilt starten?", - "uninstall": "Weet u zeker dat u '{item}' wilt verwijderen?", - "upgrade_all": "Hiermee worden al deze repositories geüpgraded. Zorg ervoor dat u de release-opmerkingen van allen heeft gelezen voordat u doorgaat.", - "yes": "Ja" - }, - "options": { - "step": { - "user": { - "data": { - "appdaemon": "Zet AppDaemon apps ontdekken & traceren aan", - "country": "Filter met land code.", - "debug": "Schakel debug in.", - "experimental": "Zet experimentele functies aan", - "netdaemon": "Zet NetDaemon apps ontdekken & traceren aan", - "not_in_use": "Niet in gebruik met YAML", - "release_limit": "Aantal releases om te laten zien.", - "sidepanel_icon": "Zijpaneel icoon", - "sidepanel_title": "Zijpaneel titel" - } - } - } - }, - "repository_banner": { - "config_flow": "Deze integratie ondersteunt config_flow, wat betekent dat u via uw \"Instellingen\" naar \"Integraties\" kunt gaan om het te configureren.", - "config_flow_title": "UI-configuratie ondersteund", - "integration_not_loaded": "Deze integratie wordt niet geladen in Home Assistant.", - "no_restart_required": "Geen herstart vereist", - "not_loaded": "Niet geladen", - "plugin_not_loaded": "Deze plugin wordt niet toegevoegd aan je Lovelace resources.", - "restart": "U moet Home Assistant opnieuw starten.", - "restart_pending": "Wachten op herstart" - }, - "repository": { - "add_to_lovelace": "Toevoegen aan Lovelace", - "authors": "Auteurs", - "available": "Beschikbaar", - "back_to": "Terug naar", - "changelog": "Changelog", - "downloads": "Downloads", - "flag_this": "Vlag dit", - "frontend_version": "Frontend versie", - "github_stars": "GitHub-sterren", - "goto_integrations": "Ga naar integraties", - "hide": "Verberg", - "hide_beta": "Verberg beta", - "install": "Installeer", - "installed": "Geinstalleerd", - "lovelace_copy_example": "Kopier het voorbeeld naar je klembord", - "lovelace_instruction": "Wanneer je dit gaat toevoegen aan je lovelace configuratie gebruik dit", - "lovelace_no_js_type": "Kon niet achterhalen welk type plugin dit is, controleer de repository van de plugin.", - "newest": "nieuwste", - "note_appdaemon": "je moet het nog steeds toevoegen aan je 'apps.yaml' bestand", - "note_installed": "Wanneer geïnstalleerd, staat het in", - "note_integration": "je moet het nog steeds toevoegen aan je 'configuration.yaml' bestand", - "note_plugin": "je moet het nog steeds toevoegen aan je lovelace configuratie ('ui-lovelace.yaml') of raw UI config editor.", - "open_issue": "Meld probleem", - "open_plugin": "Open plugin", - "reinstall": "Herinstalleer", - "repository": "Repository", - "restart_home_assistant": "Start Home Assistant opnieuw", - "show_beta": "Laat beta zien", - "uninstall": "Verwijder", - "update_information": "Update informatie", - "upgrade": "Update" - }, - "settings": { - "add_custom_repository": "VOEG EIGEN REPOSITORY TOE", - "adding_new_repo": "Nieuwe repository '{repo}' toevoegen", - "adding_new_repo_category": "Met categorie '{category}'.", - "bg_task_custom": "Aangepaste repositories zijn verborgen terwijl de achtergrondtaken actief zijn.", - "category": "Categorie", - "compact_mode": "Compacte modus", - "custom_repositories": "EIGEN REPOSITORIES", - "delete": "Verwijder", - "display": "Weergave", - "grid": "Rooster", - "hacs_repo": "HACS repo", - "hidden_repositories": "verborgen repositories", - "missing_category": "Je moet een categorie selecteren.", - "open_repository": "Open repository", - "reload_data": "Herlaad data", - "reload_window": "Herlaad venster", - "repository_configuration": "Repository configuratie", - "save": "Opslaan", - "table": "Tabel", - "table_view": "Tabelweergave", - "unhide": "zichtbaar maken", - "upgrade_all": "Upgrade alles" - }, - "store": { - "ascending": "oplopend", - "clear_new": "Wissen van alle nieuwe repositories", - "descending": "Aflopend", - "last_updated": "Laatste update", - "name": "Naam", - "new_repositories": "Nieuwe Repositories", - "pending_upgrades": "Upgrades in afwachting", - "placeholder_search": "Typ iets om te zoeken...", - "sort": "sorteer", - "stars": "Sterren", - "status": "Status" - }, - "time": { - "ago": "geleden", - "day": "dag", - "days": "dagen", - "hour": "uur", - "hours": "uren", - "minute": "minuut", - "minutes": "minuten", - "month": "maand", - "months": "maanden", - "one": "Eén", - "one_day_ago": "een dag geleden", - "one_hour_ago": "een uur geleden", - "one_minute_ago": "een minuut geleden", - "one_month_ago": "een maand geleden", - "one_second_ago": "een seconde geleden", - "one_year_ago": "een jaar geleden", - "second": "seconde", - "seconds": "seconden", - "x_days_ago": "{x} dagen geleden", - "x_hours_ago": "{x} uur geleden", - "x_minutes_ago": "{x} minuten geleden", - "x_months_ago": "{x} maanden geleden", - "x_seconds_ago": "{x} seconden geleden", - "x_years_ago": "{x} jaar geleden", - "year": "jaar", - "years": "jaren" - } -} \ No newline at end of file diff --git a/custom_components/hacs/.translations/nn.json b/custom_components/hacs/.translations/nn.json deleted file mode 100644 index 5c1fc0c..0000000 --- a/custom_components/hacs/.translations/nn.json +++ /dev/null @@ -1,198 +0,0 @@ -{ - "common": { - "about": "Om", - "appdaemon": "AppDaemon", - "appdaemon_apps": "AppDeamon-appar", - "background_task": "Bakgrunnsoppgåve køyrer. Denne sida kjem til å laste seg omatt når ho er ferdig.", - "check_log_file": "Sjå i loggfila di for meir detaljar.", - "continue": "Hald fram", - "disabled": "Deaktivert", - "documentation": "Dokumentasjon", - "hacs_is_disabled": "HACS er deaktivert", - "installed": "Installert", - "integration": "Integrasjon", - "integrations": "Integrasjonar", - "manage": "Handtere", - "netdaemon": "NetDaemon", - "netdaemon_apps": "NetDeamon-appar", - "plugin": "Tillegg", - "plugins": "Tillegg", - "python_script": "Pythonskript", - "python_scripts": "Pythonskript", - "repositories": "Repositories", - "settings": "innstillingar", - "theme": "Tema", - "themes": "Tema", - "version": "Versjon" - }, - "config": { - "abort": { - "single_instance_allowed": "Berre éin enkelt konfigurasjon av HACS er tillete." - }, - "error": { - "auth": "Personleg tilgangsnøkkel er ikkje korrekt." - }, - "step": { - "user": { - "data": { - "appdaemon": "Aktiver AppDeamon-appar-oppdaging og sporing", - "netdaemon": "Aktiver NetDeamon-appar-oppdaging og sporing", - "python_script": "Aktiver pythonscript-oppdaging og sporing", - "sidepanel_icon": "Sidepanelikon", - "sidepanel_title": "Sidepaneltittel", - "theme": "Aktiver tema-oppdaging og sporing", - "token": "Personleg GitHub tilgangsnøkkel" - }, - "description": "Dersom du treng hjelp med konfigurasjonen, ta ein kik her: https:\/\/hacs.xyz\/docs\/configuration\/start", - "title": "HACS (Home Assistant Community Store)" - } - }, - "title": "HACS (Home Assistant Community Store)" - }, - "confirm": { - "add_to_lovelace": "Er du sikker på at du vil legge til dette i Lovelace-ressursane dine?", - "bg_task": "Handlinga er deaktivert medan bakgrunnsoppgåveene køyrer.", - "cancel": "Avbryt", - "continue": "Er du sikker på at du vil halde fram?", - "delete": "Er du sikker på at du vil slette '{item}'?", - "delete_installed": "'{item}' er installert. Du må avinstallere det før du kan slette det.", - "exist": "{item} eksisterer allereie", - "generic": "Er du sikker?", - "home_assistant_is_restarting": "Vent... Home Assistant starter på nytt no.", - "home_assistant_version_not_correct": "Du køyrer Home Assistant-versjonen '{haversion}', men dette kodedepoet krev minimum versjon '{minversion}' for å bli installert.", - "no": "Nei", - "no_upgrades": "Ingen ventande oppgradringer", - "ok": "OK", - "overwrite": "Ved å gjere dette kjem du til å overskrive.", - "reload_data": "Dette laster inn dataa til depota HACS veit om, og dette vil ta litt tid å fullføre.", - "restart_home_assistant": "Er du sikker på at du vil starte Home Assistant på nytt?", - "uninstall": "Er du sikker på at du vil avinstallere '{item}'?", - "upgrade_all": "Dette kjem til å oppgradere alle depota. Ver sikker på at du har lest alle versjonsmerknadene før du held fram.", - "yes": "Ja" - }, - "options": { - "step": { - "user": { - "data": { - "appdaemon": "Aktiver AppDeamon-appar-oppdaging og sporing", - "country": "Filterer med landskode", - "debug": "Aktiver debug.", - "experimental": "Aktiver ekspreimentelle funksjonar", - "netdaemon": "Aktiver NetDeamon-appar-oppdaging og sporing", - "not_in_use": "Kan ikkje brukast saman med YAML", - "release_limit": "Talet på utgivingar", - "sidepanel_icon": "Sidepanelikon", - "sidepanel_title": "Sidepaneltittel" - } - } - } - }, - "repository_banner": { - "config_flow": "Denne integrasjonen støttar config_flow, som betyr at du no kan gå til integrasjonssida i brukargrensesnittet for å konfigurere den.", - "config_flow_title": "UI-konfigurasjon støtta", - "integration_not_loaded": "Integrasjonen er ikkje lasta inn i Home Assistant.", - "no_restart_required": "Ingen omstart kravd", - "not_loaded": "Ikkje lasta", - "plugin_not_loaded": "Tillegget er ikkje lagt til i Lovelace-ressursane dine.", - "restart": "Du må starte Home Assistant på nytt", - "restart_pending": "Omstart venter" - }, - "repository": { - "add_to_lovelace": "Legg til i Lovelace", - "authors": "Forfatter(e)", - "available": "Tilgjengeleg", - "back_to": "Tilbake til", - "changelog": "Endre logg", - "downloads": "Nedlastinger", - "flag_this": "Marker dette", - "frontend_version": "Frontend-versjon", - "github_stars": "GitHub-stjerner", - "goto_integrations": "Gå til integrasjonar", - "hide": "Gøym", - "hide_beta": "Gøym beta", - "install": "Installer", - "installed": "Installert", - "lovelace_copy_example": "Kopier eksempelet til utklippsbreittet ditt", - "lovelace_instruction": "Når du legg til dette i Lovelace-konfigurasjonen din, bruk dette", - "lovelace_no_js_type": "Kunne ikkje slå fast typen til dette tilegget. Sjå i repositoryet.", - "newest": "nyaste", - "note_appdaemon": "du må framleis legge dette til i \"apps.yaml\"-fila di", - "note_installed": "Når dette er installert, kjem den til å vere plassert i", - "note_integration": "du må framleis legge dette til i \"configuration.yaml\"-fila di", - "note_plugin": "du må framleis dette til i Lovelace-konfigurasjonen (\"ui-lovelace.yaml\" eller i rå-brukargrensesnittredigeraren", - "open_issue": "Opne problem", - "open_plugin": "Opne tillegg", - "reinstall": "Installer på nytt", - "repository": "Repository", - "restart_home_assistant": "Start Home Assistant på nytt", - "show_beta": "Vis beta", - "uninstall": "Avinstaller", - "update_information": "Oppdater informasjonen", - "upgrade": "Oppdater" - }, - "settings": { - "add_custom_repository": "LEGG TIL EIN ANNAN REPOSITORY", - "adding_new_repo": "Legger til ny repository '{repo}'", - "adding_new_repo_category": "Med kategori '{category}'.", - "bg_task_custom": "Custom repositories er skjult medan bakgrunnsoppgaver køyrer.", - "category": "Kategori", - "compact_mode": "Kompaktmodus", - "custom_repositories": "VANLEG REPOSITORY", - "delete": "Slett", - "display": "Vis", - "grid": "rutenett", - "hacs_repo": "HACS repo", - "hidden_repositories": "gøymde repositories", - "missing_category": "Du må velje éin kategori", - "open_repository": "Opne repository", - "reload_data": "Last om dataa", - "reload_window": "Last inn vindauget på nytt", - "repository_configuration": "Repository-konfigurasjon", - "save": "Lagre", - "table": "Tavle", - "table_view": "Tabellvisning", - "unhide": "vis", - "upgrade_all": "Oppdater alle" - }, - "store": { - "ascending": "stigande", - "clear_new": "Fjern alle nye repositories", - "descending": "synkande", - "last_updated": "Sist oppdatert", - "name": "Namn", - "new_repositories": "Ny repository", - "pending_upgrades": "Ventande oppgraderinger", - "placeholder_search": "Ver vennleg og skriv inn ei søkefrase", - "sort": "Sorter", - "stars": "Stjerner", - "status": "Status" - }, - "time": { - "ago": "sidan", - "day": "dag", - "days": "dagar", - "hour": "time", - "hours": "timar", - "minute": "minutt", - "minutes": "minutt", - "month": "månad", - "months": "månadar", - "one": "Éin", - "one_day_ago": "for éin dag sidan", - "one_hour_ago": "éin time sidan", - "one_minute_ago": "eitt minutt sidan", - "one_month_ago": "ein månad sidan", - "one_second_ago": "eitt sekund sidan", - "one_year_ago": "eitt år sidan", - "second": "sekund", - "seconds": "sekund", - "x_days_ago": "{x} dagar siden", - "x_hours_ago": "{x} timer sidan", - "x_minutes_ago": "{x} minutt sidan", - "x_months_ago": "{x} månadar sidan", - "x_seconds_ago": "{x} sekund sidan", - "x_years_ago": "{x} år sidan", - "year": "år", - "years": "år" - } -} \ No newline at end of file diff --git a/custom_components/hacs/.translations/pl.json b/custom_components/hacs/.translations/pl.json deleted file mode 100644 index b76329d..0000000 --- a/custom_components/hacs/.translations/pl.json +++ /dev/null @@ -1,198 +0,0 @@ -{ - "common": { - "about": "O", - "appdaemon": "AppDaemon", - "appdaemon_apps": "Aplikacje AppDaemon", - "background_task": "Wykonywanie zadania w tle, ta strona zostanie odświeżona, gdy zadanie zostanie ukończone.", - "check_log_file": "Sprawdź plik dziennika, aby uzyskać więcej informacji.", - "continue": "Kontynuuj", - "disabled": "Wyłączony", - "documentation": "Dokumentacja", - "hacs_is_disabled": "HACS jest wyłączony", - "installed": "zainstalowane", - "integration": "Integracja", - "integrations": "Integracje", - "manage": "zarządzaj", - "netdaemon": "NetDaemon", - "netdaemon_apps": "Aplikacje NetDaemon", - "plugin": "Wtyczka", - "plugins": "Wtyczki", - "python_script": "Skrypt Python", - "python_scripts": "Skrypty Python", - "repositories": "Repozytoria", - "settings": "ustawienia", - "theme": "Motyw", - "themes": "Motywy", - "version": "Wersja" - }, - "config": { - "abort": { - "single_instance_allowed": "Dozwolona jest tylko jedna konfiguracja HACS." - }, - "error": { - "auth": "Osobisty token dostępu jest nieprawidłowy." - }, - "step": { - "user": { - "data": { - "appdaemon": "Włącz wykrywanie i śledzenie aplikacji AppDaemon", - "netdaemon": "Włącz wykrywanie i śledzenie aplikacji NetDaemon", - "python_script": "Włącz wykrywanie i śledzenie skryptów Python", - "sidepanel_icon": "Ikona w panelu bocznym", - "sidepanel_title": "Tytuł w panelu bocznym", - "theme": "Włącz wykrywanie i śledzenie motywów", - "token": "Osobisty token dostępu GitHub" - }, - "description": "Jeśli potrzebujesz pomocy w konfiguracji, przejdź na stronę: https:\/\/hacs.xyz\/docs\/configuration\/start", - "title": "HACS (Home Assistant Community Store)" - } - }, - "title": "HACS (Home Assistant Community Store)" - }, - "confirm": { - "add_to_lovelace": "Na pewno chcesz dodać to do swoich zasobów Lovelace?", - "bg_task": "Akcja jest wyłączona podczas wykonywania zadań w tle.", - "cancel": "Anuluj", - "continue": "Na pewno chcesz kontynuować?", - "delete": "Na pewno chcesz usunąć '{item}'?", - "delete_installed": "'{item}' jest zainstalowany, musisz go odinstalować zanim będziesz mógł go usunąć.", - "exist": "{item} już istnieje", - "generic": "Jesteś pewny?", - "home_assistant_is_restarting": "Poczekaj, Home Assistant jest teraz ponownie uruchamiany.", - "home_assistant_version_not_correct": "Używasz Home Assistant'a w wersji '{haversion}', a to repozytorium wymaga wersji minimum '{minversion}'.", - "no": "Nie", - "no_upgrades": "Brak oczekujących aktualizacji", - "ok": "Ok", - "overwrite": "Spowoduje to zastąpienie istniejącej kopii.", - "reload_data": "To przeładowuje dane wszystkich repozytoriów, o których wie HACS, może to trochę potrwać.", - "restart_home_assistant": "Na pewno chcesz ponownie uruchomić Home Assistant'a?", - "uninstall": "Na pewno chcesz odinstalować '{item}'?", - "upgrade_all": "To uaktualni wszystkie te repozytoria, upewnij się, że przeczytałeś uwagi do wydania dla wszystkich z nich przed kontynuacją.", - "yes": "Tak" - }, - "options": { - "step": { - "user": { - "data": { - "appdaemon": "Włącz wykrywanie i śledzenie aplikacji AppDaemon", - "country": "Filtruj według kodu kraju", - "debug": "Włącz debugowanie.", - "experimental": "Włącz funkcje eksperymentalne", - "netdaemon": "Włącz wykrywanie i śledzenie aplikacji NetDaemon", - "not_in_use": "Nieużywany z YAML", - "release_limit": "Liczba wydań do wyświetlenia", - "sidepanel_icon": "Ikona w panelu bocznym", - "sidepanel_title": "Tytuł w panelu bocznym" - } - } - } - }, - "repository_banner": { - "config_flow": "Ta integracja obsługuje config_flow, co oznacza, że możesz teraz przejść do sekcji integracji w interfejsie użytkownika, aby ją skonfigurować.", - "config_flow_title": "Obsługiwana konfiguracja poprzez interfejs użytkownika", - "integration_not_loaded": "Ta integracja nie jest załadowana do Home Assistant'a.", - "no_restart_required": "Ponowne uruchomienie nie jest wymagane", - "not_loaded": "Nie załadowano", - "plugin_not_loaded": "Ta wtyczka nie jest dodana do zasobów Lovelace.", - "restart": "Musisz ponownie uruchomić Home Assistant'a.", - "restart_pending": "Oczekiwanie na ponowne uruchomienie" - }, - "repository": { - "add_to_lovelace": "Dodaj do Lovelace", - "authors": "Autorzy", - "available": "Dostępna", - "back_to": "Wróć do", - "changelog": "Lista zmian", - "downloads": "Ilość pobrań", - "flag_this": "Oflaguj", - "frontend_version": "Wersja frontendu", - "github_stars": "Gwiazdki GitHub", - "goto_integrations": "Przejdź do integracji", - "hide": "Ukryj", - "hide_beta": "Ukryj wydania beta", - "install": "Zainstaluj", - "installed": "Zainstalowano", - "lovelace_copy_example": "Skopiuj przykład do schowka", - "lovelace_instruction": "Interfejs użytkownika użyje tej wtyczki po dodaniu konfiguracji", - "lovelace_no_js_type": "Nie można określić typu tej wtyczki, sprawdź repozytorium.", - "newest": "najnowsza", - "note_appdaemon": "musisz jeszcze dodać aplikację do pliku 'apps.yaml'", - "note_installed": "Po zainstalowaniu dodatek będzie znajdować się w", - "note_integration": "musisz jeszcze dodać integrację do pliku 'configuration.yaml'", - "note_plugin": "musisz jeszcze dodać wtyczkę do konfiguracji interfejsu użytkownika (plik 'ui-lovelace.yaml' lub edytor interfejsu użytkownika)", - "open_issue": "Powiadom o problemie", - "open_plugin": "Otwórz dodatek", - "reinstall": "Przeinstaluj", - "repository": "Repozytorium", - "restart_home_assistant": "Uruchom ponownie Home Assistant'a", - "show_beta": "Wyświetl wydania beta", - "uninstall": "Odinstaluj", - "update_information": "Informacje o aktualizacji", - "upgrade": "Uaktualnij" - }, - "settings": { - "add_custom_repository": "DODAJ REPOZYTORIUM NIESTANDARDOWE", - "adding_new_repo": "Dodawanie nowego repozytorium '{repo}'", - "adding_new_repo_category": "Z kategorią '{category}'.", - "bg_task_custom": "Niestandardowe repozytoria są ukryte podczas wykonywania zadań w tle.", - "category": "Kategoria", - "compact_mode": "Tryb kompaktowy", - "custom_repositories": "REPOZYTORIA NIESTANDARDOWE", - "delete": "Usuń", - "display": "Sposób wyświetlania", - "grid": "Siatka", - "hacs_repo": "Repozytorium HACS", - "hidden_repositories": "ukryte repozytoria", - "missing_category": "Musisz wybrać kategorię", - "open_repository": "Otwórz repozytorium", - "reload_data": "Wczytaj ponownie dane", - "reload_window": "Załaduj ponownie okno", - "repository_configuration": "Konfiguracja repozytorium", - "save": "Zapisz", - "table": "tabela", - "table_view": "Widok tabeli", - "unhide": "pokaż", - "upgrade_all": "Uaktualnij wszystkie" - }, - "store": { - "ascending": "rosnąco", - "clear_new": "Wyczyść wszystkie nowe repozytoria", - "descending": "malejąco", - "last_updated": "Ostatnia aktualizacja", - "name": "Nazwa", - "new_repositories": "Nowe repozytoria", - "pending_upgrades": "Oczekujące aktualizacje", - "placeholder_search": "Wprowadź wyszukiwane hasło...", - "sort": "sortowanie", - "stars": "Gwiazdki", - "status": "Status" - }, - "time": { - "ago": "temu", - "day": "dzień", - "days": "dni", - "hour": "godzina", - "hours": "godziny", - "minute": "minuta", - "minutes": "minuty", - "month": "miesiąc", - "months": "miesięcy", - "one": "Jeden", - "one_day_ago": "jeden dzień temu", - "one_hour_ago": "jedna godzina temu", - "one_minute_ago": "jedna minuta temu", - "one_month_ago": "jeden miesiąc temu", - "one_second_ago": "jedna sekunda temu", - "one_year_ago": "jeden rok temu", - "second": "sekunda", - "seconds": "sekundy", - "x_days_ago": "{x} dni temu", - "x_hours_ago": "{x} godzin(-y) temu", - "x_minutes_ago": "{x} minut(-y) temu", - "x_months_ago": "{x} miesi(-ące\/-ęcy) temu", - "x_seconds_ago": "{x} sekund(-y) temu", - "x_years_ago": "{x} lat(-a) temu", - "year": "rok", - "years": "lata" - } -} \ No newline at end of file diff --git a/custom_components/hacs/.translations/pt-BR.json b/custom_components/hacs/.translations/pt-BR.json deleted file mode 100644 index e7089af..0000000 --- a/custom_components/hacs/.translations/pt-BR.json +++ /dev/null @@ -1,182 +0,0 @@ -{ - "common": { - "about": "Sobre", - "appdaemon": "AppDaemon", - "appdaemon_apps": "AppDaemon Apps", - "background_task": "Tarefa em segundo plano em execução, esta página será recarregada quando terminar.", - "continue": "Continuar", - "disabled": "Desativado", - "documentation": "Documentação", - "hacs_is_disabled": "HACS está desativado", - "installed": "instalado", - "integration": "Integração", - "integrations": "Integrações", - "manage": "gerenciar", - "netdaemon": "NetDaemon", - "netdaemon_apps": "NetDaemon Apps", - "plugin": "Plugin", - "plugins": "Plugins", - "python_script": "Python Script", - "python_scripts": "Python Scripts", - "repositories": "Repositórios", - "settings": "configurações", - "theme": "Tema", - "themes": "Temas", - "version": "Versão" - }, - "config": { - "abort": { - "single_instance_allowed": "Apenas uma configuração do HACS é permitida." - }, - "error": { - "auth": "Token de acesso pessoal incorreto." - }, - "step": { - "user": { - "data": { - "appdaemon": "Habilitar AppDaemon apps descoberta & rastreamento", - "netdaemon": "Habilitar NetDaemon apps descoberta & rastreamento", - "python_script": "Habilitar python_scripts descoberta & rastreamento", - "sidepanel_icon": "Icone do painel lateral", - "sidepanel_title": "Titulo do painel lateral", - "theme": "Habilitar temas descoberta & rastreamento", - "token": "GitHub Token de acesso pessoal" - }, - "description": "Se você preciar de ajuda com a configuração olhe aqui: https:\/\/hacs.xyz\/docs\/configuration\/start", - "title": "HACS (Home Assistant Community Store)" - } - }, - "title": "HACS (Home Assistant Community Store)" - }, - "confirm": { - "cancel": "Cancelar", - "continue": "Tem certeza que quer continuar?", - "delete": "Tem certeza de que deseja excluir '{item}'?", - "exist": "{item} já existe", - "home_assistant_is_restarting": "Espere, o Home Assistant está agora a reiniciar.", - "no": "Não", - "ok": "OK", - "restart_home_assistant": "Tem certeza de que deseja reiniciar o Home Assistant?", - "uninstall": "Tem certeza de que deseja desinstalar '{item}'?", - "yes": "Sim" - }, - "options": { - "step": { - "user": { - "data": { - "appdaemon": "Habilitar AppDaemon apps descoberta & rastreamento", - "country": "Filtro pelo código do país.", - "experimental": "Ativar recursos experimentais", - "netdaemon": "Habilitar NetDaemon apps descoberta & rastreamento", - "not_in_use": "Não está em uso com o YAML", - "release_limit": "Número de lançamentos a serem exibidos.", - "sidepanel_icon": "Icone do painel lateral", - "sidepanel_title": "Titulo do painel lateral" - } - } - } - }, - "repository_banner": { - "integration_not_loaded": "Esta integração não é carregada no Home Assistant.", - "no_restart_required": "Não é necessário reiniciar", - "not_loaded": "Não carregado", - "restart": "Você precisa reiniciar o Home Assistant.", - "restart_pending": "Reiniciar pendente" - }, - "repository": { - "add_to_lovelace": "Adicionar a Lovelace", - "authors": "Autores", - "available": "Disponível", - "back_to": "Voltar para", - "changelog": "Changelog", - "downloads": "Downloads", - "flag_this": "Sinalizar isso", - "frontend_version": "Versão Frontend", - "github_stars": "Estrelas de GitHub", - "goto_integrations": "Ir para integrações", - "hide": "Esconder", - "hide_beta": "Esconder beta", - "install": "Instalar", - "installed": "Instalado", - "lovelace_copy_example": "Copie este exemplo para seu clipboard", - "lovelace_instruction": "Quando você adicionar isso à sua configuração do lovelace, use este", - "lovelace_no_js_type": "Não foi possível determinar o tipo deste plug-in, verifique o repositório.", - "newest": "O mais novo", - "note_appdaemon": "Você ainda precisa adicioná-lo ao seu arquivo 'apps.yaml'", - "note_installed": "Quando instalado, ele estará localizado em", - "note_integration": "Você ainda precisa adicioná-lo ao seu arquivo 'configuration.yaml'", - "note_plugin": "você ainda precisará adicioná-lo à sua configuração do lovelace ('ui-lovelace.yaml' ou o editor de configuração da interface do usuário)", - "open_issue": "Open issue", - "open_plugin": "Plugin aberto", - "reinstall": "Reinstalar", - "repository": "Repositório", - "restart_home_assistant": "Reiniciar Home Assistant", - "show_beta": "Mostrar beta", - "uninstall": "Desinstalar", - "update_information": "Atualizar informação", - "upgrade": "Melhorar" - }, - "settings": { - "add_custom_repository": "ADICIONAR REPOSITÓRIO PERSONALIZADO", - "adding_new_repo": "Adicionando novo repositório '{repo}'", - "adding_new_repo_category": "Com a categoria '{category}'.", - "category": "Categoria", - "compact_mode": "Modo compacto", - "custom_repositories": "REPOSITÓRIOS PERSONALIZADOS", - "delete": "Deletar", - "display": "Display", - "grid": "Grade", - "hacs_repo": "HACS repo", - "hidden_repositories": "repositórios ocultos", - "missing_category": "Você precisa selecionar uma categoria", - "open_repository": "Repositório aberto", - "reload_data": "Recarregar dados", - "reload_window": "Recarregar janela", - "repository_configuration": "Configuração do Repositório", - "save": "Salvar", - "table": "Tabela", - "table_view": "Vista de mesa", - "unhide": "reexibir", - "upgrade_all": "Atualizar tudo" - }, - "store": { - "ascending": "ascendente", - "clear_new": "Limpar todos os novos repositórios", - "descending": "descendente", - "last_updated": "Última atualização", - "name": "Nome", - "new_repositories": "Novos Repositórios", - "pending_upgrades": "Atualizações pendentes", - "placeholder_search": "Por favor insira um termo de pesquisa...", - "stars": "Estrelas", - "status": "Status" - }, - "time": { - "ago": "atrás", - "day": "dia", - "days": "dias", - "hour": "hora", - "hours": "horas", - "minute": "minuto", - "minutes": "minutos", - "month": "mês", - "months": "meses", - "one": "Um", - "one_day_ago": "um dia atrás", - "one_hour_ago": "uma hora atrás", - "one_minute_ago": "um minuto atrás", - "one_month_ago": "um mês atrás", - "one_second_ago": "um segundo atrás", - "one_year_ago": "um ano atrás", - "second": "segundo", - "seconds": "segundos", - "x_days_ago": "{x} dias atrás", - "x_hours_ago": "{x} horas atrás", - "x_minutes_ago": "{x} minutos atrás", - "x_months_ago": "{x} meses atrás", - "x_seconds_ago": "{x} segundos atrás", - "x_years_ago": "{x} anos atrás", - "year": "ano", - "years": "anos" - } -} \ No newline at end of file diff --git a/custom_components/hacs/.translations/ro.json b/custom_components/hacs/.translations/ro.json deleted file mode 100644 index d6884aa..0000000 --- a/custom_components/hacs/.translations/ro.json +++ /dev/null @@ -1,176 +0,0 @@ -{ - "common": { - "about": "Despre", - "appdaemon": "AppDaemon", - "appdaemon_apps": "Aplicații AppDaemon", - "background_task": "Activitatea de fundal se execută, această pagină se va reîncărca atunci când este gata.", - "continue": "Continua", - "disabled": "Dezactivat", - "documentation": "Documentație", - "hacs_is_disabled": "HACS este dezactivat", - "installed": "instalat", - "integration": "Integrare", - "integrations": "Integrări", - "netdaemon": "NetDaemon", - "netdaemon_apps": "Aplicații NetDaemon", - "plugin": "Plugin", - "plugins": "Plugin-uri", - "python_script": "Script Python", - "python_scripts": "Scripturi Python", - "repositories": "Depozite", - "settings": "setări", - "theme": "Temă", - "themes": "Teme", - "version": "Versiune" - }, - "config": { - "abort": { - "single_instance_allowed": "Doar o singură configurație pentru HACS este permisă." - }, - "error": { - "auth": "Token-ul de acces personal nu este corect." - }, - "step": { - "user": { - "data": { - "appdaemon": "Activați descoperirea și urmărirea aplicațiilor AppDaemon", - "netdaemon": "Activați descoperirea și urmărirea aplicațiilor NetDaemon", - "python_script": "Activați descoperirea și urmărirea python_scripts", - "sidepanel_icon": "Pictogramă Panou lateral", - "sidepanel_title": "Titlu panou lateral", - "theme": "Activați descoperirea și urmărirea temelor", - "token": "Token de acces personal GitHub" - }, - "description": "Dacă aveți nevoie de ajutor pentru configurare, uitați-vă aici: https:\/\/hacs.xyz\/docs\/configuration\/start", - "title": "HACS (Home Assistant Community Store)" - } - }, - "title": "HACS (Home Assistant Community Store)" - }, - "confirm": { - "bg_task": "Acțiunea este dezactivată în timp ce activitățile de fundal se execută.", - "cancel": "Anulare", - "delete": "Sigur doriți să ștergeți '{item}'?", - "exist": "{item} există deja", - "no": "Nu", - "ok": "OK", - "uninstall": "Sigur doriți să dezinstalați '{item}'?", - "yes": "Da" - }, - "options": { - "step": { - "user": { - "data": { - "appdaemon": "Activați descoperirea și urmărirea aplicațiilor AppDaemon", - "country": "Filtrează cu codul țării.", - "experimental": "Activați funcțiile experimentale", - "netdaemon": "Activați descoperirea și urmărirea aplicațiilor NetDaemon", - "not_in_use": "Nu este utilizat cu YAML", - "release_limit": "Număr de versiuni afișate.", - "sidepanel_icon": "Pictogramă Panou lateral", - "sidepanel_title": "Titlu panou lateral" - } - } - } - }, - "repository_banner": { - "integration_not_loaded": "Această integrare nu este încărcată în Home Assistant.", - "no_restart_required": "Nu este necesară repornirea", - "restart": "Trebuie să reporniți Home Assistant.", - "restart_pending": "Reporniți în așteptare" - }, - "repository": { - "add_to_lovelace": "Adăugați la Lovelace", - "authors": "Autori", - "available": "Disponibil", - "back_to": "Înapoi la", - "changelog": "Jurnal modificari", - "downloads": "Descărcări", - "flag_this": "Semnalizează", - "frontend_version": "Versiune frontend", - "github_stars": "Stele GitHub", - "hide": "Ascunde", - "hide_beta": "Ascundere beta", - "install": "Instalează", - "installed": "Instalat", - "lovelace_copy_example": "Copiați exemplul în clipboard", - "lovelace_instruction": "Când adăugați acest lucru la configurația lovelace, folosiți acest", - "lovelace_no_js_type": "Nu s-a putut determina tipul acestui plugin, verificați \"repository\".", - "newest": "cele mai noi", - "note_appdaemon": "mai trebuie să o adăugați in fișierul „apps.yaml”", - "note_installed": "Când este instalat, acesta va fi localizat în", - "note_integration": "mai trebuie să o adăugați in fișierul „configuration.yaml”", - "note_plugin": "mai trebuie să o adăugați la configurația lovelace ('ui-lovelace.yaml' sau in editorul UI)", - "open_issue": "Deschidere problemă", - "open_plugin": "Deschide plugin", - "reinstall": "Reinstalare", - "repository": "Depozit", - "restart_home_assistant": "Reporniți Home Assistant", - "show_beta": "Afișare beta", - "uninstall": "Dezinstalare", - "update_information": "Actualizare informație", - "upgrade": "Actualizare" - }, - "settings": { - "add_custom_repository": "ADĂUGARE DEPOZIT PERSONALIZAT", - "adding_new_repo": "Adăugarea unui depozit nou '{repo}'", - "adding_new_repo_category": "Cu categoria '{categoria}'.", - "category": "Categorie", - "compact_mode": "Modul compact", - "custom_repositories": "DEPOZITE PERSONALIZATE", - "delete": "Șterge", - "display": "Afişeaza", - "grid": "Grilă", - "hacs_repo": "HACS repo", - "hidden_repositories": "depozite ascunse", - "missing_category": "Trebuie să selectați o categorie", - "open_repository": "Deschideți depozitul", - "reload_data": "Reîncărcați datele", - "reload_window": "Reîncărcați fereastra", - "repository_configuration": "Configurația depozitului", - "save": "Salveaza", - "table": "Tabel", - "table_view": "Vizualizare tabel", - "unhide": "Unhide", - "upgrade_all": "Actualizați toate" - }, - "store": { - "ascending": "ascendent", - "descending": "descendent", - "last_updated": "Ultima actualizare", - "name": "Nume", - "new_repositories": "Noi depozite", - "placeholder_search": "Vă rugăm să introduceți un termen de căutare ...", - "sort": "fel", - "stars": "Stele", - "status": "Starea" - }, - "time": { - "ago": "în urmă", - "day": "zi", - "days": "zi", - "hour": "oră", - "hours": "ore", - "minute": "minut", - "minutes": "minute", - "month": "lună", - "months": "luni", - "one": "Unu", - "one_day_ago": "acum o zi", - "one_hour_ago": "acum o oră", - "one_minute_ago": "acum un minut", - "one_month_ago": "acum o luna", - "one_second_ago": "acum o secunda", - "one_year_ago": "acum un an", - "second": "al doilea", - "seconds": "secunde", - "x_days_ago": "{x} zile în urmă", - "x_hours_ago": "{x} ore în urmă", - "x_minutes_ago": "{x} minute în urmă", - "x_months_ago": "{x} luni în urmă", - "x_seconds_ago": "{x} secunde în urmă", - "x_years_ago": "{x} ani în urmă", - "year": "an", - "years": "ani" - } -} \ No newline at end of file diff --git a/custom_components/hacs/.translations/ru.json b/custom_components/hacs/.translations/ru.json deleted file mode 100644 index 7cde0bf..0000000 --- a/custom_components/hacs/.translations/ru.json +++ /dev/null @@ -1,193 +0,0 @@ -{ - "common": { - "about": "О проекте", - "appdaemon": "AppDaemon", - "appdaemon_apps": "Приложения AppDaemon", - "background_task": "Выполняется фоновая задача, страница перезагрузится по готовности.", - "check_log_file": "Проверьте логи для получения более подробной информации.", - "continue": "Продолжить", - "disabled": "Отключено", - "documentation": "Документация", - "hacs_is_disabled": "HACS отключен", - "installed": "установлено", - "integration": "Интеграция", - "integrations": "Интеграции", - "manage": "управлять", - "netdaemon": "NetDaemon", - "netdaemon_apps": "Приложения NetDaemon", - "plugin": "Плагин", - "plugins": "Плагины", - "python_script": "Скрипт Python", - "python_scripts": "Скрипты Python", - "repositories": "Репозитории", - "settings": "настройки", - "theme": "Тема", - "themes": "Темы", - "version": "Версия" - }, - "config": { - "abort": { - "single_instance_allowed": "Разрешена только одна настройка HACS." - }, - "error": { - "auth": "Неверный токен персонального доступа." - }, - "step": { - "user": { - "data": { - "appdaemon": "Включить поиск и отслеживание приложений AppDaemon", - "netdaemon": "Включить поиск и отслеживание приложений NetDaemon", - "python_script": "Включить поиск и отслеживание скриптов Python", - "sidepanel_icon": "Иконка в боковом меню", - "sidepanel_title": "Название в боковом меню", - "theme": "Включить поиск и отслеживание тем", - "token": "Персональный токен доступа GitHub" - }, - "description": "Если вам нужна помощь с настройкой, посмотрите: https:\/\/hacs.xyz\/docs\/configuration\/start", - "title": "HACS (Home Assistant Community Store)" - } - }, - "title": "HACS (Home Assistant Community Store)" - }, - "confirm": { - "add_to_lovelace": "Вы уверены, что хотите добавить это в ресурсы Lovelace?", - "bg_task": "Действие отключено во время выполнения фоновых задач.", - "cancel": "Отмена", - "continue": "Вы уверены, что хотите продолжить?", - "delete": "Вы уверены, что хотите удалить '{item}'?", - "delete_installed": "'{item}' установлен, вам нужно нажать 'Удалить', чтобы удалить его.", - "exist": "{item} уже существует.", - "generic": "Вы уверены?", - "no": "Нет", - "no_upgrades": "Нет обновлений", - "ok": "ОК", - "overwrite": "После подтверждения файлы будут перезаписаны.", - "reload_data": "Выполняется перезагрузка данных всех репозиториев в HACS, это займет некоторое время.", - "restart_home_assistant": "Вы уверены, что хотите перезапустить Home Assistant?", - "uninstall": "Вы уверены, что хотите удалить '{item}'?", - "yes": "Да" - }, - "options": { - "step": { - "user": { - "data": { - "appdaemon": "Включить поиск и отслеживание приложений AppDaemon", - "country": "Фильтр по стране.", - "debug": "Включить отладку.", - "experimental": "Вкл. экспериментальные функции", - "netdaemon": "Включить поиск и отслеживание приложений NetDaemon", - "not_in_use": "Не используется с YAML", - "release_limit": "Число доступных версий.", - "sidepanel_icon": "Иконка в боковом меню", - "sidepanel_title": "Название в боковом меню" - } - } - } - }, - "repository_banner": { - "integration_not_loaded": "Эта интеграция не загружена в Home Assistant.", - "no_restart_required": "Перезагрузка не требуется", - "not_loaded": "Не загружено", - "plugin_not_loaded": "Этот плагин не добавлен к ресурсам Lovelace.", - "restart": "Вам нужно перезапустить Home Assistant.", - "restart_pending": "Ожидается перезапуск" - }, - "repository": { - "add_to_lovelace": "Добавить в Lovelace", - "authors": "Авторы", - "available": "Доступно", - "back_to": "Назад к", - "changelog": "Изменения", - "downloads": "Загрузки", - "flag_this": "Пожаловаться", - "frontend_version": "Версия", - "github_stars": "Звезды GitHub", - "goto_integrations": "Перейти к интеграции", - "hide": "Скрыть", - "hide_beta": "Скрыть бета", - "install": "Установить", - "installed": "Установлено", - "lovelace_copy_example": "Скопируйте пример в буфер обмена", - "lovelace_instruction": "Для добавления в конфигурацию Lovelace, используйте", - "lovelace_no_js_type": "Не удалось определить тип этого плагина, проверьте репозиторий.", - "newest": "новейшая", - "note_appdaemon": "вам всё ещё нужно добавить код для настройки приложения в файл 'apps.yaml'", - "note_installed": "После установки, файлы будут расположены в", - "note_integration": "вам всё ещё нужно добавить код для настройки интеграции в файл 'configuration.yaml'", - "note_plugin": "вам всё ещё нужно добавить код для настройки плагина в конфигурацию Lovelace ('ui-lovelace.yaml')", - "open_issue": "Сообщить о проблеме", - "open_plugin": "Открыть плагин", - "reinstall": "Переустановить", - "repository": "Репозиторий", - "restart_home_assistant": "Перезагрузка Home Assistant", - "show_beta": "Показать бета", - "uninstall": "Удалить", - "update_information": "Обновить информацию", - "upgrade": "Обновить" - }, - "settings": { - "add_custom_repository": "ДОБАВИТЬ СВОЙ РЕПОЗИТОРИЙ", - "adding_new_repo": "Добавление нового репозитория '{repo}'", - "adding_new_repo_category": "С категорией '{category}'.", - "bg_task_custom": "Свои репозитории скрыты во время выполнения фоновых задач.", - "category": "Категория", - "compact_mode": "Компактный режим", - "custom_repositories": "СВОИ РЕПОЗИТОРИИ", - "delete": "Удалить", - "display": "Вид", - "grid": "Сетка", - "hacs_repo": "Репозиторий HACS", - "hidden_repositories": "Скрытые репозитории", - "missing_category": "Вы должны выбрать категорию", - "open_repository": "Открыть репозиторий", - "reload_data": "Перезагрузить", - "reload_window": "Перезагрузить окно", - "repository_configuration": "Конфигурация репозитория", - "save": "Сохранить", - "table": "Таблица", - "table_view": "Таблица", - "unhide": "Показать", - "upgrade_all": "Обновить всё" - }, - "store": { - "ascending": "по возрастанию", - "clear_new": "Очистить все новые репозитории", - "descending": "по убыванию", - "last_updated": "Последнее обновление", - "name": "Название", - "new_repositories": "Новые репозитории", - "pending_upgrades": "Ожидается обновление", - "placeholder_search": "Пожалуйста, введите условие для поиска...", - "sort": "Сортировка", - "stars": "Звезды", - "status": "Статус" - }, - "time": { - "ago": "назад", - "day": "день", - "days": "дней", - "hour": "час", - "hours": "часов", - "minute": "минута", - "minutes": "минут", - "month": "месяц", - "months": "месяца", - "one": "Одна", - "one_day_ago": "один день назад", - "one_hour_ago": "час назад", - "one_minute_ago": "минуту назад", - "one_month_ago": "месяц назад", - "one_second_ago": "одну секунду назад", - "one_year_ago": "один год назад", - "second": "секунда", - "seconds": "секунд", - "x_days_ago": "{x} дней назад", - "x_hours_ago": "{x} часов назад", - "x_minutes_ago": "{x} минут назад", - "x_months_ago": "{x} месяцев назад", - "x_seconds_ago": "{x} секунд назад", - "x_years_ago": "{x} лет назад", - "year": "год", - "years": "лет" - } -} \ No newline at end of file diff --git a/custom_components/hacs/.translations/sl.json b/custom_components/hacs/.translations/sl.json deleted file mode 100644 index ada106e..0000000 --- a/custom_components/hacs/.translations/sl.json +++ /dev/null @@ -1,198 +0,0 @@ -{ - "common": { - "about": "O tem", - "appdaemon": "AppDaemon", - "appdaemon_apps": "AppDaemon Aplikacije", - "background_task": "V ozadju se izvaja naloga, ko se konča, se bo stran osvežila.", - "check_log_file": "Za več podrobnosti preverite datoteko dnevnika.", - "continue": "Nadaljuj", - "disabled": "Onemogočeno", - "documentation": "Dokumentacija", - "hacs_is_disabled": "HACS je onemogočen", - "installed": "Nameščeno", - "integration": "Integracija", - "integrations": "Integracije", - "manage": "upravljanje", - "netdaemon": "NetDaemon", - "netdaemon_apps": "NetDaemon Aplikacije", - "plugin": "vtičnik", - "plugins": "Vtičniki", - "python_script": "Python skripta", - "python_scripts": "Python skripte", - "repositories": "Repozitoriji", - "settings": "nastavitve", - "theme": "Tema", - "themes": "Teme", - "version": "Različica" - }, - "config": { - "abort": { - "single_instance_allowed": "Dovoljena je samo ena konfiguracija HACS." - }, - "error": { - "auth": "Osebni dostopni žeton ni pravilen." - }, - "step": { - "user": { - "data": { - "appdaemon": "Omogoči odkrivanje in sledenje aplikacij AppDaemon", - "netdaemon": "Omogoči odkrivanje in sledenje aplikacij NetDaemon", - "python_script": "Omogoči odkrivanje in sledenje python_scripts", - "sidepanel_icon": "Ikona stranske plošče", - "sidepanel_title": "Naslov stranske plošče", - "theme": "Omogoči odkrivanje in sledenje tem", - "token": "GitHub žeton za osebni dostop" - }, - "description": "Če potrebujete pomoč pri konfiguraciji, poglejte tukaj: https:\/\/hacs.xyz\/docs\/configuration\/start", - "title": "HACS (Home Assistant Community Store)" - } - }, - "title": "HACS (Home Assistant Community Store)" - }, - "confirm": { - "add_to_lovelace": "Ali si prepričan, da želiš to dodati med svoje vire Lovelace?", - "bg_task": "Dejanje je onemogočeno, medtem ko se izvajajo opravila v ozadju.", - "cancel": "Prekliči", - "continue": "Ali ste prepričani, da želite nadaljevati?", - "delete": "Ali ste prepričani, da želite izbrisati '{item}'?", - "delete_installed": "'{item}' je nameščen, pred odstranitvijo ga morate odstraniti.", - "exist": "{item} že obstaja", - "generic": "Ali si prepričan?", - "home_assistant_is_restarting": "Počakaj, Home Assistant se zdaj znova zaganja.", - "home_assistant_version_not_correct": "Uporabljate Home Assistant verzije '{haversion}', vendar to skladišče zahteva nameščeno najmanj različico '{minversion}'.", - "no": "Ne", - "no_upgrades": "Ni nadgradenj", - "ok": "V redu", - "overwrite": "Če to storite, bo to prepisano.", - "reload_data": "Ponovno se naložijo podatki vseh shramb HA, to bo trajalo nekaj časa.", - "restart_home_assistant": "Ali ste prepričani, da želite znova zagnati Home Assistant?", - "uninstall": "Ali ste prepričani, da želite odstraniti '{item}'?", - "upgrade_all": "To bo nadgradil vse te repozitorije, preden nadaljujete poskrbite, da ste prebrali vse opombe ob izdaji.", - "yes": "Da" - }, - "options": { - "step": { - "user": { - "data": { - "appdaemon": "Omogoči odkrivanje in sledenje aplikacij AppDaemon", - "country": "Filtrirajte s kodo države.", - "debug": "Omogoči odpravljanje napak.", - "experimental": "Omogočite poskusne funkcije", - "netdaemon": "Omogoči odkrivanje in sledenje aplikacij NetDaemon", - "not_in_use": "Ni v uporabi z YAML", - "release_limit": "Število izdaj, ki jih želite prikazati.", - "sidepanel_icon": "Ikona stranske plošče", - "sidepanel_title": "Naslov stranske plošče" - } - } - } - }, - "repository_banner": { - "config_flow": "Ta integracija podpira config_flow, kar pomeni, da lahko zdaj greste na odsek integracije vašega uporabniškega vmesnika, da ga konfigurirate.", - "config_flow_title": "Konfiguracija uporabniškega vmesnika je podprta", - "integration_not_loaded": "Ta integracija ni naložena v programu Home Assistant.", - "no_restart_required": "Ponovni zagon ni potreben", - "not_loaded": "Ni naloženo", - "plugin_not_loaded": "Ta vtičnik ni dodan vašim virom Lovelace.", - "restart": "Znova morate zagnati Home Assistant.", - "restart_pending": "Vnovični zagon v čakanju" - }, - "repository": { - "add_to_lovelace": "Dodaj v Lovelace", - "authors": "Avtorji", - "available": "Na voljo", - "back_to": "Nazaj na", - "changelog": "Dnevnik sprememb", - "downloads": "Prenosi", - "flag_this": "Označite to", - "frontend_version": "Frontend različica", - "github_stars": "GitHub zvezde", - "goto_integrations": "Pojdite na integracije", - "hide": "Skrij", - "hide_beta": "Skrij različico beta", - "install": "Namestite", - "installed": "Nameščeno", - "lovelace_copy_example": "Kopirajte primer v odložišče", - "lovelace_instruction": "Ko ga boste dodajali v svojo lovelace konfiguracijo uporabite to:", - "lovelace_no_js_type": "Ni bilo mogoče določiti vrsto tega vtičnika, preverite repozitorij.", - "newest": "najnovejše", - "note_appdaemon": "Še vedno ga morate dodati v svojo 'apps.yaml' datoteko", - "note_installed": "Ko bo nameščen, se bo nahajal v", - "note_integration": "Še vedno ga morate dodati v svojo 'configuration.yaml' datoteko", - "note_plugin": "vendar ga še vedno morate dodati v svojo lovelace konfiguracijo ('ui-lovelace.yaml' ali \"raw\" UI config urejevalnik)", - "open_issue": "Odprite težavo", - "open_plugin": "Odprite vtičnik", - "reinstall": "Znova namestite", - "repository": "Repozitorij", - "restart_home_assistant": "Znova zaženite Home Assistant", - "show_beta": "Pokaži različico beta", - "uninstall": "Odstranite", - "update_information": "Posodobite podatke", - "upgrade": "Nadgradnja" - }, - "settings": { - "add_custom_repository": "DODAJTE SVOJ REPOZITORIJ", - "adding_new_repo": "Dodajanje novega repozitorija '{repo}'", - "adding_new_repo_category": "S kategorijo '{category}'.", - "bg_task_custom": "Med izvajanjem nalog v ozadju so repozitoriji po meri skriti.", - "category": "Kategorija", - "compact_mode": "Kompaktni način", - "custom_repositories": "VAŠI REPOZITORIJI", - "delete": "Izbriši", - "display": "Prikaz", - "grid": "Mreža", - "hacs_repo": "HACS repo", - "hidden_repositories": "skriti repozitoriji", - "missing_category": "Izbrati moraš kategorijo", - "open_repository": "Odprite skladišče", - "reload_data": "Ponovno naloži podatke", - "reload_window": "Ponovno naloži okno", - "repository_configuration": "Konfiguracija skladišč", - "save": "Shranite", - "table": "Tabela", - "table_view": "Pogled tabele", - "unhide": "Razkrij", - "upgrade_all": "Nadgradite vse" - }, - "store": { - "ascending": "naraščajoče", - "clear_new": "Počisti vse nove repozitorije", - "descending": "padajoče", - "last_updated": "Nazadnje posodobljeno", - "name": "Ime", - "new_repositories": "Novi repozitoriji", - "pending_upgrades": "Nadgradnje na čakanju", - "placeholder_search": "Prosim vnesite iskalni izraz ...", - "sort": "razvrsti", - "stars": "Zvezd", - "status": "Stanje" - }, - "time": { - "ago": "nazaj", - "day": "dan", - "days": "Dni", - "hour": "ura", - "hours": "Ur", - "minute": "minuta", - "minutes": "minut", - "month": "mesec", - "months": "mesecev", - "one": "Eno", - "one_day_ago": "pred enim dnevom", - "one_hour_ago": "pred eno uro", - "one_minute_ago": "pred eno minuto", - "one_month_ago": "pred enim mesecem", - "one_second_ago": "pred sekundo", - "one_year_ago": "pred enim letom", - "second": "drugič", - "seconds": "sekund", - "x_days_ago": "{x} dni nazaj", - "x_hours_ago": "{x} ur nazaj", - "x_minutes_ago": "{x} minut nazaj", - "x_months_ago": "{x} mesecev nazaj", - "x_seconds_ago": "{x} sekund nazaj", - "x_years_ago": "{x} let nazaj", - "year": "leto", - "years": "Let" - } -} \ No newline at end of file diff --git a/custom_components/hacs/.translations/sv.json b/custom_components/hacs/.translations/sv.json deleted file mode 100644 index e08e9a7..0000000 --- a/custom_components/hacs/.translations/sv.json +++ /dev/null @@ -1,188 +0,0 @@ -{ - "common": { - "about": "Om", - "appdaemon": "AppDaemon", - "appdaemon_apps": "Appdaemon Applikationer", - "background_task": "Bakgrundsjobb körs, denna sida kommer att laddas igen när det är klart.", - "continue": "Fortsätta", - "disabled": "Inaktiverad", - "documentation": "Dokumentation", - "hacs_is_disabled": "HACS är inaktiverat", - "installed": "installerad", - "integration": "Integration", - "integrations": "Integrationer", - "netdaemon": "NetDaemon", - "netdaemon_apps": "NetDaemon Applikationer", - "plugin": "Plugin", - "plugins": "Plugins", - "python_script": "Python skript", - "python_scripts": "Python skript", - "repositories": "Repositories", - "settings": "inställningar", - "theme": "Tema", - "themes": "Teman", - "version": "Version" - }, - "config": { - "abort": { - "single_instance_allowed": "Endast en konfiguration kan användas i HACS." - }, - "error": { - "auth": "Personal Access Token är inte korrekt." - }, - "step": { - "user": { - "data": { - "appdaemon": "Upptäck och följ Appdaemon applikationer", - "netdaemon": "Upptäck och följ NetDaemon applikationer", - "python_script": "Upptäck och följ python_scripts", - "sidepanel_icon": "Ikon för sidpanel", - "sidepanel_title": "Rubrik för sidpanel", - "theme": "Upptäck och följ teman", - "token": "GitHub Personal Access Token" - }, - "description": "Om du behöver hjälp med konfigurationen, se här: https:\/\/hacs.xyz\/docs\/configuration\/start", - "title": "HACS (Home Assistant Community Store)" - } - }, - "title": "HACS (Home Assistant Community Store)" - }, - "confirm": { - "add_to_lovelace": "Är du säker på att du vill lägga till detta till dina Lovelace-resurser?", - "bg_task": "Åtgärden är inaktiverad medan aktiviteter i bakgrunden körs", - "cancel": "Avbryt", - "continue": "Är du säker på att du vill fortsätta?", - "delete": "Är du säker på att du vill ta bort '{item}'?", - "delete_installed": "'{item}' är installerat, du måste avinstallera det innan du kan ta bort det.", - "exist": "{item} existerar redan", - "generic": "Är du säker?", - "no": "Nej", - "no_upgrades": "Inga uppgraderingar väntar", - "ok": "OK", - "overwrite": "Detta kommer att skriva över den.", - "restart_home_assistant": "Är du säker på att du vill starta om Home Assistant?", - "uninstall": "Är du säker på att du vill avinstallera '{item}'?", - "upgrade_all": "Detta kommer uppgradera alla dessa repositories, säkerhetsställ att du läst release anteckningarna för dem alla innan du fortsätter", - "yes": "Ja" - }, - "options": { - "step": { - "user": { - "data": { - "appdaemon": "Upptäck och följ Appdaemon applikationer", - "country": "Filtrera på landskod.", - "debug": "Aktivera felsökning", - "experimental": "Använd experimentella funktioner", - "netdaemon": "Upptäck och följ NetDaemon applikationer", - "release_limit": "Antalet releaser som visas.", - "sidepanel_icon": "Ikon för sidpanel", - "sidepanel_title": "Rubrik för sidpanel" - } - } - } - }, - "repository_banner": { - "integration_not_loaded": "Denna integration inte laddats i Hem Assistent.", - "no_restart_required": "Ingen omstart krävs", - "not_loaded": "Ej laddad", - "plugin_not_loaded": "Detta plugin är inte tillagt till din Lovelaceresurs.", - "restart": "Du måste starta om Home Assistant.", - "restart_pending": "Omstart väntar" - }, - "repository": { - "add_to_lovelace": "Lägg till i Lovelace", - "authors": "Författare", - "available": "Tillgänglig", - "back_to": "Tillbaka till", - "changelog": "Ändringslogg", - "downloads": "Nedladdningar", - "flag_this": "Flagga denna", - "frontend_version": "Frontend-version", - "github_stars": "GitHub stjärnor", - "goto_integrations": "Gå till integrationer", - "hide": "Göm", - "hide_beta": "Göm betaversioner", - "install": "Installera", - "installed": "Installerad", - "lovelace_copy_example": "Kopiera exemplet till urklipp", - "lovelace_instruction": "När du lägger till denna till din lovelace konfiguration, använd", - "lovelace_no_js_type": "Kan inte avgöra villken typ av plugin, kontrollera i GIT \nrepository", - "newest": "nyaste", - "note_appdaemon": "du behöver fortfarande lägga till den till filen 'apps.yaml'", - "note_installed": "När den är installerad kommer den finnas i", - "note_integration": "du behöver fortfarande lägga den till filen 'configuration.yaml'", - "note_plugin": "du behöver fortfarande lägga till den till din lovelace konfiguration ('ui-lovelace.yaml' eller raw UI config redigerare)", - "open_issue": "Rapportera problem", - "open_plugin": "Öppna plugin", - "reinstall": "Ominstallera", - "repository": "Repository", - "restart_home_assistant": "Starta om Home Assistant", - "show_beta": "Visa betaversioner", - "uninstall": "Avinstallera", - "update_information": "Uppdatera information", - "upgrade": "Uppdatera" - }, - "settings": { - "add_custom_repository": "LÄGG TILL ETT REPOSITORY", - "adding_new_repo": "Lägger till nytt repository '{repo}'", - "adding_new_repo_category": "Med kategori '{kategori}'.", - "bg_task_custom": "Anpassade repositories är dolda under tiden aktiviteter i bakgrunden körs", - "category": "Kategori", - "compact_mode": "Kompakt läge", - "custom_repositories": "REPOSITORIES", - "delete": "Ta bort", - "display": "Visa", - "grid": "Rutnät", - "hacs_repo": "HACS repo", - "hidden_repositories": "dolda förråd", - "missing_category": "Du behöver välja en kategori", - "open_repository": "Öppna Repository", - "reload_data": "Ladda om data", - "reload_window": "Ladda om fönstret", - "save": "Spara", - "table": "Tabell", - "table_view": "Tabellvy", - "unhide": "ta fram", - "upgrade_all": "Uppgradera alla" - }, - "store": { - "ascending": "stigande", - "clear_new": "Rensa alla nya förvar", - "last_updated": "Senast uppdaterad", - "name": "Namn", - "new_repositories": "Nya förvar", - "pending_upgrades": "Väntande uppgraderingar", - "placeholder_search": "Skriv ett sökord...", - "sort": "sortera", - "stars": "Stjärnor", - "status": "Status" - }, - "time": { - "ago": "sedan", - "day": "dag", - "days": "dagar", - "hour": "timme", - "hours": "timmar", - "minute": "minut", - "minutes": "minuter", - "month": "månad", - "months": "månader", - "one": "Ett", - "one_day_ago": "för en dag sedan", - "one_hour_ago": "för en timme sedan", - "one_minute_ago": "en minut sedan", - "one_month_ago": "en månad sedan", - "one_second_ago": "för en sekund sedan", - "one_year_ago": "ett år sedan", - "second": "andra", - "seconds": "sekunder", - "x_days_ago": "{x} dagar sedan", - "x_hours_ago": "{x} timmar sedan", - "x_minutes_ago": "{x} minuter sedan", - "x_months_ago": "{x} månader sedan", - "x_seconds_ago": "{x} sekunder sedan", - "x_years_ago": "{x} år sedan", - "year": "år", - "years": "år" - } -} \ No newline at end of file diff --git a/custom_components/hacs/.translations/zh-Hans.json b/custom_components/hacs/.translations/zh-Hans.json deleted file mode 100644 index 73ecd24..0000000 --- a/custom_components/hacs/.translations/zh-Hans.json +++ /dev/null @@ -1,198 +0,0 @@ -{ - "common": { - "about": "关于", - "appdaemon": "AppDaemon", - "appdaemon_apps": "AppDaemon应用", - "background_task": "后台任务正在运行,完成后将重新加载此页面。", - "check_log_file": "请查看日志文件以了解更多信息。", - "continue": "继续", - "disabled": "禁用", - "documentation": "文档", - "hacs_is_disabled": "HACS已禁用", - "installed": "已安装", - "integration": "自定义组件", - "integrations": "自定义组件", - "manage": "管理", - "netdaemon": "NetDaemon应用", - "netdaemon_apps": "NetDaemon应用", - "plugin": "Lovelace插件", - "plugins": "Lovelace插件", - "python_script": "Python脚本", - "python_scripts": "Python脚本", - "repositories": "仓库数量", - "settings": "设置", - "theme": "主题", - "themes": "主题", - "version": "版本" - }, - "config": { - "abort": { - "single_instance_allowed": "仅允许单个HACS配置。" - }, - "error": { - "auth": "个人访问令牌不正确。" - }, - "step": { - "user": { - "data": { - "appdaemon": "启用AppDaemon应用发现和跟踪", - "netdaemon": "启用NetDaemon应用发现和跟踪", - "python_script": "启用python_scripts发现和跟踪", - "sidepanel_icon": "侧面板图标", - "sidepanel_title": "侧面板标题", - "theme": "启用主题发现和跟踪", - "token": "GitHub个人访问令牌" - }, - "description": "如果您需要有关配置的帮助,请在此处查看:https:\/\/hacs.xyz\/docs\/configuration\/start", - "title": "HACS (Home Assistant Community Store)" - } - }, - "title": "HACS (Home Assistant Community Store)" - }, - "confirm": { - "add_to_lovelace": "您确定要将此添加到Lovelace资源中吗?", - "bg_task": "后台任务正在运行时,操作被禁用。", - "cancel": "取消", - "continue": "你确定你要继续吗?", - "delete": "是否确实要删除\"{item}\"?", - "delete_installed": "已安装 '{item}',需要先将其卸载,然后才能将其删除。", - "exist": "{item}已经存在", - "generic": "你确定吗?", - "home_assistant_is_restarting": "请等待,Home Assistant现在正在重新启动。", - "home_assistant_version_not_correct": "您正在运行Home Assistant的版本为'{haversion}',但是这个需要安装最低版本是'{minversion}'。", - "no": "取消", - "no_upgrades": "暂无升级", - "ok": "确定", - "overwrite": "这样做会覆盖它。", - "reload_data": "这将重新加载HACS知道的所有仓库的数据,这需要一些时间才能完成。", - "restart_home_assistant": "您确定要重新启动Home Assistant吗?", - "uninstall": "您确定要卸载“ {item} ”吗?", - "upgrade_all": "这将升级所有这些仓库,请确保在继续之前已阅读所有仓库的发行说明。", - "yes": "确定" - }, - "options": { - "step": { - "user": { - "data": { - "appdaemon": "启用AppDaemon应用发现和跟踪", - "country": "用国家代码过滤。", - "debug": "启用调试。", - "experimental": "启用实验功能", - "netdaemon": "启用NetDaemon应用发现和跟踪", - "not_in_use": "不适用于 YAML", - "release_limit": "要显示的发行数量。", - "sidepanel_icon": "侧面板图标", - "sidepanel_title": "侧面板标题" - } - } - } - }, - "repository_banner": { - "config_flow": "此组件支持config_flow,这意味着您现在可以转到UI的“集成”部分进行配置。", - "config_flow_title": "支持UI配置", - "integration_not_loaded": "此集成未加载到Home Assistant中。", - "no_restart_required": "无需重启", - "not_loaded": "未加载", - "plugin_not_loaded": "该插件未添加到您的Lovelace资源中。", - "restart": "您需要重新启动Home Assistant。", - "restart_pending": "重新启动待处理" - }, - "repository": { - "add_to_lovelace": "添加到Lovelace", - "authors": "作者", - "available": "版本号", - "back_to": "返回", - "changelog": "更新日志", - "downloads": "下载", - "flag_this": "标记", - "frontend_version": "前端版本", - "github_stars": "GitHub星级", - "goto_integrations": "转到组件", - "hide": "隐藏", - "hide_beta": "隐藏测试版", - "install": "安装", - "installed": "已安装版本", - "lovelace_copy_example": "复制样例代码到你的剪贴板", - "lovelace_instruction": "您仍然需要将下列代码添加到lovelace配置中(“ ui-lovelace.yaml”或原始配置编辑器):", - "lovelace_no_js_type": "无法确定此插件的类型,请检查仓库。", - "newest": "最新", - "note_appdaemon": "您仍然需要将其添加到“ apps.yaml”文件中", - "note_installed": "安装后,它将位于", - "note_integration": "您仍然需要将其添加到“ configuration.yaml”文件中", - "note_plugin": "您仍然需要将其添加到lovelace配置中(“ ui-lovelace.yaml”或原始配置编辑器)ui-lovelace.yaml", - "open_issue": "提交问题", - "open_plugin": "打开插件", - "reinstall": "重新安装", - "repository": "仓库", - "restart_home_assistant": "重新启动Home Assistant", - "show_beta": "显示测试版", - "uninstall": "卸载", - "update_information": "更新信息", - "upgrade": "升级" - }, - "settings": { - "add_custom_repository": "添加自定义仓库", - "adding_new_repo": "添加新的仓库 '{repo}'", - "adding_new_repo_category": "类别为 '{category}'。", - "bg_task_custom": "自定义仓库在后台任务运行时被隐藏。", - "category": "类别", - "compact_mode": "紧凑模式", - "custom_repositories": "自定义仓库", - "delete": "删除", - "display": "视图方式", - "grid": "网格", - "hacs_repo": "HACS仓库", - "hidden_repositories": "隐藏的仓库", - "missing_category": "您需要选择一个类别", - "open_repository": "打开仓库", - "reload_data": "重载数据", - "reload_window": "重新加载窗口", - "repository_configuration": "仓库数据配置", - "save": "保存", - "table": "列表", - "table_view": "表视图", - "unhide": "取消隐藏", - "upgrade_all": "升级全部" - }, - "store": { - "ascending": "升序", - "clear_new": "清除所有新仓库标记", - "descending": "降序", - "last_updated": "最近更新时间", - "name": "名称", - "new_repositories": "新仓库", - "pending_upgrades": "待升级", - "placeholder_search": "搜索项目...", - "sort": "排序", - "stars": "星级", - "status": "状态" - }, - "time": { - "ago": "过去", - "day": "天", - "days": "天", - "hour": "小时", - "hours": "小时", - "minute": "分", - "minutes": "分", - "month": "月", - "months": "月", - "one": "一", - "one_day_ago": "一天前", - "one_hour_ago": "一个小时之前", - "one_minute_ago": "一分钟前", - "one_month_ago": "一个月前", - "one_second_ago": "一秒钟前", - "one_year_ago": "一年前", - "second": "秒", - "seconds": "秒", - "x_days_ago": "{x}天前", - "x_hours_ago": "{x}小时前", - "x_minutes_ago": "{x}分钟前", - "x_months_ago": "{x}个月前", - "x_seconds_ago": "{x}秒前", - "x_years_ago": "{x}年前", - "year": "年", - "years": "年" - } -} \ No newline at end of file diff --git a/custom_components/hacs/__init__.py b/custom_components/hacs/__init__.py deleted file mode 100644 index 1b94fbc..0000000 --- a/custom_components/hacs/__init__.py +++ /dev/null @@ -1,224 +0,0 @@ -""" -Custom element manager for community created elements. - -For more details about this integration, please refer to the documentation at -https://hacs.xyz/ -""" - -import voluptuous as vol -from aiogithubapi import AIOGitHub -from homeassistant import config_entries -from homeassistant.const import EVENT_HOMEASSISTANT_START -from homeassistant.const import __version__ as HAVERSION -from homeassistant.components.lovelace import system_health_info -from homeassistant.exceptions import ConfigEntryNotReady, ServiceNotFound -from homeassistant.helpers.aiohttp_client import async_create_clientsession -from homeassistant.helpers.event import async_call_later - -from custom_components.hacs.configuration_schema import ( - hacs_base_config_schema, - hacs_config_option_schema, -) -from custom_components.hacs.const import DOMAIN, ELEMENT_TYPES, STARTUP, VERSION -from custom_components.hacs.constrains import check_constans, check_requirements -from custom_components.hacs.hacsbase.configuration import Configuration -from custom_components.hacs.hacsbase.data import HacsData -from custom_components.hacs.setup import ( - add_sensor, - load_hacs_repository, - setup_frontend, -) - -from custom_components.hacs.globals import get_hacs - -from custom_components.hacs.helpers.network import internet_connectivity_check - -SCHEMA = hacs_base_config_schema() -SCHEMA[vol.Optional("options")] = hacs_config_option_schema() -CONFIG_SCHEMA = vol.Schema({DOMAIN: SCHEMA}, extra=vol.ALLOW_EXTRA) - - -async def async_setup(hass, config): - """Set up this integration using yaml.""" - hacs = get_hacs() - if DOMAIN not in config: - return True - hass.data[DOMAIN] = config - hacs.hass = hass - hacs.session = async_create_clientsession(hass) - hacs.configuration = Configuration.from_dict( - config[DOMAIN], config[DOMAIN].get("options") - ) - hacs.configuration.config = config - hacs.configuration.config_type = "yaml" - await startup_wrapper_for_yaml() - hass.async_create_task( - hass.config_entries.flow.async_init( - DOMAIN, context={"source": config_entries.SOURCE_IMPORT}, data={} - ) - ) - return True - - -async def async_setup_entry(hass, config_entry): - """Set up this integration using UI.""" - hacs = get_hacs() - conf = hass.data.get(DOMAIN) - if config_entry.source == config_entries.SOURCE_IMPORT: - if conf is None: - hass.async_create_task( - hass.config_entries.async_remove(config_entry.entry_id) - ) - return False - hacs.hass = hass - hacs.session = async_create_clientsession(hass) - hacs.configuration = Configuration.from_dict( - config_entry.data, config_entry.options - ) - hacs.configuration.config_type = "flow" - hacs.configuration.config_entry = config_entry - config_entry.add_update_listener(reload_hacs) - startup_result = await hacs_startup() - if not startup_result: - hacs.system.disabled = True - raise ConfigEntryNotReady - hacs.system.disabled = False - return startup_result - - -async def startup_wrapper_for_yaml(): - """Startup wrapper for yaml config.""" - hacs = get_hacs() - startup_result = await hacs_startup() - if not startup_result: - hacs.system.disabled = True - hacs.hass.components.frontend.async_remove_panel( - hacs.configuration.sidepanel_title.lower() - .replace(" ", "_") - .replace("-", "_") - ) - hacs.logger.info("Could not setup HACS, trying again in 15 min") - async_call_later(hacs.hass, 900, startup_wrapper_for_yaml()) - return - hacs.system.disabled = False - - -async def hacs_startup(): - """HACS startup tasks.""" - hacs = get_hacs() - if not check_requirements(): - return False - if hacs.configuration.debug: - try: - await hacs.hass.services.async_call( - "logger", "set_level", {"hacs": "debug"} - ) - except ServiceNotFound: - hacs.logger.error( - "Could not set logging level to debug, logger is not enabled" - ) - - lovelace_info = await system_health_info(hacs.hass) - hacs.logger.debug(f"Configuration type: {hacs.configuration.config_type}") - hacs.version = VERSION - hacs.logger.info(STARTUP) - hacs.system.config_path = hacs.hass.config.path() - hacs.system.ha_version = HAVERSION - - hacs.system.lovelace_mode = lovelace_info.get("mode", "yaml") - hacs.system.disabled = False - hacs.github = AIOGitHub( - hacs.configuration.token, async_create_clientsession(hacs.hass) - ) - hacs.data = HacsData() - - # Check HACS Constrains - if not await hacs.hass.async_add_executor_job(check_constans): - if hacs.configuration.config_type == "flow": - if hacs.configuration.config_entry is not None: - await async_remove_entry(hacs.hass, hacs.configuration.config_entry) - return False - - # Set up frontend - await setup_frontend() - - if not await hacs.hass.async_add_executor_job(internet_connectivity_check): - hacs.logger.critical("No network connectivity") - return False - - # Load HACS - if not await load_hacs_repository(): - if hacs.configuration.config_type == "flow": - if hacs.configuration.config_entry is not None: - await async_remove_entry(hacs.hass, hacs.configuration.config_entry) - return False - - # Restore from storefiles - if not await hacs.data.restore(): - hacs_repo = hacs.get_by_name("hacs/integration") - hacs_repo.pending_restart = True - if hacs.configuration.config_type == "flow": - if hacs.configuration.config_entry is not None: - await async_remove_entry(hacs.hass, hacs.configuration.config_entry) - return False - - # Add aditional categories - hacs.common.categories = ELEMENT_TYPES - if hacs.configuration.appdaemon: - hacs.common.categories.append("appdaemon") - if hacs.configuration.netdaemon: - hacs.common.categories.append("netdaemon") - if hacs.configuration.python_script: - hacs.configuration.python_script = False - if hacs.configuration.config_type == "yaml": - hacs.logger.warning( - "Configuration option 'python_script' is deprecated and you should remove it from your configuration, HACS will know if you use 'python_script' in your Home Assistant configuration, this option will be removed in a future release." - ) - if hacs.configuration.theme: - hacs.configuration.theme = False - if hacs.configuration.config_type == "yaml": - hacs.logger.warning( - "Configuration option 'theme' is deprecated and you should remove it from your configuration, HACS will know if you use 'theme' in your Home Assistant configuration, this option will be removed in a future release." - ) - - # Setup startup tasks - if hacs.configuration.config_type == "yaml": - hacs.hass.bus.async_listen_once(EVENT_HOMEASSISTANT_START, hacs.startup_tasks()) - else: - async_call_later(hacs.hass, 5, hacs.startup_tasks()) - - # Show the configuration - hacs.configuration.print() - - # Set up sensor - await hacs.hass.async_add_executor_job(add_sensor) - - # Mischief managed! - return True - - -async def async_remove_entry(hass, config_entry): - """Handle removal of an entry.""" - hacs = get_hacs() - hacs.logger.info("Disabling HACS") - hacs.logger.info("Removing recuring tasks") - for task in hacs.recuring_tasks: - task() - hacs.logger.info("Removing sensor") - try: - await hass.config_entries.async_forward_entry_unload(config_entry, "sensor") - except ValueError: - pass - hacs.logger.info("Removing sidepanel") - try: - hass.components.frontend.async_remove_panel("hacs") - except AttributeError: - pass - hacs.system.disabled = True - hacs.logger.info("HACS is now disabled") - - -async def reload_hacs(hass, config_entry): - """Reload HACS.""" - await async_remove_entry(hass, config_entry) - await async_setup_entry(hass, config_entry) diff --git a/custom_components/hacs/__pycache__/__init__.cpython-37.pyc b/custom_components/hacs/__pycache__/__init__.cpython-37.pyc deleted file mode 100644 index f1d39da31fffc7d0ded5668ba12a5304f2ae552e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6129 zcmcIoOK%)kcCM;^RX^EmQWU9|OST@SMKx`W?a3&HGmJ!;3M|qP=~n@nLa}d=tY$rW zZrzsD4LSkB!5|w0UJZ~55;U_*cG+e-oBV-n3dt(SVz#r$!mE7eR5eA)qseNzQTKW7 zxsUVR^SFQBY}PdV{`KBp|Lj{!)Bc+((_aaNpW;jYLf15**_zOW5$Lvoybu(^qFvOf ztr(QTvR&qKDX4^|ZF0Gca@DSJxf0aFhTY(@88pL|-3n*y8Ln4@b~tO#a=8|C!Z~}6 z%k^MBykK7l7wiSDH-d}dqP-X{*-POi`%-w>zRc~-;7WMaz8YS$uW`K{W3=Ec`;V-xU|dBJ%gdlDLHYp13ToApeoLDy|`a zU%VkKjjEQ?gnvO{< zSJe)b8YK5uR}b7?(tR-+uhxD`!rxrh)9TvetxtTlG2BI^)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@UD80bi?8@thVe=d#lbX%U3Yi=G`X3yDXe!Cn zJ{dUs?rVr?Y4l2Wet8^I+c*BdG4#&E#^<%G=Rl9OGaD4PH1@UE@ZAsMT{lShdfK;M zLo^jm?!K|vvdh~KHrAi4rREmP)(z6~cJ|y@U;FgatuLMRuXdiU;Wcn;^U>o^oQ#^^ zT^QvYqOl6jkWV;1gLb~69LAd;!5R+(?_;w336T{Mr&IKv{o9lq?cyQ~2DQwW8%6_$ SrHyAEbHTi1&YC|nFZ>^Jzn(<^ diff --git a/custom_components/hacs/__pycache__/config_flow.cpython-37.pyc b/custom_components/hacs/__pycache__/config_flow.cpython-37.pyc deleted file mode 100644 index a2b1baca29a9a90be57b0b995c00cd73a51a6482..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4016 zcma)9O>^7E8O8!234VzBus-~mAWoZ>X+n20X?v*Cv8p(hW*jPGxrvK*f`PCr5i&@y zi)9>gC z(=MgeUM;AZb~&y08bJf?3ir~5UNdN#b~Rn>Ed@)xZJ@6>_|`^(G6;3Y3V+0`$<^M%hBiDdrOE*a{IcSkfNXclwD+ zqBI$cb_a*7ghI+p(s|unqz8Yq_}TxC7jus6v1uylTp%rhAc$<^(_ zNPA(JVBs*lLA%oSmOZ|HN&WUzC^iBlgF>eK4kiC9szTRe>y({Y^5(I11fz2MHFQVY zIdV@+s(i-e$8#e{j^|bREoN1Ykr+3uGqz)KXWNorL(bzR^p;;EPf%E4o>c=8PkY+CghegX$ zM0wWl=#t8wi@t^f&`eY+w96wEX*WXDYnP(5Rg-`PORtAfKI+F|Jd_gVo`%1!7v0f* zCY5%(QJ%}|B<~~Xs>0OC zp)&3-s%08lEEdX@7=$Es2c7vkD$6c2k2P46HEfTqvZh^QOZNEf%TB*Ef6n(5xW@Ny zp<#T(6g#z*1CQA!_8CK;%bnK_V%Hsiv-nzLBe&N1|}J=%aiCY&CW>{q6M|{O_u8No&gP6g?`3A6N|~a)IphYZYuc> zKHDfcxx=zuX2Uq+cP<;`iWlCTy0nObQBEjv8RhCat+Z

mn*(q%nar!phMlwe))7 z0Yb9^?sAj1za&jfB03c7b3oI6^OQN?&GME^f&8(Mv8(WxxwIx3YjY>DxJ$X$DvkfS z0}PQ08C9t38+F??fAZ`NM2r;k)o396?7&Zq_y_(A@e?WheukN`8X~<${$YlsBcB7D zFc$Skg}-NO?I0UP#HW*I@={=S);Ce~O_UBrj%I|Fu}adPDt3^h;#@Cz4JT|dxr*0# zWiIyGqo|i6CN?l+^0DQ}ThzWym5=KG1dLw3kQ>Eee~lSA(E+Q3+_J9*&y^W7pO8NY z?oB>DLt}JT0Y~8x!_L#s zTAri>>5cQ4D(>uD8}AoaMs#4CW9r%LP;vnK{L!$6NqT+4kJVvgZMK zT(4#%=o;c#FG~6`#AXj!`2kA)0jhZd!yQl%7xbhcEhSzvw1ov_!@M3a6;!VbRQ=RT&;w7DC z*9l#lL><1O9VYr2w0(nq7jqj^W?E8gQBW8y|A>aNPOO(Eo56c-8_cCIhj8}TKC+KM zJ)hh1zH*OB@S;uZN0k%y(&;x8aUk!gdV(*s;9KRM)+yh)XK?xlGoOwm8gLQ(v`cUp z)Bx2uG|>e_UxkZ%^`>6E79IWd45`mHPf6xw9^_F<+t>6D2LX%zFNuRivp>^g; z&{fcu$2dQ(0b}5w(^j=D^EZh885xYz^$Xc#Z1*NpYwvym=f9!9Ncl}vur^%2gzEu6 OIDQGGVb`4XPyP!#nHI?a diff --git a/custom_components/hacs/__pycache__/configuration_schema.cpython-37.pyc b/custom_components/hacs/__pycache__/configuration_schema.cpython-37.pyc deleted file mode 100644 index bad048928fce75da625f0f5daf27cd509fad363e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1874 zcmcgt&u<$=6yDii{+&39(>N(mg9^xqBoY!mpbFtS8*1U$mhB3<609~m<7CTv*PR_h z5;;PGUXl0%a%hhn`FG~ZDgOc|-W%IW8>!chHQ&7X-tN4a_r6&_DwXmYw12+%?WYG| z{fm=jv%vT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^bCnl{L8qQm_@$+vNg`+M6b zrHp~ww<9Upelmpz%_?-KPc8P5($Le|KBsz*sYLnCICqZ()!J6weFU#Ks(WEQK5*-N z8L-{Z(qddWP&`W^j${+EU|FxQyc4hj8Ozn zjpDPANB$WpZ4#l?p@bOShol~_pqs;DMC9ixC33?EOW<%Zo>YMzRd5>6 z1EH{51A1thhTqG`N)WeXlr=&cAd+^T%B1DeUmd8UNopf=&(cc=@`vRiq+^hwxij&w zd-feLfEQex07`U$SkWWrOlL^BKu0M?@?wZ2##0rp898f|q*8}QoWr5iggKR{px841 z+y<69g{&X#x|_TABU!jCPJ){VH&iJ5N7SwDF$*+6y4zala-=QYUg(3}$lD<;hu z%{TITnxt=8s)6>|=z?WDQFO4z6GbsxtPC(wjENdB5t9;aAmyNAI@FjZDGjxOafGOR ziTB)j8(f}bH$S`SR2Y)lo*lU{yC0vB(#)WjArmxcN|q=Fj2iwWNwb@qQB&igQd8rh z?&AeRp&J^Vhph3C;VPdRkLm-;t!%(;r-UVR;Phgj5H!A{Jh*Tl`vsE(=l!t`(~-K@ zxM7Il#Lw&&a>t&3xA1|Y!S3Em%2O9+Y4!@~C!Vc56lSMvE-g5&N^(3kGkHs>BAo0P z3qAp5eao=slD;)wPVzRc9$EmEzo6!R0+JLTc7uK|?st)2*TJKYUN=Q)T)3rP&c>PK z!#3sY)4RDeow;@P^MM;6p&CJr(w8>h8>CkO`Rr4&IR8y+J!~$MZ@7mn!}i$yi5M{{ z(SR%7$y6m5=I#l%sql6?=f!hnb>eVJ0_*g~usXVGjWF8CO%^A& z)0DNKTUYCj`=F282ymZp#s?W>++fhP1gFdm`0ic%E^KTpKg%vytc)mH7el+5sLA-jk JhVKR9{uj*T%QOH0 diff --git a/custom_components/hacs/config_flow.py b/custom_components/hacs/config_flow.py deleted file mode 100644 index 7bf329d..0000000 --- a/custom_components/hacs/config_flow.py +++ /dev/null @@ -1,102 +0,0 @@ -"""Adds config flow for HACS.""" -# pylint: disable=dangerous-default-value -import logging -import voluptuous as vol -from aiogithubapi import AIOGitHubException, AIOGitHubAuthentication -from homeassistant import config_entries -from homeassistant.core import callback -from homeassistant.helpers import aiohttp_client - -from .const import DOMAIN -from .configuration_schema import hacs_base_config_schema, hacs_config_option_schema - -from custom_components.hacs.globals import get_hacs -from custom_components.hacs.helpers.information import get_repository - -_LOGGER = logging.getLogger(__name__) - - -class HacsFlowHandler(config_entries.ConfigFlow, domain=DOMAIN): - """Config flow for HACS.""" - - VERSION = 1 - CONNECTION_CLASS = config_entries.CONN_CLASS_CLOUD_POLL - - def __init__(self): - """Initialize.""" - self._errors = {} - - async def async_step_user(self, user_input={}): - """Handle a flow initialized by the user.""" - self._errors = {} - if self._async_current_entries(): - return self.async_abort(reason="single_instance_allowed") - if self.hass.data.get(DOMAIN): - return self.async_abort(reason="single_instance_allowed") - - if user_input is not None: - if await self._test_token(user_input["token"]): - return self.async_create_entry(title="", data=user_input) - - self._errors["base"] = "auth" - return await self._show_config_form(user_input) - - return await self._show_config_form(user_input) - - async def _show_config_form(self, user_input): - """Show the configuration form to edit location data.""" - return self.async_show_form( - step_id="user", - data_schema=vol.Schema(hacs_base_config_schema(user_input, True)), - errors=self._errors, - ) - - @staticmethod - @callback - def async_get_options_flow(config_entry): - return HacsOptionsFlowHandler(config_entry) - - async def async_step_import(self, user_input): - """Import a config entry. - Special type of import, we're not actually going to store any data. - Instead, we're going to rely on the values that are in config file. - """ - if self._async_current_entries(): - return self.async_abort(reason="single_instance_allowed") - - return self.async_create_entry(title="configuration.yaml", data={}) - - async def _test_token(self, token): - """Return true if token is valid.""" - try: - session = aiohttp_client.async_get_clientsession(self.hass) - await get_repository(session, token, "hacs/org") - return True - except (AIOGitHubException, AIOGitHubAuthentication) as exception: - _LOGGER.error(exception) - return False - - -class HacsOptionsFlowHandler(config_entries.OptionsFlow): - """HACS config flow options handler.""" - - def __init__(self, config_entry): - """Initialize HACS options flow.""" - self.config_entry = config_entry - - async def async_step_init(self, user_input=None): - """Manage the options.""" - return await self.async_step_user() - - async def async_step_user(self, user_input=None): - """Handle a flow initialized by the user.""" - hacs = get_hacs() - if user_input is not None: - return self.async_create_entry(title="", data=user_input) - - if hacs.configuration.config_type == "yaml": - schema = {vol.Optional("not_in_use", default=""): str} - else: - schema = hacs_config_option_schema(self.config_entry.options) - - return self.async_show_form(step_id="user", data_schema=vol.Schema(schema)) diff --git a/custom_components/hacs/configuration_schema.py b/custom_components/hacs/configuration_schema.py deleted file mode 100644 index 704ea4f..0000000 --- a/custom_components/hacs/configuration_schema.py +++ /dev/null @@ -1,73 +0,0 @@ -"""HACS Configuration Schemas.""" -# pylint: disable=dangerous-default-value -import voluptuous as vol -from .const import LOCALE - -# Configuration: -TOKEN = "token" -SIDEPANEL_TITLE = "sidepanel_title" -SIDEPANEL_ICON = "sidepanel_icon" -APPDAEMON = "appdaemon" -NETDAEMON = "netdaemon" -PYTHON_SCRIPT = "python_script" -THEME = "theme" - -# Options: -COUNTRY = "country" -DEBUG = "debug" -RELEASE_LIMIT = "release_limit" -EXPERIMENTAL = "experimental" - - -def hacs_base_config_schema(config: dict = {}, config_flow: bool = False) -> dict: - """Return a shcema configuration dict for HACS.""" - if not config: - config = { - TOKEN: "xxxxxxxxxxxxxxxxxxxxxxxxxxx", - SIDEPANEL_ICON: "mdi:alpha-c-box", - SIDEPANEL_TITLE: "HACS", - APPDAEMON: False, - NETDAEMON: False, - PYTHON_SCRIPT: False, - THEME: False, - } - if config_flow: - return { - vol.Required(TOKEN, default=config.get(TOKEN)): str, - vol.Optional(SIDEPANEL_TITLE, default=config.get(SIDEPANEL_TITLE)): str, - vol.Optional(SIDEPANEL_ICON, default=config.get(SIDEPANEL_ICON)): str, - vol.Optional(APPDAEMON, default=config.get(APPDAEMON)): bool, - vol.Optional(NETDAEMON, default=config.get(NETDAEMON)): bool, - } - return { - vol.Required(TOKEN, default=config.get(TOKEN)): str, - vol.Optional(SIDEPANEL_TITLE, default=config.get(SIDEPANEL_TITLE)): str, - vol.Optional(SIDEPANEL_ICON, default=config.get(SIDEPANEL_ICON)): str, - vol.Optional(APPDAEMON, default=config.get(APPDAEMON)): bool, - vol.Optional(NETDAEMON, default=config.get(NETDAEMON)): bool, - vol.Optional(PYTHON_SCRIPT, default=config.get(PYTHON_SCRIPT)): bool, - vol.Optional(THEME, default=config.get(THEME)): bool, - } - - -def hacs_config_option_schema(options: dict = {}) -> dict: - """Return a shcema for HACS configuration options.""" - if not options: - options = {COUNTRY: "ALL", DEBUG: False, RELEASE_LIMIT: 5, EXPERIMENTAL: False} - return { - vol.Optional(COUNTRY, default=options.get(COUNTRY)): vol.In(LOCALE), - vol.Optional(RELEASE_LIMIT, default=options.get(RELEASE_LIMIT)): int, - vol.Optional(EXPERIMENTAL, default=options.get(EXPERIMENTAL)): bool, - vol.Optional(DEBUG, default=options.get(DEBUG)): bool, - } - - -def hacs_config_combined() -> dict: - """Combine the configuration options.""" - base = hacs_base_config_schema() - options = hacs_config_option_schema() - - for option in options: - base[option] = options[option] - - return base diff --git a/custom_components/hacs/const.py b/custom_components/hacs/const.py deleted file mode 100644 index 47f44f2..0000000 --- a/custom_components/hacs/const.py +++ /dev/null @@ -1,293 +0,0 @@ -"""Constants for HACS""" -NAME_LONG = "HACS (Home Assistant Community Store)" -NAME_SHORT = "HACS" -VERSION = "0.23.2" -DOMAIN = "hacs" -PROJECT_URL = "https://github.com/hacs/integration/" -CUSTOM_UPDATER_LOCATIONS = [ - "{}/custom_components/custom_updater.py", - "{}/custom_components/custom_updater/__init__.py", -] - -ISSUE_URL = f"{PROJECT_URL}issues" -DOMAIN_DATA = f"{NAME_SHORT.lower()}_data" - -ELEMENT_TYPES = ["integration", "plugin"] - -IFRAME = { - "title": "Community", - "icon": "mdi:alpha-c-box", - "url": "/community_overview", - "path": "community", - "require_admin": True, -} - - -# Messages -CUSTOM_UPDATER_WARNING = """ -This cannot be used with custom_updater. -To use this you need to remove custom_updater form {} -""" - -STARTUP = f""" -------------------------------------------------------------------- -HACS (Home Assistant Community Store) - -Version: {VERSION} -This is a custom integration -If you have any issues with this you need to open an issue here: -https://github.com/hacs/integration/issues -------------------------------------------------------------------- -""" - -LOCALE = [ - "ALL", - "AF", - "AL", - "DZ", - "AS", - "AD", - "AO", - "AI", - "AQ", - "AG", - "AR", - "AM", - "AW", - "AU", - "AT", - "AZ", - "BS", - "BH", - "BD", - "BB", - "BY", - "BE", - "BZ", - "BJ", - "BM", - "BT", - "BO", - "BQ", - "BA", - "BW", - "BV", - "BR", - "IO", - "BN", - "BG", - "BF", - "BI", - "KH", - "CM", - "CA", - "CV", - "KY", - "CF", - "TD", - "CL", - "CN", - "CX", - "CC", - "CO", - "KM", - "CG", - "CD", - "CK", - "CR", - "HR", - "CU", - "CW", - "CY", - "CZ", - "CI", - "DK", - "DJ", - "DM", - "DO", - "EC", - "EG", - "SV", - "GQ", - "ER", - "EE", - "ET", - "FK", - "FO", - "FJ", - "FI", - "FR", - "GF", - "PF", - "TF", - "GA", - "GM", - "GE", - "DE", - "GH", - "GI", - "GR", - "GL", - "GD", - "GP", - "GU", - "GT", - "GG", - "GN", - "GW", - "GY", - "HT", - "HM", - "VA", - "HN", - "HK", - "HU", - "IS", - "IN", - "ID", - "IR", - "IQ", - "IE", - "IM", - "IL", - "IT", - "JM", - "JP", - "JE", - "JO", - "KZ", - "KE", - "KI", - "KP", - "KR", - "KW", - "KG", - "LA", - "LV", - "LB", - "LS", - "LR", - "LY", - "LI", - "LT", - "LU", - "MO", - "MK", - "MG", - "MW", - "MY", - "MV", - "ML", - "MT", - "MH", - "MQ", - "MR", - "MU", - "YT", - "MX", - "FM", - "MD", - "MC", - "MN", - "ME", - "MS", - "MA", - "MZ", - "MM", - "NA", - "NR", - "NP", - "NL", - "NC", - "NZ", - "NI", - "NE", - "NG", - "NU", - "NF", - "MP", - "NO", - "OM", - "PK", - "PW", - "PS", - "PA", - "PG", - "PY", - "PE", - "PH", - "PN", - "PL", - "PT", - "PR", - "QA", - "RO", - "RU", - "RW", - "RE", - "BL", - "SH", - "KN", - "LC", - "MF", - "PM", - "VC", - "WS", - "SM", - "ST", - "SA", - "SN", - "RS", - "SC", - "SL", - "SG", - "SX", - "SK", - "SI", - "SB", - "SO", - "ZA", - "GS", - "SS", - "ES", - "LK", - "SD", - "SR", - "SJ", - "SZ", - "SE", - "CH", - "SY", - "TW", - "TJ", - "TZ", - "TH", - "TL", - "TG", - "TK", - "TO", - "TT", - "TN", - "TR", - "TM", - "TC", - "TV", - "UG", - "UA", - "AE", - "GB", - "US", - "UM", - "UY", - "UZ", - "VU", - "VE", - "VN", - "VG", - "VI", - "WF", - "EH", - "YE", - "ZM", - "ZW", -] diff --git a/custom_components/hacs/constrains.py b/custom_components/hacs/constrains.py deleted file mode 100644 index 269cba8..0000000 --- a/custom_components/hacs/constrains.py +++ /dev/null @@ -1,99 +0,0 @@ -"""HACS Startup constrains.""" -# pylint: disable=bad-continuation -import os - -from .const import CUSTOM_UPDATER_LOCATIONS, CUSTOM_UPDATER_WARNING -from .helpers.misc import version_left_higher_then_right - -from custom_components.hacs.globals import get_hacs - -MINIMUM_HA_VERSION = "0.98.0" - - -def check_constans(): - """Check HACS constrains.""" - if not constrain_translations(): - return False - if not constrain_custom_updater(): - return False - if not constrain_version(): - return False - return True - - -def constrain_custom_updater(): - """Check if custom_updater exist.""" - hacs = get_hacs() - for location in CUSTOM_UPDATER_LOCATIONS: - if os.path.exists(location.format(hacs.system.config_path)): - msg = CUSTOM_UPDATER_WARNING.format( - location.format(hacs.system.config_path) - ) - hacs.logger.critical(msg) - return False - return True - - -def constrain_version(): - """Check if the version is valid.""" - hacs = get_hacs() - if not version_left_higher_then_right(hacs.system.ha_version, MINIMUM_HA_VERSION): - hacs.logger.critical( - f"You need HA version {MINIMUM_HA_VERSION} or newer to use this integration." - ) - return False - return True - - -def constrain_translations(): - """Check if traslations exist.""" - hacs = get_hacs() - if not os.path.exists( - f"{hacs.system.config_path}/custom_components/hacs/.translations" - ): - hacs.logger.critical("You are missing the translations directory.") - return False - return True - - -def check_requirements(): - """Check the requirements""" - missing = [] - try: - from aiogithubapi import AIOGitHubException # pylint: disable=unused-import - except ImportError: - missing.append("aiogithubapi") - - try: - from hacs_frontend import locate_gz # pylint: disable=unused-import - except ImportError: - missing.append("hacs_frontend") - - try: - import semantic_version # pylint: disable=unused-import - except ImportError: - missing.append("semantic_version") - - try: - from integrationhelper import Logger # pylint: disable=unused-import - except ImportError: - missing.append("integrationhelper") - - try: - import backoff # pylint: disable=unused-import - except ImportError: - missing.append("backoff") - - try: - import aiofiles # pylint: disable=unused-import - except ImportError: - missing.append("aiofiles") - - if missing: - hacs = get_hacs() - for requirement in missing: - hacs.logger.critical( - f"Required python requirement '{requirement}' is not installed" - ) - return False - return True diff --git a/custom_components/hacs/globals.py b/custom_components/hacs/globals.py deleted file mode 100644 index 91d8314..0000000 --- a/custom_components/hacs/globals.py +++ /dev/null @@ -1,29 +0,0 @@ -# pylint: disable=invalid-name, missing-docstring -hacs = [] -removed_repositories = [] - - -def get_hacs(): - if not hacs: - from custom_components.hacs.hacsbase import Hacs - - hacs.append(Hacs()) - - return hacs[0] - - -def is_removed(repository): - return repository in [x.repository for x in removed_repositories] - - -def get_removed(repository): - if not is_removed(repository): - from custom_components.hacs.repositories.removed import RemovedRepository - - removed_repo = RemovedRepository() - removed_repo.repository = repository - removed_repositories.append(removed_repo) - filter_repos = [ - x for x in removed_repositories if x.repository.lower() == repository.lower() - ] - return filter_repos[0] diff --git a/custom_components/hacs/hacsbase/__init__.py b/custom_components/hacs/hacsbase/__init__.py deleted file mode 100644 index 8795661..0000000 --- a/custom_components/hacs/hacsbase/__init__.py +++ /dev/null @@ -1,355 +0,0 @@ -"""Initialize the HACS base.""" -# pylint: disable=unused-argument, bad-continuation -import json -import uuid -from datetime import timedelta - -from homeassistant.helpers.event import async_call_later, async_track_time_interval - -from aiogithubapi import AIOGitHubException, AIOGitHubRatelimit -from integrationhelper import Logger - -from custom_components.hacs.hacsbase.task_factory import HacsTaskFactory -from custom_components.hacs.hacsbase.exceptions import HacsException - -from custom_components.hacs.const import ELEMENT_TYPES -from custom_components.hacs.setup import setup_extra_stores -from custom_components.hacs.store import async_load_from_store, async_save_to_store -from custom_components.hacs.helpers.get_defaults import ( - get_default_repos_lists, - get_default_repos_orgs, -) - -from custom_components.hacs.helpers.register_repository import register_repository -from custom_components.hacs.globals import removed_repositories, get_removed, is_removed -from custom_components.hacs.repositories.removed import RemovedRepository - - -class HacsStatus: - """HacsStatus.""" - - startup = True - new = False - background_task = False - reloading_data = False - upgrading_all = False - - -class HacsFrontend: - """HacsFrontend.""" - - version_running = None - version_available = None - update_pending = False - - -class HacsCommon: - """Common for HACS.""" - - categories = [] - default = [] - installed = [] - skip = [] - - -class System: - """System info.""" - - status = HacsStatus() - config_path = None - ha_version = None - disabled = False - lovelace_mode = "storage" - - -class Developer: - """Developer settings/tools.""" - - template_id = "Repository ID" - template_content = "" - template_raw = "" - - @property - def devcontainer(self): - """Is it a devcontainer?""" - import os - - if "DEVCONTAINER" in os.environ: - return True - return False - - -class Hacs: - """The base class of HACS, nested thoughout the project.""" - - token = f"{str(uuid.uuid4())}-{str(uuid.uuid4())}" - hacsweb = f"/hacsweb/{token}" - hacsapi = f"/hacsapi/{token}" - repositories = [] - frontend = HacsFrontend() - repo = None - data_repo = None - developer = Developer() - data = None - configuration = None - logger = Logger("hacs") - github = None - hass = None - version = None - session = None - factory = HacsTaskFactory() - system = System() - recuring_tasks = [] - common = HacsCommon() - - @staticmethod - def init(hass, github_token): - """Return a initialized HACS object.""" - return Hacs() - - def get_by_id(self, repository_id): - """Get repository by ID.""" - try: - for repository in self.repositories: - if repository.information.uid == repository_id: - return repository - except Exception: # pylint: disable=broad-except - pass - return None - - def get_by_name(self, repository_full_name): - """Get repository by full_name.""" - try: - for repository in self.repositories: - if repository.data.full_name.lower() == repository_full_name.lower(): - return repository - except Exception: # pylint: disable=broad-except - pass - return None - - def is_known(self, repository_full_name): - """Return a bool if the repository is known.""" - return repository_full_name.lower() in [ - x.data.full_name.lower() for x in self.repositories - ] - - @property - def sorted_by_name(self): - """Return a sorted(by name) list of repository objects.""" - return sorted(self.repositories, key=lambda x: x.display_name) - - @property - def sorted_by_repository_name(self): - """Return a sorted(by repository_name) list of repository objects.""" - return sorted(self.repositories, key=lambda x: x.data.full_name) - - async def register_repository(self, full_name, category, check=True): - """Register a repository.""" - await register_repository(full_name, category, check=True) - - async def startup_tasks(self): - """Tasks tha are started after startup.""" - self.system.status.background_task = True - await self.hass.async_add_executor_job(setup_extra_stores) - self.hass.bus.async_fire("hacs/status", {}) - self.logger.debug(self.github.ratelimits.remaining) - self.logger.debug(self.github.ratelimits.reset_utc) - - await self.handle_critical_repositories_startup() - await self.handle_critical_repositories() - await self.load_known_repositories() - await self.clear_out_removed_repositories() - - self.recuring_tasks.append( - async_track_time_interval( - self.hass, self.recuring_tasks_installed, timedelta(minutes=30) - ) - ) - self.recuring_tasks.append( - async_track_time_interval( - self.hass, self.recuring_tasks_all, timedelta(minutes=800) - ) - ) - - self.hass.bus.async_fire("hacs/reload", {"force": True}) - await self.recuring_tasks_installed() - - self.system.status.startup = False - self.system.status.new = False - self.system.status.background_task = False - self.hass.bus.async_fire("hacs/status", {}) - await self.data.async_write() - - async def handle_critical_repositories_startup(self): - """Handled critical repositories during startup.""" - alert = False - critical = await async_load_from_store(self.hass, "critical") - if not critical: - return - for repo in critical: - if not repo["acknowledged"]: - alert = True - if alert: - self.logger.critical("URGENT!: Check the HACS panel!") - self.hass.components.persistent_notification.create( - title="URGENT!", message="**Check the HACS panel!**" - ) - - async def handle_critical_repositories(self): - """Handled critical repositories during runtime.""" - # Get critical repositories - instored = [] - critical = [] - was_installed = False - - try: - critical = await self.data_repo.get_contents("critical") - critical = json.loads(critical.content) - except AIOGitHubException: - pass - - if not critical: - self.logger.debug("No critical repositories") - return - - stored_critical = await async_load_from_store(self.hass, "critical") - - for stored in stored_critical or []: - instored.append(stored["repository"]) - - stored_critical = [] - - for repository in critical: - removed_repo = get_removed(repository["repository"]) - removed_repo.removal_type = "critical" - repo = self.get_by_name(repository["repository"]) - - stored = { - "repository": repository["repository"], - "reason": repository["reason"], - "link": repository["link"], - "acknowledged": True, - } - if repository["repository"] not in instored: - if repo is not None and repo.installed: - self.logger.critical( - f"Removing repository {repository['repository']}, it is marked as critical" - ) - was_installed = True - stored["acknowledged"] = False - # Uninstall from HACS - repo.remove() - await repo.uninstall() - stored_critical.append(stored) - removed_repo.update_data(stored) - - # Save to FS - await async_save_to_store(self.hass, "critical", stored_critical) - - # Resart HASS - if was_installed: - self.logger.critical("Resarting Home Assistant") - self.hass.async_create_task(self.hass.async_stop(100)) - - async def recuring_tasks_installed(self, notarealarg=None): - """Recuring tasks for installed repositories.""" - self.logger.debug( - "Starting recuring background task for installed repositories" - ) - self.system.status.background_task = True - self.hass.bus.async_fire("hacs/status", {}) - self.logger.debug(self.github.ratelimits.remaining) - self.logger.debug(self.github.ratelimits.reset_utc) - for repository in self.repositories: - if ( - repository.status.installed - and repository.data.category in self.common.categories - ): - self.factory.tasks.append(self.factory.safe_update(repository)) - - await self.factory.execute() - await self.handle_critical_repositories() - self.system.status.background_task = False - self.hass.bus.async_fire("hacs/status", {}) - await self.data.async_write() - self.logger.debug("Recuring background task for installed repositories done") - - async def recuring_tasks_all(self, notarealarg=None): - """Recuring tasks for all repositories.""" - self.logger.debug("Starting recuring background task for all repositories") - await self.hass.async_add_executor_job(setup_extra_stores) - self.system.status.background_task = True - self.hass.bus.async_fire("hacs/status", {}) - self.logger.debug(self.github.ratelimits.remaining) - self.logger.debug(self.github.ratelimits.reset_utc) - for repository in self.repositories: - if repository.data.category in self.common.categories: - self.factory.tasks.append(self.factory.safe_common_update(repository)) - - await self.factory.execute() - await self.load_known_repositories() - await self.clear_out_removed_repositories() - self.system.status.background_task = False - await self.data.async_write() - self.hass.bus.async_fire("hacs/status", {}) - self.hass.bus.async_fire("hacs/repository", {"action": "reload"}) - self.logger.debug("Recuring background task for all repositories done") - - async def clear_out_removed_repositories(self): - """Clear out blaclisted repositories.""" - need_to_save = False - for removed in removed_repositories: - if self.is_known(removed.repository): - repository = self.get_by_name(removed.repository) - if repository.status.installed and removed.removal_type != "critical": - self.logger.warning( - f"You have {repository.data.full_name} installed with HACS " - + f"this repository has been removed, please consider removing it. " - + f"Removal reason ({removed.removal_type})" - ) - else: - need_to_save = True - repository.remove() - - if need_to_save: - await self.data.async_write() - - async def get_repositories(self): - """Return a list of repositories.""" - repositories = {} - for category in self.common.categories: - repositories[category] = await get_default_repos_lists( - self.session, self.configuration.token, category - ) - org = await get_default_repos_orgs(self.github, category) - for repo in org: - repositories[category].append(repo) - - for category in repositories: - for repo in repositories[category]: - if repo not in self.common.default: - self.common.default.append(repo) - return repositories - - async def load_known_repositories(self): - """Load known repositories.""" - self.logger.info("Loading known repositories") - repositories = await self.get_repositories() - - for item in await get_default_repos_lists( - self.session, self.configuration.token, "removed" - ): - removed = get_removed(item["repository"]) - removed.reason = item.get("reason") - removed.link = item.get("link") - removed.removal_type = item.get("removal_type") - - for category in repositories: - for repo in repositories[category]: - if is_removed(repo): - continue - if self.is_known(repo): - continue - self.factory.tasks.append(self.factory.safe_register(repo, category)) - await self.factory.execute() - self.logger.info("Loading known repositories finished") diff --git a/custom_components/hacs/hacsbase/__pycache__/__init__.cpython-37.pyc b/custom_components/hacs/hacsbase/__pycache__/__init__.cpython-37.pyc deleted file mode 100644 index b03ea9db69dae08fb53c764341057b4fd05c2259..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 10796 zcmbVS+ix3JdY>DwqNw}Tiafq1^g43ZNz=6TI!0 zJHPKb^ZxjFUc=wNUjOr-KD(}I|3#JFpNYaPq`=lSO=ylLbYb|qqw}xf82B}Pvu-(- zPJNc2s;8ZFJ>z7!p7OKxoRh2Pojljm{#d=>6u6x6$LmF>$mOg*QJ-`sxt#N->eJ3N zm-GHieb$-f@|ZtYpLgc#3(f-93;tq#$yur|JIh=j_s`T-%Nj4Lunzsg_W>mHjdeEms?8f8_cYKK>XhrB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Rif>i0Ohb3+T$XwRUPyf(C+m`BTP6G)mqu_*qtq;;}wNKV}P`a|uo_)t4~r;X6> zXK$PsM_1Gc)K)Q?%mN@{KO;j`N@l`>KinbA03SxQnndbe2yPNKHt_EA3!FnSB?a&C zRuoPaePA(;TgE%~76JfNO{rHM6EvC?U4=@-X9%d1#imppD>xJ1HHyYzyoo`3hRb7zZ{d1A zemO`+C&?zNB^NDz2zy;c_xp^>*3vTd5GQgFWvFvQ{sriwIHd1(5Z6T)UOvm-L8K?x z^F(PzF(=+?A>#CFT8e-o|B|v_QATo6IR_^0Ne(|l&QLEi|Iet@7y9EY^m|c9miMJ} zA4;)>pi5otolrFjP^=#|2tz%AUj&YpA^7Qkl2Mces`5xSnK&zqCh~gJdxaq|mUKi_ z5l-DGeSg%8C8CxxSWtO7+Ek3!E*@FhgyGK>Pn@7b7XR+rvi|>W_%Mi8ukj`-x z89q+vy{A{gjtNPcMrmH=u(xT2O!rFzMQ?(-Ql6Kn#L9S^N;YL*Ad3qS?FhuxJ-jXz z@*QfwNf}FBzK82n{UK!=luc5$OBn?_l$A+_qa&v2u^S6)#nW=r)Y`#CnpMhMj@5W<3C+U6;gRCdoDYXeJ8(=pUciI8#viqjU03ef?UJs zq*_BsUlzP{2!Er-#+dW6RoEF;?mM~M&i7vOv>wGsymmj?2^4peoOiB&%d{Tv_POYo z(S)$==?}9M1$X`CHeLlPgMh*bEFI#PZEsLhto1bgEKQ@2x%fLL1$<@(;w#3@D3He4 t8|wSCn~)Y-a0QtK4=4*OU=lu1fkXz24R}JSf{u5#W-(vP7IVm_{ui{7#e4t& diff --git a/custom_components/hacs/hacsbase/__pycache__/backup.cpython-37.pyc b/custom_components/hacs/hacsbase/__pycache__/backup.cpython-37.pyc deleted file mode 100644 index 38e87744f3d223e2844103a36b596b526f458d8d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3631 zcmc&$OOG7Y6~4FL{dC(Hk8Mck07>Y?=?)P>D2jp^^NK(t3kW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8#NQSg`23qSG=Zt*gq}Ki)!QeqEs?GIB4F{T*6VlF!P;ifK z>X_iEKIW^Rk$9ZM6C{2p+y5MsUqi0h-t)Y!*HY9!XqS8GH-bj_m*_35ECR(59T%q~ z_}Y#N=*6}xWAJE6lTTq#JxPKrU2nEx2HGIV77FhVWeEEtJ>XL!0gHS3Ya95??(^RR D56wK6 diff --git a/custom_components/hacs/hacsbase/__pycache__/configuration.cpython-37.pyc b/custom_components/hacs/hacsbase/__pycache__/configuration.cpython-37.pyc deleted file mode 100644 index 89c0712c42ea95ff35fb852049f7303fad91202a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2409 zcma)8%Wm676rCX{iIOGD@A#1i<2Vl`jSK``6h=@qaoS{I7)8@20D+dJIb)eIMba~) z#3pF8sIu)Bqy>^?m)-VLX4_SMp{w3Ivel~XqBMBs%;n|qzU7ClR)fIx>%H&3`OPKd zcify`4vnZ8fi}@!Hwx4?2S-Kzh1|n2(mUiF6;bgZ%b#*7}^|%1mdJ;zR)8mNesPQF8 zn&CiYL8z37_hf``oL^%jpHV_M0po~oeFbLuHnV((S9q1#_X%_S8h3$LfLHyxk=Km8 zVdU<85)*%lH$kUvc+2nx=uG+3M!#wF+eW`-_>AGxz}x<;(U~#wIU}Dn=ggaP=8Sy7 z$mfAC_=`q=5%`k7WcUT6bHV5=17Go%jeHgOn!jTBMc|kGRl_eE{WYV11^ASI(a1gE zSN%(duN$4qM&}yv4gU)Fz{l&rZ?K!MiGP*dVjWo5`8BY#$!`B-u{-R8*A66ZgH1u= z?&{V=&WeSJtrsPsl-;5o<~a*_KT9`($xS^y76f^y4nEWMv7l(DTumyE1x8ud$9r9k zOvUKtXbpI(#L2FnI@_v~oa+kXdxM^~8Gq?Jk44OMYhPrk;wcOI8RL3pyp6Jc9!5&n zGE-ktx3hFF3k8eQUcj=H7t^m^z1jq|{veIj$)=vllR+;|jbTMQKT!u+8pue*xdJ!m zCIlnvTNARP-DmMunB)iH-RSOKc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_components/hacs/hacsbase/__pycache__/data.cpython-37.pyc b/custom_components/hacs/hacsbase/__pycache__/data.cpython-37.pyc deleted file mode 100644 index 4f51ff06852b320cf59e6d52549c6ad802cd0d36..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4265 zcmZ`+OOxBi5ylKa5+wNC<#HdE;qf`_{wq-r4oK2P170FD=C@crd1r{WB z2jFU#1ty2pA%`54OD>jE)X}-+H^jeUt~vQH=#=gTNN((yEH-9(W*Rd+{e9j1q*5tq z@cGw`KYtZ$Y1)6VGyfRSxC6iFuONih(*zSdU_;*HOcS~=0)1%o3~J|s+%VtEQ#&6N zhGx&Cb|EMZOTE(2>RHfd!VJp8O0P1k_Nv2LuSU9JP#-pW4W`}KL`hiBHDR6e-io{G z=Fgei6lGC)sf((pJvVx5qP(kh>XX)8CwAHg&PW8VZ10D%{ovzIce~%iPPGnG`Om|_ zz?I+gv|ISYXODIt{(c8Wst=rg^vFF5BQFl+8EDF=`JFTJ_T4D%aJA}0XQRFyIVY|i zhjs+hT(y=egU}K7z6^({x}z&|;Kud=SWr#r4#N{y*m7>&b0cNpcs2qrTb1s>i(*$U zXPxzN)AJAR_zwJ{>mXdM$H4Jiu%0fs(4T8PLl`0l&z#7M0zC7=1cwxriKjrPOltF1 zyB|1F)a^5{gdcpO`A^{&wLrvhBj+s9Y!>r#4W954Fs4teha)fcoWPs7-ANHo*A-xT zr(;Mopz;B^R~E5j;5Z!3h}>ZRTTM1V`FeZ1ACC6D!FGQP4jkJ3aCj7s+)*5D<8%^x zPULQ*-R{wuGHu&~m)dp>mPZ(R8ZWU)V}6+Ke0*^noP($MH~b<2hf6eH^O?_mJ!)lb zLv9JSizB&NUhr3pX>ozZOrg`W=$Epml|9SCc&VT355YMPz-Np3naAVGUG1DL$31Pz zPX9@3t9P}h|CsWG`!&H1i}EG5{Q6WM8G=o9=r#NmlB*<}AlLjBwbwy%e}m*E$Swb8 z)V@UR%OtOWyy~|>HvDTKx&KCjR=NKs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(nK4WFXTrkeu3f!3PKZ6hJkQXI+RuNmpF10#jj8h6qpcJ}ju5tc>h{Or9orB0)VfSPb)jratrtH#?Yk-en~(`& z4-!YGNXShOLbQaAR5?hOkTZZ*mvy2t5Y!TVr;6^})DMvjsgdsKbC?$02BGmL!>_?i zUItm#R{)(WP%)KRRWAX`>x{DvUI&b~7}pW^O}!3tnuy~10>zo(olXIBDCQE|RwWzR zb_{H1tFmn$kDVYJDL|eL`?f7tVGr^FiZ4-M&38dy#+4Ni=G$7WEM4WL3nnAn{903hn=)PsuasG&1UPz`})Gh2%kqKP?$SazBEa{{sK3iaWS39Yv5D)p&otwj1^e^#H=KuZF!!y++nc?XG0KX1q3Q(fBG>V5qg%VU^`q0P;1;_1V)<(n%U9omuDbj`rB1l# zL)`-5meo`#NSE9D7?-5AP?pbAroeqJw|QZgzrlguqCfA|k!<6Vub3;$D9AZC#9@YzS2#J|>oK88`*orIngE*p5`XFuH}n2mMf|U0MBK*`aS6ZNG$-i%yf~ZhVQdj z=zP9>ibX9Dgw6_`tK8Xmfs{2Mjf&M?dGTUMFTI832%%T^|1xyc7%G%-O74vv-)IwA zSI*~=Tcj>Zjf&K|xkW||@fn|h=uL;9b<ri81g;!4F02dK&-$ diff --git a/custom_components/hacs/hacsbase/__pycache__/task_factory.cpython-37.pyc b/custom_components/hacs/hacsbase/__pycache__/task_factory.cpython-37.pyc deleted file mode 100644 index c48f24654b57ffa047fd0b039bf69d3e96d02703..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2564 zcmdT`L66)t6te(i`~XffM~>V%!N2g8)BXicyys+ghwUQHSn{*;Y`o} z4udeDgges~b7wScGcW9LGF@Ume4V*RSd#@W2@76W;aNs^NUwDWe#v%^>ZVGEobgP> z@UeXR{^$2nwN>ukd7AK%N{bw{ovk>Li;5M&2dPwCM1qeBnW{n@9G(G#hYb+p_8!b% z@5c%16Ld5$7Ibbwl{Z0ff=3N4Mw#`Jgf_F81Fgdv%!RhWJmy2|R+|q!)`E?<^%>mF z!&pAKTRWg&3k$aBU=yl53t~VfBm!(ff+JXLZQt!#x}jjP)Sf8wJk1AiKu7Yd{|gaq zSoGHi8%dG()4@hkN>vP_q!^Bhoaahz;JJ+0jV0eeGf{oY_0fU$qbSW&6-6t!0S5%3 zE*-C(*zfv$S~A}_ZrX?X2UPhxhzZ#za#hhOU^Al_%6;+oM}bKSu{v*BjkYUuId9$3rg8n?adzJ^~V8!$r@ofDewdm2UERf;$so zav*@X1uMC@c$72@dlhMJXZm|kkU_JE-t||@g|D5P$1Nzi{fn%HOS&J zD&9eXfGrTbW#Fltd;~+U0($XOK&urA#vcn(;E2i-_*kIww?Jh`n-e;*URcKj%x^A` z`70nZ5O=&hC-cN!AhP}3J|eO^^%SJIV>|yrnRP-YT%MYmYCT3f_FpcF)K639m>L=^%=R1uHY`x1;F0GR~?Iv4oqy zh~f&0t0=CaI1Z-iVagKtW-UXNm?wSeJN}v<_<_;)&S?*mDWqDl3d7pRTa5YBq|54_ zw&S!Iq-w9+jYp}$OkaQH)m`7izX=rh>aHK%TWPX^zVUAhcm`KruFnxz*j!~&&(TO(u_IEX=m5|#}$H~V2YJ^LI8lav081~wjpy{f&DiSN^Q~r diff --git a/custom_components/hacs/hacsbase/backup.py b/custom_components/hacs/hacsbase/backup.py deleted file mode 100644 index acd20c1..0000000 --- a/custom_components/hacs/hacsbase/backup.py +++ /dev/null @@ -1,117 +0,0 @@ -"""Backup.""" -import os -import shutil -import tempfile -from time import sleep - -from integrationhelper import Logger - -BACKUP_PATH = tempfile.gettempdir() + "/hacs_backup/" - - -class Backup: - """Backup.""" - - def __init__(self, local_path, backup_path=BACKUP_PATH): - """initialize.""" - self.logger = Logger("hacs.backup") - self.local_path = local_path - self.backup_path = backup_path - self.backup_path_full = f"{self.backup_path}{self.local_path.split('/')[-1]}" - - def create(self): - """Create a backup in /tmp""" - if not os.path.exists(self.local_path): - return - if os.path.exists(self.backup_path): - shutil.rmtree(self.backup_path) - while os.path.exists(self.backup_path): - sleep(0.1) - os.makedirs(self.backup_path, exist_ok=True) - - try: - if os.path.isfile(self.local_path): - shutil.copyfile(self.local_path, self.backup_path_full) - os.remove(self.local_path) - else: - shutil.copytree(self.local_path, self.backup_path_full) - shutil.rmtree(self.local_path) - while os.path.exists(self.local_path): - sleep(0.1) - self.logger.debug( - f"Backup for {self.local_path}, created in {self.backup_path_full}" - ) - except Exception: # pylint: disable=broad-except - pass - - def restore(self): - """Restore from backup.""" - if not os.path.exists(self.backup_path_full): - return - - if os.path.isfile(self.backup_path_full): - if os.path.exists(self.local_path): - os.remove(self.local_path) - shutil.copyfile(self.backup_path_full, self.local_path) - else: - if os.path.exists(self.local_path): - shutil.rmtree(self.local_path) - while os.path.exists(self.local_path): - sleep(0.1) - shutil.copytree(self.backup_path_full, self.local_path) - self.logger.debug( - f"Restored {self.local_path}, from backup {self.backup_path_full}" - ) - - def cleanup(self): - """Cleanup backup files.""" - if os.path.exists(self.backup_path): - shutil.rmtree(self.backup_path) - while os.path.exists(self.backup_path): - sleep(0.1) - self.logger.debug(f"Backup dir {self.backup_path} cleared") - - -class BackupNetDaemon: - """BackupNetDaemon.""" - - def __init__(self, repository): - """Initialize.""" - self.repository = repository - self.logger = Logger("hacs.backup") - self.backup_path = ( - tempfile.gettempdir() + "/hacs_persistent_netdaemon/" + repository.data.name - ) - - def create(self): - """Create a backup in /tmp""" - if os.path.exists(self.backup_path): - shutil.rmtree(self.backup_path) - while os.path.exists(self.backup_path): - sleep(0.1) - os.makedirs(self.backup_path, exist_ok=True) - - for filename in os.listdir(self.repository.content.path.local): - if filename.endswith(".yaml"): - source_file_name = f"{self.repository.content.path.local}/{filename}" - target_file_name = f"{self.backup_path}/{filename}" - shutil.copyfile(source_file_name, target_file_name) - - def restore(self): - """Create a backup in /tmp""" - if os.path.exists(self.backup_path): - for filename in os.listdir(self.backup_path): - if filename.endswith(".yaml"): - source_file_name = f"{self.backup_path}/{filename}" - target_file_name = ( - f"{self.repository.content.path.local}/{filename}" - ) - shutil.copyfile(source_file_name, target_file_name) - - def cleanup(self): - """Create a backup in /tmp""" - if os.path.exists(self.backup_path): - shutil.rmtree(self.backup_path) - while os.path.exists(self.backup_path): - sleep(0.1) - self.logger.debug(f"Backup dir {self.backup_path} cleared") diff --git a/custom_components/hacs/hacsbase/configuration.py b/custom_components/hacs/hacsbase/configuration.py deleted file mode 100644 index c9bb80e..0000000 --- a/custom_components/hacs/hacsbase/configuration.py +++ /dev/null @@ -1,73 +0,0 @@ -"""HACS Configuration.""" -import attr -from integrationhelper import Logger -from custom_components.hacs.hacsbase.exceptions import HacsException - - -@attr.s(auto_attribs=True) -class Configuration: - """Configuration class.""" - - # Main configuration: - appdaemon_path: str = "appdaemon/apps/" - appdaemon: bool = False - netdaemon_path: str = "netdaemon/apps/" - netdaemon: bool = False - config: dict = {} - config_entry: dict = {} - config_type: str = None - debug: bool = False - dev: bool = False - frontend_mode: str = "Grid" - frontend_compact: bool = False - options: dict = {} - onboarding_done: bool = False - plugin_path: str = "www/community/" - python_script_path: str = "python_scripts/" - python_script: bool = False - sidepanel_icon: str = "mdi:alpha-c-box" - sidepanel_title: str = "Community" - theme_path: str = "themes/" - theme: bool = False - token: str = None - - # Config options: - country: str = "ALL" - experimental: bool = False - release_limit: int = 5 - - def to_json(self): - """Return a dict representation of the configuration.""" - return self.__dict__ - - def print(self): - """Print the current configuration to the log.""" - logger = Logger("hacs.configuration") - config = self.to_json() - for key in config: - if key in ["config", "config_entry", "options", "token"]: - continue - logger.debug(f"{key}: {config[key]}") - - @staticmethod - def from_dict(configuration: dict, options: dict): - """Set attributes from dicts.""" - if isinstance(options, bool) or isinstance(configuration.get("options"), bool): - raise HacsException("Configuration is not valid.") - - if options is None: - options = {} - - if not configuration: - raise HacsException("Configuration is not valid.") - - config = Configuration() - - config.config = configuration - config.options = options - - for conf_type in [configuration, options]: - for key in conf_type: - setattr(config, key, conf_type[key]) - - return config diff --git a/custom_components/hacs/hacsbase/const.py b/custom_components/hacs/hacsbase/const.py deleted file mode 100644 index 1e72154..0000000 --- a/custom_components/hacs/hacsbase/const.py +++ /dev/null @@ -1,10 +0,0 @@ -"""Constants for HACS""" -# pylint: disable=unused-import -STORAGE_VERSION = "6" -STORENAME = "hacs" - -# Messages -NOT_SUPPORTED_HA_VERSION = "You have version '{}' of Home Assistant, but version '{}' of '{}' require version '{}' of Home Assistant, install and upgrades are disabled for this integration untill you upgrade Home Assistant." - - -NO_ELEMENTS = "No elements to show, open the store to install some awesome stuff." diff --git a/custom_components/hacs/hacsbase/data.py b/custom_components/hacs/hacsbase/data.py deleted file mode 100644 index 1464849..0000000 --- a/custom_components/hacs/hacsbase/data.py +++ /dev/null @@ -1,152 +0,0 @@ -"""Data handler for HACS.""" -from integrationhelper import Logger -from ..const import VERSION -from ..repositories.repository import HacsRepository -from ..repositories.manifest import HacsManifest -from ..store import async_save_to_store, async_load_from_store - -from custom_components.hacs.globals import get_hacs, removed_repositories, get_removed -from custom_components.hacs.helpers.register_repository import register_repository - - -class HacsData: - """HacsData class.""" - - def __init__(self): - """Initialize.""" - self.logger = Logger("hacs.data") - self.hacs = get_hacs() - - async def async_write(self): - """Write content to the store files.""" - if self.hacs.system.status.background_task or self.hacs.system.disabled: - return - - self.logger.debug("Saving data") - - # Hacs - await async_save_to_store( - self.hacs.hass, - "hacs", - { - "view": self.hacs.configuration.frontend_mode, - "compact": self.hacs.configuration.frontend_compact, - "onboarding_done": self.hacs.configuration.onboarding_done, - }, - ) - - await async_save_to_store( - self.hacs.hass, "removed", [x.__dict__ for x in removed_repositories] - ) - - # Repositories - content = {} - for repository in self.hacs.repositories: - if repository.repository_manifest is not None: - repository_manifest = repository.repository_manifest.manifest - else: - repository_manifest = None - content[repository.information.uid] = { - "authors": repository.data.authors, - "category": repository.data.category, - "description": repository.data.description, - "downloads": repository.releases.downloads, - "full_name": repository.data.full_name, - "first_install": repository.status.first_install, - "hide": repository.status.hide, - "installed_commit": repository.versions.installed_commit, - "installed": repository.status.installed, - "last_commit": repository.versions.available_commit, - "last_release_tag": repository.versions.available, - "last_updated": repository.information.last_updated, - "name": repository.data.name, - "new": repository.status.new, - "repository_manifest": repository_manifest, - "selected_tag": repository.status.selected_tag, - "show_beta": repository.status.show_beta, - "stars": repository.data.stargazers_count, - "topics": repository.data.topics, - "version_installed": repository.versions.installed, - } - - await async_save_to_store(self.hacs.hass, "repositories", content) - self.hacs.hass.bus.async_fire("hacs/repository", {}) - self.hacs.hass.bus.fire("hacs/config", {}) - - async def restore(self): - """Restore saved data.""" - hacs = await async_load_from_store(self.hacs.hass, "hacs") - repositories = await async_load_from_store(self.hacs.hass, "repositories") - removed = await async_load_from_store(self.hacs.hass, "removed") - try: - if not hacs and not repositories: - # Assume new install - self.hacs.system.status.new = True - return True - self.logger.info("Restore started") - - # Hacs - self.hacs.configuration.frontend_mode = hacs.get("view", "Grid") - self.hacs.configuration.frontend_compact = hacs.get("compact", False) - self.hacs.configuration.onboarding_done = hacs.get("onboarding_done", False) - - for entry in removed: - removed_repo = get_removed(entry["repository"]) - removed_repo.update_data(entry) - - # Repositories - for entry in repositories: - repo = repositories[entry] - if not self.hacs.is_known(repo["full_name"]): - await register_repository( - repo["full_name"], repo["category"], False - ) - repository = self.hacs.get_by_name(repo["full_name"]) - if repository is None: - self.logger.error(f"Did not find {repo['full_name']}") - continue - - # Restore repository attributes - repository.information.uid = entry - await self.hacs.hass.async_add_executor_job( - restore_repository_data, repository, repo - ) - - self.logger.info("Restore done") - except Exception as exception: # pylint: disable=broad-except - self.logger.critical(f"[{exception}] Restore Failed!") - return False - return True - - -def restore_repository_data( - repository: type(HacsRepository), repository_data: dict -) -> None: - """Restore Repository Data""" - repository.data.authors = repository_data.get("authors", []) - repository.data.description = repository_data.get("description") - repository.releases.last_release_object_downloads = repository_data.get("downloads") - repository.information.last_updated = repository_data.get("last_updated") - repository.data.topics = repository_data.get("topics", []) - repository.data.stargazers_count = repository_data.get("stars", 0) - repository.releases.last_release = repository_data.get("last_release_tag") - repository.status.hide = repository_data.get("hide", False) - repository.status.installed = repository_data.get("installed", False) - repository.status.new = repository_data.get("new", True) - repository.status.selected_tag = repository_data.get("selected_tag") - repository.status.show_beta = repository_data.get("show_beta", False) - repository.versions.available = repository_data.get("last_release_tag") - repository.versions.available_commit = repository_data.get("last_commit") - repository.versions.installed = repository_data.get("version_installed") - repository.versions.installed_commit = repository_data.get("installed_commit") - - repository.repository_manifest = HacsManifest.from_dict( - repository_data.get("repository_manifest", {}) - ) - - if repository.status.installed: - repository.status.first_install = False - - if repository_data["full_name"] == "hacs/integration": - repository.versions.installed = VERSION - repository.status.installed = True diff --git a/custom_components/hacs/hacsbase/exceptions.py b/custom_components/hacs/hacsbase/exceptions.py deleted file mode 100644 index 62e5389..0000000 --- a/custom_components/hacs/hacsbase/exceptions.py +++ /dev/null @@ -1,9 +0,0 @@ -"""Custom Exceptions.""" - - -class HacsException(Exception): - """Super basic.""" - - -class HacsExpectedException(HacsException): - """For stuff that are expected.""" diff --git a/custom_components/hacs/hacsbase/task_factory.py b/custom_components/hacs/hacsbase/task_factory.py deleted file mode 100644 index 8b32aa9..0000000 --- a/custom_components/hacs/hacsbase/task_factory.py +++ /dev/null @@ -1,75 +0,0 @@ -# pylint: disable=missing-docstring,invalid-name -import logging -import time -from datetime import timedelta -import asyncio -from aiogithubapi import AIOGitHubException - -from custom_components.hacs.hacsbase.exceptions import HacsException -from custom_components.hacs.helpers.register_repository import register_repository - - -max_concurrent_tasks = asyncio.Semaphore(15) -sleeper = 5 - -logger = logging.getLogger("hacs.factory") - - -class HacsTaskFactory: - def __init__(self): - self.tasks = [] - self.running = False - - async def execute(self): - if not self.tasks: - logger.debug("No tasks to execute") - return - if self.running: - logger.debug("Allready executing tasks") - return - try: - self.running = True - logger.info("Processing %s tasks", len(self.tasks)) - start = time.time() - await asyncio.gather(*self.tasks) - logger.info( - "Task processing of %s tasks completed in %s seconds", - len(self.tasks), - timedelta(seconds=round(time.time() - start)).seconds, - ) - self.tasks = [] - self.running = False - except RuntimeError: - logger.warning("RuntimeError, Clearing current tasks") - self.tasks = [] - self.running = False - - async def safe_common_update(self, repository): - async with max_concurrent_tasks: - try: - await repository.common_update() - except (AIOGitHubException, HacsException) as exception: - logger.error("%s - %s", repository.data.full_name, exception) - - # Due to GitHub ratelimits we need to sleep a bit - await asyncio.sleep(sleeper) - - async def safe_update(self, repository): - async with max_concurrent_tasks: - try: - await repository.update_repository() - except (AIOGitHubException, HacsException) as exception: - logger.error("%s - %s", repository.data.full_name, exception) - - # Due to GitHub ratelimits we need to sleep a bit - await asyncio.sleep(sleeper) - - async def safe_register(self, repo, category): - async with max_concurrent_tasks: - try: - await register_repository(repo, category) - except (AIOGitHubException, HacsException) as exception: - logger.error("%s - %s", repo, exception) - - # Due to GitHub ratelimits we need to sleep a bit - await asyncio.sleep(sleeper) diff --git a/custom_components/hacs/handler/__init__.py b/custom_components/hacs/handler/__init__.py deleted file mode 100644 index ab064c7..0000000 --- a/custom_components/hacs/handler/__init__.py +++ /dev/null @@ -1 +0,0 @@ -"""Initialize handlers.""" diff --git a/custom_components/hacs/handler/__pycache__/__init__.cpython-37.pyc b/custom_components/hacs/handler/__pycache__/__init__.cpython-37.pyc deleted file mode 100644 index fad57cd8102ba070a0c1322f8222e60538e4d3ba..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 169 zcmZ?b<>g`kf{jM?aWX*qF^B^Lj6jA15EpX*i4=w?h7`tN22G|a5zoBLlFY=M%&Js{ zjKsW@oYbOXJwHvxTkP@iDf!9q@hcgMn1EWq#4jWLtWTY&` diff --git a/custom_components/hacs/handler/__pycache__/download.cpython-37.pyc b/custom_components/hacs/handler/__pycache__/download.cpython-37.pyc deleted file mode 100644 index 967a54e981e1c9cbd6b86a6748bfda0b37fb1581..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2115 zcmZWqPmdcl6t_KplT5PN>~>kozfev=G*Jr&s47&I0*izywLMUBAexMw>|`h7U_0#Y zFjJ&%uT?9KR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NqYD&KP%yFvU$}z4*uwjzU?_hk zVM!yRNC8Dr&WxzY#=p-uA?G~fTKp1AOz$5u$`H7>dqI_ElG}2OU zi7V7z$gFOchrMoB{1new&FzQzh0z`L^P7hTdgto5zIe3hiw7$5h@w6HlqB!#*~?Fy z-HYzymeVe;p;4Zt(YFtI1D97!c~KJ%(I|_NQBhj8G$W}-g5)NMl^Mn*1o8uby*Ui| mk?-Nw2?!iiI{ZYFyohGk?Pa@aSE?0z-EP>|ZPQ+|&Hn))SlXcg diff --git a/custom_components/hacs/helpers/__pycache__/install.cpython-37.pyc b/custom_components/hacs/helpers/__pycache__/install.cpython-37.pyc deleted file mode 100644 index 66ae99df6813a2cea24665e606061c3efff1452e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3194 zcmai0&yO3o6&`Y=(MT(4<;~jO#;L0~jS~f~Hb0D@1qvfhHh^>40*%q60+PY(kdj6_ zno-En+AFM4pbmP z-+PbmwptAbzkj~@r%$KPInFmUSp7JNckt;1jc^8zV1g%Xz--S49KD;k)5@U2Xs(h} zr{2J`bTz3>{eeHN59)U8C5`FUU<-6j_@6t2rl^Ys`j*%dP4sQi5^eO`f`91rwin$G zQk{oM(jCiWCRKNssjiZs=vR`hUM;=TkLLk*n7g%3+uDEcH}I7cIKS3l^@b} z{yf>e8bgmwI3#BeuNU-z^U2Pm3g~Og7tSi@j5$x(XLmj#|G^HD1hq4{`h@8jcKU-*Fv!f5(XmX;#kA-oJRl)$7pmCS9~IPHs#Z$2CZQTkr(#q#W6~ z=HicdeA`o%gM{s1~=EI=U8_~00rPSQs44H<*#g>K7W-)gm+-LzPR;XHU-wY zaRKF!Fxl0)oat^h?B-*6f#}oz;o|Ona89JsBnE+d*;ID#Y8@jG(!3k%ZkpxYD4Wi( z(orJ258`}`WiU}{Evk7q()*^K%3N5S|G@Sa*Y+to0z?rl1)v8aRx&~yo$fC>G`Alk z07l9hc)!;(m*z7O<}z3Z+^O+T!Xzf9@uX6j(q=0P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z1Qhbz45uidAuG}WR59m_r*QPz2 zA0@FK7b18}J`;T{D9!Nc>u3mlP1d2rW&Z_D<0h*xMY6q)sRe<^q99OLFjm*lnCnkP zN}s^eA0^pQm}rXv^V&}ck>n9f?#tCXSKIPCxcUDS%0fU@v8b=F{FH`$bL;-99NJQ7 s)36OEizj=$4fxqGr3f|tZ>O1_W3uCqCa8t-x2_?;IYra zv1lAI#A1oYh{p_HB9^f9M>57dhF`+6OUzm@YpZlE~1m@1Ti#go8B59g;;!oSv-r)2ykLX42N}= zt@jM?N1LqlDr3nKv2;JWYO##9mNBe(v*t_4f-{ajG-n`g%84rGoam~-hA*@gPMb4Q zX+vtuiBQcymC?#^#RiA|o&Yp4MQF|^;q?_7UjGGKp=T>ZJfi*fxO>Y*=YzyYX<+xMT}a`43m9cl!rlodIgGM%TjOVBc7S{}7?xU9 zVlpgi>-3zKdcM$#D`$t(q6F87V~0VK!Q#w!C*09nnx?*4x6Dlo5U4QF##3@Cq$Gv3njCZDObvMz z5e&K)Wg!P|KlW4K5mqSc3I&72Ac=oqIp_l!^eZXzRO`p)A@pK)g9~$6 zyDlLAc=HmKymE9ZCR1)GTq{KlV7CW3w)xiL9!g+<2{Ml$*3W#4Ql?8v&3<4EiOq0* f5?XDN?$m0kHU;y8xn{NGFT;0ZGjKqQ?|1(JF2WHh diff --git a/custom_components/hacs/helpers/__pycache__/network.cpython-37.pyc b/custom_components/hacs/helpers/__pycache__/network.cpython-37.pyc deleted file mode 100644 index f56af79cf55a236a011dc2c0530c9554a24bbded..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 431 zcmY*Vu};G<5RH>G4X6b%!_YMhiC{(u!HQTw3>k=m?Iu+<8}8|x1}b`c=C!L;WH!pl9ugx|2%&wWNbXo5D( zL*%g-i0G5$12KH`l7r>(vjjC=Otf_G24?9m8h8oo)E zFuW-G$QnMA4oKFYkXZ$#Q$}xR0o``fykB$6hSU&WwMNVvc})kfG%sW$HVXa#Hcf5q diff --git a/custom_components/hacs/helpers/__pycache__/register_repository.cpython-37.pyc b/custom_components/hacs/helpers/__pycache__/register_repository.cpython-37.pyc deleted file mode 100644 index dcd9dee9987d328dd151e3afd0c4cba25778f5f7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1455 zcmZ`(&2Jk;6rb6T*|lRkPSS+7NN6QKiV?CU)C&j@1qBimH7Jf~>qA%Tow2?4eraY+ z@oHTp!XLoBL~@QCxp3sde=%21{0p3Tvzs`T(vG$B@#cN}-uu1rm(6A!!T95&pPrf) zLjS14)zD${1$^QYm?#<`im4XjNE>Ka?e$QPjDb<^jnIt9fJD~7f^&@$YW;!-Hnsbx zQ_uHK*frIg+A4%#*Fa$1)};) z=l3&{8U=cR&b2fAGcIsp%q;$GMhg4_QS(x26!;EUpW&rhXuo29caaw6%DO;@h>`;Y zp7p6ctxfCvIkgINT660#Z%iBfuPWlI3Fp>y^8&AR+u~2S+gfc?Tg9ifbG^JR?fMAx zw^lo}u4Io;d}N^P)~pV(Z)3D1808<{^qi4PUmFDhkBxIv<@5+JQnDn^$z${c#oA+q zc6YkBdV@A;i*8oPV7@)QL)*U@7r-=V+*O!WbV`8Ft=I9%q0)-aos<2O?~eP2r^hEx z+^>!v^!xk$ysfD01#!m4+*1_iwf-zf(;yx@`8!S^oH)s#KYsASfWFivj_-kqYL|y! z=bPWF+tS<_CEUqvXXFJTquqSB>aohV<0nxXvW(@;O9kgykWCzkyZL4b2qv4B?+Ng^^Yn+vJO?3uL7ia-%0VVoyi0IoD;F_i{X!jrYp zJPh5~i)j%V{!k}w&M8JA{hA&nr0YH2EjG4TXA9)kC}Cl;~qjsni)MyU~%m6iG& zl81s^K2*TovG|^{wy(&Lraxi+Ou6%`%=m^X>d<)OXv5%$HNXj?bM{@x-{`!S2nyL8AF@Qhh7>~<$CJ|>WbKLm<+v8lJ&Icb#roS%pHl3#d8YQ@p@T^9BkugawAC)HLGMM+#e z@WR0NWB}cE!mFJ16A{RS2Taue0l!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udr}!WHhQH7N diff --git a/custom_components/hacs/helpers/download.py b/custom_components/hacs/helpers/download.py deleted file mode 100644 index 20414db..0000000 --- a/custom_components/hacs/helpers/download.py +++ /dev/null @@ -1,181 +0,0 @@ -"""Helpers to download repository content.""" -import pathlib -import tempfile -import zipfile -from custom_components.hacs.hacsbase.exceptions import HacsException -from custom_components.hacs.handler.download import async_download_file, async_save_file -from custom_components.hacs.helpers.filters import filter_content_return_one_of_type - - -class FileInformation: - def __init__(self, url, path, name): - self.download_url = url - self.path = path - self.name = name - - -def should_try_releases(repository): - """Return a boolean indicating whether to download releases or not.""" - if repository.data.zip_release: - if repository.data.filename.endswith(".zip"): - if repository.ref != repository.data.default_branch: - return True - if repository.ref == repository.data.default_branch: - return False - if repository.data.category not in ["plugin", "theme"]: - return False - if not repository.releases.releases: - return False - return True - - -def gather_files_to_download(repository): - """Return a list of file objects to be downloaded.""" - files = [] - tree = repository.tree - ref = f"{repository.ref}".replace("tags/", "") - releaseobjects = repository.releases.objects - category = repository.data.category - remotelocation = repository.content.path.remote - - if should_try_releases(repository): - for release in releaseobjects or []: - if ref == release.tag_name: - for asset in release.assets or []: - files.append(asset) - if files: - return files - - if repository.content.single: - for treefile in tree: - if treefile.filename == repository.data.file_name: - files.append( - FileInformation( - treefile.download_url, treefile.full_path, treefile.filename - ) - ) - return files - - if category == "plugin": - for treefile in tree: - if treefile.path in ["", "dist"]: - if remotelocation == "dist" and not treefile.filename.startswith( - "dist" - ): - continue - if not remotelocation: - if not treefile.filename.endswith(".js"): - continue - if treefile.path != "": - continue - if not treefile.is_directory: - files.append( - FileInformation( - treefile.download_url, treefile.full_path, treefile.filename - ) - ) - if files: - return files - - if repository.data.content_in_root: - if not repository.data.filename: - if category == "theme": - tree = filter_content_return_one_of_type( - repository.tree, "", "yaml", "full_path" - ) - - for path in tree: - if path.is_directory: - continue - if path.full_path.startswith(repository.content.path.remote): - files.append( - FileInformation(path.download_url, path.full_path, path.filename) - ) - return files - - -async def download_zip(repository, validate): - """Download ZIP archive from repository release.""" - contents = [] - try: - for release in repository.releases.objects: - repository.logger.info( - f"ref: {repository.ref} --- tag: {release.tag_name}" - ) - if release.tag_name == repository.ref.split("/")[1]: - contents = release.assets - - if not contents: - return validate - - for content in contents: - filecontent = await async_download_file(content.download_url) - - if filecontent is None: - validate.errors.append(f"[{content.name}] was not downloaded.") - continue - - result = await async_save_file( - f"{tempfile.gettempdir()}/{repository.data.filename}", filecontent - ) - with zipfile.ZipFile( - f"{tempfile.gettempdir()}/{repository.data.filename}", "r" - ) as zip_file: - zip_file.extractall(repository.content.path.local) - - if result: - repository.logger.info(f"download of {content.name} complete") - continue - validate.errors.append(f"[{content.name}] was not downloaded.") - except Exception as exception: # pylint: disable=broad-except - validate.errors.append(f"Download was not complete [{exception}]") - - return validate - - -async def download_content(repository): - """Download the content of a directory.""" - contents = gather_files_to_download(repository) - repository.logger.debug(repository.data.filename) - if not contents: - raise HacsException("No content to download") - - for content in contents: - if repository.data.content_in_root and repository.data.filename: - if content.name != repository.data.filename: - continue - repository.logger.debug(f"Downloading {content.name}") - - filecontent = await async_download_file(content.download_url) - - if filecontent is None: - repository.validate.errors.append(f"[{content.name}] was not downloaded.") - continue - - # Save the content of the file. - if repository.content.single or content.path is None: - local_directory = repository.content.path.local - - else: - _content_path = content.path - if not repository.data.content_in_root: - _content_path = _content_path.replace( - f"{repository.content.path.remote}", "" - ) - - local_directory = f"{repository.content.path.local}/{_content_path}" - local_directory = local_directory.split("/") - del local_directory[-1] - local_directory = "/".join(local_directory) - - # Check local directory - pathlib.Path(local_directory).mkdir(parents=True, exist_ok=True) - - local_file_path = (f"{local_directory}/{content.name}").replace("//", "/") - - result = await async_save_file(local_file_path, filecontent) - if result: - repository.logger.info(f"download of {content.name} complete") - continue - repository.validate.errors.append(f"[{content.name}] was not downloaded.") - diff --git a/custom_components/hacs/helpers/filters.py b/custom_components/hacs/helpers/filters.py deleted file mode 100644 index 4f98491..0000000 --- a/custom_components/hacs/helpers/filters.py +++ /dev/null @@ -1,55 +0,0 @@ -"""Filter functions.""" - - -def filter_content_return_one_of_type( - content, namestartswith, filterfiltype, attr="name" -): - """Only match 1 of the filter.""" - contents = [] - filetypefound = False - for filename in content: - if isinstance(filename, str): - if filename.startswith(namestartswith): - if filename.endswith(f".{filterfiltype}"): - if not filetypefound: - contents.append(filename) - filetypefound = True - continue - else: - contents.append(filename) - else: - if getattr(filename, attr).startswith(namestartswith): - if getattr(filename, attr).endswith(f".{filterfiltype}"): - if not filetypefound: - contents.append(filename) - filetypefound = True - continue - else: - contents.append(filename) - return contents - - -def find_first_of_filetype(content, filterfiltype, attr="name"): - """Find the first of the file type.""" - filename = "" - for _filename in content: - if isinstance(_filename, str): - if _filename.endswith(f".{filterfiltype}"): - filename = _filename - break - else: - if getattr(_filename, attr).endswith(f".{filterfiltype}"): - filename = getattr(_filename, attr) - break - return filename - - -def get_first_directory_in_directory(content, dirname): - """Return the first directory in dirname or None.""" - directory = None - for path in content: - if path.full_path.startswith(dirname) and path.full_path != dirname: - if path.is_directory: - directory = path.filename - break - return directory diff --git a/custom_components/hacs/helpers/get_defaults.py b/custom_components/hacs/helpers/get_defaults.py deleted file mode 100644 index 744540d..0000000 --- a/custom_components/hacs/helpers/get_defaults.py +++ /dev/null @@ -1,44 +0,0 @@ -"""Helpers to get default repositories.""" -import json -from aiogithubapi import AIOGitHub, AIOGitHubException -from integrationhelper import Logger -from custom_components.hacs.helpers.information import get_repository - - -async def get_default_repos_orgs(github: type(AIOGitHub), category: str) -> dict: - """Gets default org repositories.""" - repositories = [] - logger = Logger("hacs") - orgs = { - "plugin": "custom-cards", - "integration": "custom-components", - "theme": "home-assistant-community-themes", - } - if category not in orgs: - return repositories - - try: - repos = await github.get_org_repos(orgs[category]) - for repo in repos: - repositories.append(repo.full_name) - - except AIOGitHubException as exception: - logger.error(exception) - - return repositories - - -async def get_default_repos_lists(session, token, default: str) -> dict: - """Gets repositories from default list.""" - repositories = [] - logger = Logger("hacs") - - try: - repo = await get_repository(session, token, "hacs/default") - content = await repo.get_contents(default) - repositories = json.loads(content.content) - - except AIOGitHubException as exception: - logger.error(exception) - - return repositories diff --git a/custom_components/hacs/helpers/information.py b/custom_components/hacs/helpers/information.py deleted file mode 100644 index 2fde31f..0000000 --- a/custom_components/hacs/helpers/information.py +++ /dev/null @@ -1,184 +0,0 @@ -"""Return repository information if any.""" -import json -from aiogithubapi import AIOGitHubException, AIOGitHub -from custom_components.hacs.handler.template import render_template -from custom_components.hacs.hacsbase.exceptions import HacsException - - -def info_file(repository): - """get info filename.""" - if repository.data.render_readme: - for filename in ["readme", "readme.md", "README", "README.md", "README.MD"]: - if filename in repository.treefiles: - return filename - return "" - for filename in ["info", "info.md", "INFO", "INFO.md", "INFO.MD"]: - if filename in repository.treefiles: - return filename - return "" - - -async def get_info_md_content(repository): - """Get the content of info.md""" - filename = info_file(repository) - if not filename: - return "" - try: - info = await repository.repository_object.get_contents(filename, repository.ref) - if info is None: - return "" - info = info.content.replace(" str: - """Return the name of the repository for use in the frontend.""" - - if repository.repository_manifest.name is not None: - return repository.repository_manifest.name - - if repository.data.category == "integration": - if repository.integration_manifest: - if "name" in repository.integration_manifest: - return repository.integration_manifest["name"] - - return ( - repository.data.full_name.split("/")[-1] - .replace("-", " ") - .replace("_", " ") - .title() - ) - - -def version_left_higher_then_right(new: str, old: str) -> bool: - """Return a bool if source is newer than target, will also be true if identical.""" - if not isinstance(new, str) or not isinstance(old, str): - return False - if new == old: - return True - return semantic_version.Version.coerce(new) > semantic_version.Version.coerce(old) diff --git a/custom_components/hacs/helpers/network.py b/custom_components/hacs/helpers/network.py deleted file mode 100644 index acc0a1f..0000000 --- a/custom_components/hacs/helpers/network.py +++ /dev/null @@ -1,8 +0,0 @@ -"""Verify network.""" -from socket import gaierror -from integrationhelper import Logger - - -def internet_connectivity_check(host="api.github.com"): - """Verify network connectivity.""" - return True diff --git a/custom_components/hacs/helpers/register_repository.py b/custom_components/hacs/helpers/register_repository.py deleted file mode 100644 index d7c556f..0000000 --- a/custom_components/hacs/helpers/register_repository.py +++ /dev/null @@ -1,49 +0,0 @@ -"""Register a repository.""" -from aiogithubapi import AIOGitHubException -from custom_components.hacs.globals import get_hacs -from custom_components.hacs.hacsbase.exceptions import ( - HacsException, - HacsExpectedException, -) - - -async def register_repository(full_name, category, check=True): - """Register a repository.""" - hacs = get_hacs() - from custom_components.hacs.repositories import ( - RERPOSITORY_CLASSES, - ) # To hanle import error - - if full_name in hacs.common.skip: - if full_name != "hacs/integration": - raise HacsExpectedException(f"Skipping {full_name}") - - if category not in RERPOSITORY_CLASSES: - raise HacsException(f"{category} is not a valid repository category.") - - repository = RERPOSITORY_CLASSES[category](full_name) - if check: - try: - await repository.registration() - if hacs.system.status.new: - repository.status.new = False - if repository.validate.errors: - hacs.common.skip.append(repository.data.full_name) - if not hacs.system.status.startup: - hacs.logger.error(f"Validation for {full_name} failed.") - return repository.validate.errors - repository.logger.info("Registration complete") - except AIOGitHubException as exception: - hacs.common.skip.append(repository.data.full_name) - raise HacsException(f"Validation for {full_name} failed with {exception}.") - - hacs.hass.bus.async_fire( - "hacs/repository", - { - "id": 1337, - "action": "registration", - "repository": repository.data.full_name, - "repository_id": repository.information.uid, - }, - ) - hacs.repositories.append(repository) diff --git a/custom_components/hacs/helpers/validate_repository.py b/custom_components/hacs/helpers/validate_repository.py deleted file mode 100644 index f20adbf..0000000 --- a/custom_components/hacs/helpers/validate_repository.py +++ /dev/null @@ -1,90 +0,0 @@ -"""Helper to do common validation for repositories.""" -from aiogithubapi import AIOGitHubException -from custom_components.hacs.globals import get_hacs, is_removed -from custom_components.hacs.hacsbase.exceptions import HacsException -from custom_components.hacs.helpers.install import version_to_install -from custom_components.hacs.helpers.information import ( - get_repository, - get_tree, - get_releases, -) - - -async def common_validate(repository): - """Common validation steps of the repository.""" - repository.validate.errors = [] - - # Make sure the repository exist. - repository.logger.debug("Checking repository.") - await common_update_data(repository) - - # Step 6: Get the content of hacs.json - await repository.get_repository_manifest_content() - - -async def common_update_data(repository): - """Common update data.""" - hacs = get_hacs() - try: - repository_object = await get_repository( - hacs.session, hacs.configuration.token, repository.data.full_name - ) - repository.repository_object = repository_object - repository.data.update_data(repository_object.attributes) - except (AIOGitHubException, HacsException) as exception: - if not hacs.system.status.startup: - repository.logger.error(exception) - repository.validate.errors.append("Repository does not exist.") - raise HacsException(exception) - - # Make sure the repository is not archived. - if repository.data.archived: - repository.validate.errors.append("Repository is archived.") - raise HacsException("Repository is archived.") - - # Make sure the repository is not in the blacklist. - if is_removed(repository.data.full_name): - repository.validate.errors.append("Repository is in the blacklist.") - raise HacsException("Repository is in the blacklist.") - - # Get releases. - try: - releases = await get_releases( - repository.repository_object, - repository.status.show_beta, - hacs.configuration.release_limit, - ) - if releases: - repository.releases.releases = True - repository.releases.objects = releases - repository.releases.published_tags = [ - x.tag_name for x in releases if not x.draft - ] - repository.versions.available = next(iter(releases)).tag_name - for release in releases: - if release.tag_name == repository.ref: - assets = release.assets - if assets: - downloads = next(iter(assets)).attributes.get("download_count") - repository.releases.downloads = downloads - - except (AIOGitHubException, HacsException): - repository.releases.releases = False - - repository.ref = version_to_install(repository) - - repository.logger.debug( - f"Running checks against {repository.ref.replace('tags/', '')}" - ) - - try: - repository.tree = await get_tree(repository.repository_object, repository.ref) - if not repository.tree: - raise HacsException("No files in tree") - repository.treefiles = [] - for treefile in repository.tree: - repository.treefiles.append(treefile.full_path) - except (AIOGitHubException, HacsException) as exception: - if not hacs.system.status.startup: - repository.logger.error(exception) - raise HacsException(exception) diff --git a/custom_components/hacs/http.py b/custom_components/hacs/http.py deleted file mode 100644 index cab3fb1..0000000 --- a/custom_components/hacs/http.py +++ /dev/null @@ -1,83 +0,0 @@ -"""HACS http endpoints.""" -import os -from integrationhelper import Logger -from homeassistant.components.http import HomeAssistantView -from aiohttp import web -from hacs_frontend import locate_gz, locate_debug_gz - -from custom_components.hacs.globals import get_hacs - - -class HacsFrontend(HomeAssistantView): - """Base View Class for HACS.""" - - requires_auth = False - name = "hacs_files" - url = r"/hacsfiles/{requested_file:.+}" - - async def get(self, request, requested_file): # pylint: disable=unused-argument - """Handle HACS Web requests.""" - return await get_file_response(requested_file) - - -class HacsPluginViewLegacy(HacsFrontend): - """Alias for legacy, remove with 1.0""" - - name = "community_plugin" - url = r"/community_plugin/{requested_file:.+}" - - async def get(self, request, requested_file): # pylint: disable=unused-argument - """DEPRECATED.""" - hacs = get_hacs() - if hacs.system.ha_version.split(".")[1] >= "107": - logger = Logger("hacs.deprecated") - logger.warning( - "The '/community_plugin/*' is deprecated and will be removed in an upcomming version of HACS, it has been replaced by '/hacsfiles/*', if you use the UI to manage your lovelace configuration, you can update this by going to the settings tab in HACS, if you use YAML to manage your lovelace configuration, you manually need to replace the URL in your resources." - ) - - return await get_file_response(requested_file) - - -async def get_file_response(requested_file): - """Get file.""" - hacs = get_hacs() - - if requested_file.startswith("frontend-"): - if hacs.configuration.debug: - servefile = await hacs.hass.async_add_executor_job(locate_debug_gz) - hacs.logger.debug("Serving DEBUG frontend") - else: - servefile = await hacs.hass.async_add_executor_job(locate_gz) - - if os.path.exists(servefile): - return web.FileResponse(servefile) - elif requested_file == "iconset.js": - return web.FileResponse( - f"{hacs.system.config_path}/custom_components/hacs/iconset.js" - ) - - try: - if requested_file.startswith("themes"): - file = f"{hacs.system.config_path}/{requested_file}" - else: - file = f"{hacs.system.config_path}/www/community/{requested_file}" - - # Serve .gz if it exist - if os.path.exists(file + ".gz"): - file += ".gz" - - if os.path.exists(file): - hacs.logger.debug("Serving {} from {}".format(requested_file, file)) - response = web.FileResponse(file) - response.headers["Cache-Control"] = "no-store, max-age=0" - response.headers["Pragma"] = "no-store" - return response - else: - hacs.logger.error(f"Tried to serve up '{file}' but it does not exist") - - except Exception as error: # pylint: disable=broad-except - hacs.logger.debug( - "there was an issue trying to serve {} - {}".format(requested_file, error) - ) - - return web.Response(status=404) diff --git a/custom_components/hacs/iconset.js b/custom_components/hacs/iconset.js deleted file mode 100644 index ab225c7..0000000 --- a/custom_components/hacs/iconset.js +++ /dev/null @@ -1,34 +0,0 @@ -const iconset = document.createElement("ha-iconset-svg"); -iconset.name = "hacs"; -iconset.size = "1024"; -iconset.innerHTML = ` - - - - - - - - - - - - - - - -` -document.body.appendChild(iconset); \ No newline at end of file diff --git a/custom_components/hacs/manifest.json b/custom_components/hacs/manifest.json deleted file mode 100644 index 95c49e0..0000000 --- a/custom_components/hacs/manifest.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "codeowners": [ - "@ludeeus" - ], - "config_flow": true, - "dependencies": [ - "websocket_api", - "frontend", - "persistent_notification", - "lovelace" - ], - "documentation": "https://hacs.xyz/docs/configuration/start", - "domain": "hacs", - "issues": "https://hacs.xyz/docs/issues", - "name": "HACS (Home Assistant Community Store)", - "requirements": [ - "aiofiles==0.4.0", - "aiogithubapi==0.5.0", - "backoff==1.10.0", - "hacs_frontend==20200309184730", - "integrationhelper==0.2.2", - "semantic_version==2.8.4" - ] -} \ No newline at end of file diff --git a/custom_components/hacs/repositories/__init__.py b/custom_components/hacs/repositories/__init__.py deleted file mode 100644 index ddd6003..0000000 --- a/custom_components/hacs/repositories/__init__.py +++ /dev/null @@ -1,16 +0,0 @@ -"""Initialize repositories.""" -from custom_components.hacs.repositories.theme import HacsTheme -from custom_components.hacs.repositories.integration import HacsIntegration -from custom_components.hacs.repositories.python_script import HacsPythonScript -from custom_components.hacs.repositories.appdaemon import HacsAppdaemon -from custom_components.hacs.repositories.netdaemon import HacsNetdaemon -from custom_components.hacs.repositories.plugin import HacsPlugin - -RERPOSITORY_CLASSES = { - "theme": HacsTheme, - "integration": HacsIntegration, - "python_script": HacsPythonScript, - "appdaemon": HacsAppdaemon, - "netdaemon": HacsNetdaemon, - "plugin": HacsPlugin, -} diff --git a/custom_components/hacs/repositories/__pycache__/__init__.cpython-37.pyc b/custom_components/hacs/repositories/__pycache__/__init__.cpython-37.pyc deleted file mode 100644 index f1784fa529655a77f41ad1073a2d9b40ef1563e8..0000000000000000000000000000000000000000 GIT bin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r$2rD7$Xv7s}O;p3LXKX0g`;MDX?@^>n8P;$^D*GVirS$xT!9ctD>LH-=G%8ee?d|){EE1-~tm$*G4T==|X@0lvE`Yep%B_sYO1H*b0bWfONNo$g zEii(j0Yo=oeICVJhp9{psiFdSCr_o){^C%N3sDNd4Zw&OiCDqy%SaFpx=~*w#U&J7 zMv(_6shQLbcndX~idB@l<{S{t;+RX>w++s;8zo69#D}>1Eavpeu@3CSE(D|O0U=h$ zw&*(TP>a56hqPlYQID=WK1f=0iB?z7BJ?e1EwGCIM6VdEegw>EtjguYdWaIJg2(8E z$Rjc!2br5tK!9DfAMi0aPDI!a2Af~^J%K0bm3ffFsm~^xY9AVJo`;2R&pX{Zz3*dK zCw(AbJaz1jU9F!r^7P_`b!ZtjO=I1!z<}nal4MZJpIGAj+&;(HXJK~23Rm0!3e{cQ zF!|?a0SiF_?<`Cl*r#CDJjDDmGI+O59>WRGDP$jo>oh}NmHrJ6(@St9BQTg&uaU>z#NuXdL2mrmIcH92a^)4MgRZ+ diff --git a/custom_components/hacs/repositories/__pycache__/integration.cpython-37.pyc b/custom_components/hacs/repositories/__pycache__/integration.cpython-37.pyc deleted file mode 100644 index beeebf530008a666b9d71d958ed62e9ee579d4e6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3217 zcmZ`*TaO#J6(%_sjjnsM+l}Maaxa0Eq_b@iplF)}ZSABsVC=&hsbit>WIUv_BhN)9 zsn$DKw?NiFeuUv-{a7Fm=|2e2f5E2!c}f04pLz~Q(kgoyL1zv*hnI8tKJri9Zi~S4 zpI`s;;k_;)-(X|$xS;$2{_0Z@oD2!4oMkj;Lq<_|GADP3uGQVl%l)BmbuVk=!7#A8 zpEdK=ux0f|*3LV_4kdpkJmAgegf~U!$QgEd>mC`jt7|v2SgHP~l>M~OVk~2wmW6^w z|Mnkm-V48jZIA&q{@rps7811AV|7p@(OBpxnJHc7QBvm9vJiz<@VR?CPSgia6EVe! zprenLqf{y#@l=XLm+~M=i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-37.pyc b/custom_components/hacs/repositories/__pycache__/manifest.cpython-37.pyc deleted file mode 100644 index d53053f078c9bc703a1e50929ac3cad97172d642..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1366 zcmZux&5k2A5VpHJNvEeX$;@PCSwN_@oPtCmaX~`S3N60}b`LBFsU@(Swlnc=cROo4 z(oB>U64@(nzzcBXEqDfBIq?ddsParkBY|7~y2}2#QvRx(CxbyoVEpmX&p&;b5b_r~ zhXFqM6sCOwAV^6B6;Vx_sEjDuaUGX2ypuXIL)|oMlEcG z{KL3A;h(S~NlD?9(f4pRI9F6AvLm}9o)eLjJ(+^t33fl&U9h7v3!L7ZC{iBD95`uM zAB6RO;2#HmHYb;)9LkaGJS4z73jWERpNH>G!*_#Vp9T9k*yCUiL%j14Z!{DI~CG1W4owev??wPr@v zl3VH1rK%+oecIes&L^n7KU*mwnUG7qsU2Gw-c~E$6T0E5wZ2#BP3z3HAFOl(kt`I4 zx6Y5((x8n$D3p;EmfZK1b}Z!O2S&C+8c2YPMoy@~_N?e_!D4uKVSWbFJ_gu9tzM>P z0_)$oKI}dHp*v z=Rp1E;~D6^RF|`AW1VhTrJJ>GK@J<*eRg*dl(e%$nCTic!puOk%Do41>@fg|Q<_Fy zcrrSs+l%{Up5D2#hjGzR;oKJWw#KT$6{O--FPxl-L&X#eRlI+|0P^Vdej78 zm7|f6FKInp+KLl(S4>Kk>Qe5!bn4{}E`RYj5fh!31sv;+gl5B3D$RH*MS`1IS{zRj zls|vm8KZ6iBglY)sSc+D_bC~I!Q4Fv2cGb`$NdAcPX_@Hc;kQ!8ntnQkT-b?=FwB) zkpY_6HddwWxpCF`1$)}g1TDY^-#!e~MQsDoWS<<;BSOh8-6fgBTwcFDnE5b*tieL= z%(zH5xr_TU?-}9VE`3Ixd;4&LwYU!&1y$=#k?J(g(@OMBwD7y}(DBvELvUeVE?nC; zw7(5@_-Z;4(u54$mukk0$73CvXgJMtR>Wgr!X(yW1P(S)UM6uqiS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`!*W8cpS}I&ijhu6p$*#Gc-UEmT;maNNK5~mFiBVx>b?aU6c3H+xB8zgMyT>K;;McY9;N< zjLOt>JEtkgz>`p zTxLT35Fg(F#6f++4!?em$@&@uv-Y`Tfn# z7&pyBp=)FAL21*dcK|NiR9*Y3X{^qA!Cz_L)!2G}GQcVnTl^aDSPpy?w%qm7mn_>@ zlN^JdHkCF1iH3m1DDO|LbIQ16S6H$3(R2Ih-KC9~dgt6(Itgri#g^8or*79Xsc$ov z-)E0+BfbI`(Em^5-Gsd$hqK!Ek? zy7cSbL>nv717H0NQx%cbIP_*B{GK4PQt&pdD*vW&Cbc@Gc}EZfuMS1;pgl$as@(`_ z9}G}=jx0@Y0OQcIuK}yx#F~dFnw*#cLLX4J0OJw&EFW&-p-p*~Mtokrw&N(@;I@M{ zy+=rOyhmC=P+t@6P7pj^gz0Le5dZ+-As4&aEK&cG{IJV zxc#d%sZWBOvW-&Fk+kk~{Oi8&ANuWTY|vK3R`nKyIf&sN(>lnX$P{s=ez~-^?xcv9 zC JJ64B^{eO&CI}`u_ diff --git a/custom_components/hacs/repositories/__pycache__/python_script.cpython-37.pyc b/custom_components/hacs/repositories/__pycache__/python_script.cpython-37.pyc deleted file mode 100644 index 0802fa8ed5c61f089c228b0f0bf5bc4b12f4d930..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2440 zcmbtW&5qne5bm};9^3P?yV(FqNMI5olo4STp&U3wun-7|gjP{DfHV>`j=N{p#$!*q zdmwA=3W<#p9)MdEY4?J}1&L?iE&9qSufU0_o}cUwIpLAp<*IgdSJn4b&nK-`MBw`K z{hz+Q(jeq-e3@S!2n zU+zp$*Fg}ZPa!ae)4t1{zW0O-C5h6Hzx7d~rn9iBlJ zX3?u8X zAILT+q2wWB38IRz-^oAM*QQ?9l8Msgh$ZD{To$mjTEoTG7ICCP9SyZN-j+@9h+Y*A z#EEDCzlgpHV|Dg;#e4I}6T~Q9$QmE+zu;DXz_3I1$pN_y?74+yB^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3%#QOOKXs4Jo|Q?ZXI!PH;CsB;+>TnMh9x z^%J z-uu*rin9y7%Sp>DT7G&!k+@>J)HX*;^!*mD;OJ<=9x$YF71CISB>us)ByxW`eiY#( z7@*oOQh2m1>xgRX%G7L}&rw#hSGY~7y*gTR3v@p!Te{}Y^<#}%vk6}%nhkr250#M3 zGT%;1K)P*QRZLx6+`-{w-@```c^G=~Lfv=?HikS3UXjC0_B4+bGFjAudE zMlg}(X;u6wGL7{KTg2;N>F&|@T%$j6P$Nnt7^h>Ph5e`xKL{RN&MWc;@AUgCu^3!BmA>-%2oE}JN3n0Zfuz8%a29nTxYOM?S^ z`O~xI_c~Gj%+119wK@WNC~)4-G~FB z1iN(0EKN#A^4woiEe#(RrF8IT83ix>3UXc{eu1W+5>q}0fbO16_;jYafyYo+b&7%3 z@R(W=tho+#xuHhS&avcTY20p{TJ)ia_#rJWKM;MmTj7BW{F9K14=LH9q(zBKiATvz zN+^IS_9?kbNtKd-l8BOzDfvT6$ZZp3KN&}Yg^o5kwQ)AK6ciJ$BB99wvN7}_O@7r} zG7DzOteF|JV#>dQY37amT7Dhrv-w=Uk}u{rxo_iH{vuEOlm`1NN*+=2V+nEK#V5{)7s zPwYLm+%V_Oapr)(4Iu}SzrNrPJ@}Il`B?^i`ov$3FijQ_I?i8`U!cB9c04$b1hi%) dODb6Y5bA&`#$!|s1U(Ana(S(6mUHF8{{eu2s$2j7 diff --git a/custom_components/hacs/repositories/__pycache__/repositorydata.cpython-37.pyc b/custom_components/hacs/repositories/__pycache__/repositorydata.cpython-37.pyc deleted file mode 100644 index fa45d669c4bf6c2d7c8fb78009a3001f5a1ff49a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2578 zcmZ`)OOG2x5bmBCkH@cFXJ6UfB)iVTNgT*7goi}5peTgL0dimyMT`W)WV&t7#-4Gy z+bFgiA+dWvNFaUyhvdkSztdMvk@y9VX7K!ZY}D z>I7Y1JqMxv${CX^ z5T2%U76>mBUL>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ahl{11&yXt zh~`ktqrj`EMHEXYPNTreQY$D{QJg_>7R5OfYbe%HG(gy3pmG?+W~5qZdjoA%C~uP{ zeF^hhKw(4osCRMoJrsx8C4_T@+NKCV-vUu~Jg3T!e(J}x!<9P6&%W+di-G6x`W&4G rz4!s1Ox@?3(ICw_lnd)&S6Z&8z4{-~*kEhQ&PO;mHKyC6mjv#=RgZwR diff --git a/custom_components/hacs/repositories/__pycache__/theme.cpython-37.pyc b/custom_components/hacs/repositories/__pycache__/theme.cpython-37.pyc deleted file mode 100644 index a135f46e09f534048491bdb8e5adaac2615bf4e0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2335 zcmaJ@TZC5cQ>^0GBE)3{{13Cj5P*6mT#tq0KNmOXiveQ*F+ihPaRXv(* zb|bif{D`o!`y%-0Z}4B#oA{K!;FIT6&t);e9;*8Esj73TzVn?^^GUbcCh+|6_Rrt_ z6%g__ek>jbgpZ)9J?J+`HL{m^xgYwJd``H} zgC~Rs!a1?SfVc0F!CHOgRu(DMAD6OU9f(}0ep2-JKE8Et_#7OO0oCpodzj7#mwcEg3`=dq}-L5wdVEaS4#B!+VaDT9_ zTWU5HQu~Z0V23g7@TiJ(FrHNREY_|uf4b|Dp6G0nMT!tcBRP6N@xd7YgZkr zO5}PCCXJH`GgDew8Aln6CB-BY67kV)W@0?Bw4+2emg}H|7zT{RNDsz-C;!|WHC9IP zOjTvh;xeC>1-MotbT(R^BN3`O<8XQ?yI^Szn(9GEtTy%G*QS@DueX-r8!nC-Bg^nX zzPr%=gr6hf; z?l%x<6;=*}3c_~=bmIQG1)&R0?GyS72H#74nQ5t*)nkyi&bE)hBP9Fj*RA1UlxO$rU6VSM$(_Ec zU`n@D70F8d zlmG>MQE($k#82B&jI{^B$)Z?DjDiMBhBH7fCd;yto1m3j*lpvuzjWaWDNCv34vt;I zF&8{lGo?M_aW<7#P}?%|Ksk$Jq13>UyPyt(<^Hw5*sL6&t!vBfIUX(zT(kK>?|pT)LK&NE___1l-lCfJ=8#DSdgrO z%s+tuLvZcXNn2PAKz38_%*X14BsxWnAq}Sxez)%46_W%48(|$p3M>Hx5i zhL>0HU7Y%I+{R!4P7H|$^$#lN50>1SBj*_8EKExkA0L*#ygJyNfM{VkLX*8hX>W@GdMci)F)^NP1Y9SdPbzSdV) zP`|Kd5Maf}yAmpXo3Xs)Gq^mN?lAUn7G?7hk1<}xjG4-6NF;~2$#6*D z#RQ- - {% if state_attr('climate.bathroom', 'status').active_faults %} - {% if state_attr('climate.bathroom', 'status').active_faults[0].fault_type == 'TempZoneActuatorLowBattery' %} - Low Battery - {% endif %} - Fault Detected - {% else %} - Functioning Normally - {% endif %} - icon_template: >- - {% set fault_level = states('sensor.bathroom_radiator_faults') %} - {% if fault_level == 'Low Battery' %} - mdi:alert - {% elif fault_level == 'Fault Detected' %} - mdi:alert - {% else %} - mdi:check-circle - {% endif %} diff --git a/entities/sensors/hallway_radiator_faults.yaml b/entities/sensors/hallway_radiator_faults.yaml deleted file mode 100644 index 9ba07f5..0000000 --- a/entities/sensors/hallway_radiator_faults.yaml +++ /dev/null @@ -1,25 +0,0 @@ ---- -# Hallway Radiator Faults Sensor - -platform: template -sensors: - hallway_radiator_faults: - friendly_name: "Hallway Radiator Faults" - value_template: >- - {% if state_attr('climate.hallway', 'status').active_faults %} - {% if state_attr('climate.hallway', 'status').active_faults[0].fault_type == 'TempZoneActuatorLowBattery' %} - Low Battery - {% endif %} - Fault Detected - {% else %} - Functioning Normally - {% endif %} - icon_template: >- - {% set fault_level = states('sensor.hallway_radiator_faults') %} - {% if fault_level == 'Low Battery' %} - mdi:alert - {% elif fault_level == 'Fault Detected' %} - mdi:alert - {% else %} - mdi:check-circle - {% endif %} diff --git a/entities/sensors/kitchen_radiator_faults.yaml b/entities/sensors/kitchen_radiator_faults.yaml deleted file mode 100644 index c1c5398..0000000 --- a/entities/sensors/kitchen_radiator_faults.yaml +++ /dev/null @@ -1,25 +0,0 @@ ---- -# Kitchen Radiator Faults Sensor - -platform: template -sensors: - kitchen_radiator_faults: - friendly_name: "Kitchen Radiator Faults" - value_template: >- - {% if state_attr('climate.kitchen', 'status').active_faults %} - {% if state_attr('climate.kitchen', 'status').active_faults[0].fault_type == 'TempZoneActuatorLowBattery' %} - Low Battery - {% endif %} - Fault Detected - {% else %} - Functioning Normally - {% endif %} - icon_template: >- - {% set fault_level = states('sensor.kitchen_radiator_faults') %} - {% if fault_level == 'Low Battery' %} - mdi:alert - {% elif fault_level == 'Fault Detected' %} - mdi:alert - {% else %} - mdi:check-circle - {% endif %} diff --git a/entities/sensors/living_room_radiator_faults.yaml b/entities/sensors/living_room_radiator_faults.yaml deleted file mode 100644 index d08037c..0000000 --- a/entities/sensors/living_room_radiator_faults.yaml +++ /dev/null @@ -1,25 +0,0 @@ ---- -# Living Room Radiator Faults Sensor - -platform: template -sensors: - livingroom_radiator_faults: - friendly_name: "Living Room Radiator Faults" - value_template: >- - {% if state_attr('climate.living_room', 'status').active_faults %} - {% if state_attr('climate.living_room', 'status').active_faults[0].fault_type == 'TempZoneActuatorLowBattery' %} - Low Battery - {% endif %} - Fault Detected - {% else %} - Functioning Normally - {% endif %} - icon_template: >- - {% set fault_level = states('sensor.livingroom_radiator_faults') %} - {% if fault_level == 'Low Battery' %} - mdi:alert - {% elif fault_level == 'Fault Detected' %} - mdi:alert - {% else %} - mdi:check-circle - {% endif %} diff --git a/entities/sensors/master_bedroom_radiator_faults.yaml b/entities/sensors/master_bedroom_radiator_faults.yaml deleted file mode 100644 index a18560c..0000000 --- a/entities/sensors/master_bedroom_radiator_faults.yaml +++ /dev/null @@ -1,25 +0,0 @@ ---- -# Master Bedroom Radiator Faults Sensor - -platform: template -sensors: - master_bedroom_radiator_faults: - friendly_name: "Master Bedroom Radiator Faults" - value_template: >- - {% if state_attr('climate.master_bedroom', 'status').active_faults %} - {% if state_attr('climate.master_bedroom', 'status').active_faults[0].fault_type == 'TempZoneActuatorLowBattery' %} - Low Battery - {% endif %} - Fault Detected - {% else %} - Functioning Normally - {% endif %} - icon_template: >- - {% set fault_level = states('sensor.master_bedroom_radiator_faults') %} - {% if fault_level == 'Low Battery' %} - mdi:alert - {% elif fault_level == 'Fault Detected' %} - mdi:alert - {% else %} - mdi:check-circle - {% endif %} diff --git a/entities/sensors/office_radiator_faults.yaml b/entities/sensors/office_radiator_faults.yaml deleted file mode 100644 index acb48dd..0000000 --- a/entities/sensors/office_radiator_faults.yaml +++ /dev/null @@ -1,25 +0,0 @@ ---- -# Office Radiator Faults Sensor - -platform: template -sensors: - office_radiator_faults: - friendly_name: "Office Radiator Faults" - value_template: >- - {% if state_attr('climate.office', 'status').active_faults %} - {% if state_attr('climate.office', 'status').active_faults[0].fault_type == 'TempZoneActuatorLowBattery' %} - Low Battery - {% endif %} - Fault Detected - {% else %} - Functioning Normally - {% endif %} - icon_template: >- - {% set fault_level = states('sensor.office_radiator_faults') %} - {% if fault_level == 'Low Battery' %} - mdi:alert - {% elif fault_level == 'Fault Detected' %} - mdi:alert - {% else %} - mdi:check-circle - {% endif %} diff --git a/entities/sensors/ring.yaml b/entities/sensors/ring.yaml deleted file mode 100644 index bd83350..0000000 --- a/entities/sensors/ring.yaml +++ /dev/null @@ -1,6 +0,0 @@ -# Ring -# https://www.home-assistant.io/integrations/ring/ - -# DISABLED: Currently disabled due to error - -platform: ring \ No newline at end of file diff --git a/entities/sensors/spare_room_radiator_faults.yaml b/entities/sensors/spare_room_radiator_faults.yaml deleted file mode 100644 index c5d44b7..0000000 --- a/entities/sensors/spare_room_radiator_faults.yaml +++ /dev/null @@ -1,25 +0,0 @@ ---- -# Spare Room Radiator Faults Sensor - -platform: template -sensors: - spare_room_radiator_faults: - friendly_name: "Spare Room Radiator Faults" - value_template: >- - {% if state_attr('climate.spare_room', 'status').active_faults %} - {% if state_attr('climate.spare_room', 'status').active_faults[0].fault_type == 'TempZoneActuatorLowBattery' %} - Low Battery - {% endif %} - Fault Detected - {% else %} - Functioning Normally - {% endif %} - icon_template: >- - {% set fault_level = states('sensor.spare_room_radiator_faults') %} - {% if fault_level == 'Low Battery' %} - mdi:alert - {% elif fault_level == 'Fault Detected' %} - mdi:alert - {% else %} - mdi:check-circle - {% endif %} diff --git a/entities/sensors/travisci.yaml b/entities/sensors/travisci.yaml deleted file mode 100644 index 64742f3..0000000 --- a/entities/sensors/travisci.yaml +++ /dev/null @@ -1,9 +0,0 @@ -# Travis CI Sensor -# https://www.home-assistant.io/components/travisci/ - -platform: travisci -api_key: !secret travisci_api_key -repository: "Home-Assistant-Configuration" -monitored_conditions: - - last_build_id - - last_build_state diff --git a/entities/sensors/version_avaliable.yaml.disable b/entities/sensors/version_avaliable.yaml.disable deleted file mode 100644 index 17c77f9..0000000 --- a/entities/sensors/version_avaliable.yaml.disable +++ /dev/null @@ -1,8 +0,0 @@ ---- -# Sensor for displaying avaliable version of Home Assistant -# https://www.home-assistant.io/integrations/sensor.version/ - -platform: version -name: latest_version -source: hassio -image: qemux86-64 diff --git a/entities/sensors/version_current.yaml.disable b/entities/sensors/version_current.yaml.disable deleted file mode 100644 index 76f601c..0000000 --- a/entities/sensors/version_current.yaml.disable +++ /dev/null @@ -1,7 +0,0 @@ ---- -# Sensor for displaying current version of Home Assistant -# https://www.home-assistant.io/integrations/sensor.version/ - -platform: version -name: version_current -source: local diff --git a/entities/switches/.gitkeep b/entities/switches/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/entities/weather/darksky.yaml b/entities/weather/darksky.yaml deleted file mode 100644 index f728d8e..0000000 --- a/entities/weather/darksky.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -# Darksky -# https://www.home-assistant.io/integrations/weather.darksky/ - -platform: darksky -api_key: !secret darksky_api_key -mode: daily -units: uk -latitude: !secret home_latitude -longitude: !secret home_longitude \ No newline at end of file diff --git a/entities/zones/home.yaml b/entities/zones/home.yaml deleted file mode 100644 index 76b433b..0000000 --- a/entities/zones/home.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -# Defines the Home Zone -# https://www.home-assistant.io/integrations/zone/ - -name: Home -latitude: !secret home_latitude -longitude: !secret home_longitude -radius: 400 -passive: false -icon: mdi:home-map-marker diff --git a/entities/zones/home_ringfence.yaml b/entities/zones/home_ringfence.yaml deleted file mode 100644 index 18a0b2c..0000000 --- a/entities/zones/home_ringfence.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -# Defines the Home Zone -# https://www.home-assistant.io/integrations/zone/ - -name: Home (Ringfence) -latitude: !secret home_latitude -longitude: !secret home_longitude -radius: 400 -passive: true -icon: mdi:home-map-marker diff --git a/esphome/.gitignore b/esphome/.gitignore deleted file mode 100644 index 0bbf89c..0000000 --- a/esphome/.gitignore +++ /dev/null @@ -1,10 +0,0 @@ -# Gitignore settings for ESPHome -# This is an example and may include too much for your use-case. -# You can modify this file to suit your needs. -/.esphome/ -**/.pioenvs/ -**/.piolibdeps/ -**/lib/ -**/src/ -**/platformio.ini -/secrets.yaml diff --git a/esphome/alarm_system_status.yaml b/esphome/alarm_system_status.yaml deleted file mode 100644 index b31d7f2..0000000 --- a/esphome/alarm_system_status.yaml +++ /dev/null @@ -1,67 +0,0 @@ -# Custom ESP8266 Device - -# Basic Config -esphome: - name: alarm_system_status - platform: ESP8266 - board: d1_mini - -wifi: - ssid: !secret esphome_wifi_ssid - password: !secret esphome_wifi_password - -logger: - -api: - reboot_timeout: 15min - -ota: - password: !secret esphome_ota_password - -time: - - platform: sntp - id: sntp_time - -# Device Specific Config -binary_sensor: - - platform: gpio - pin: - number: GPIO12 - inverted: true - id: alarm_arming_staus - - platform: gpio - pin: - number: GPIO14 - inverted: true - id: alarm_sounder_status - -text_sensor: - - platform: template - name: "Alarm Arming Status" - icon: "mdi:lock" - lambda: |- - if (id(alarm_arming_staus).state == 1) { - return {"Armed"}; - } else { - return {"Disarmed"}; - } - update_interval: 5s - - platform: template - name: "Alarm Sounder Status" - icon: "mdi:alarm-bell" - lambda: |- - if (id(alarm_sounder_status).state == 1) { - return {"Sounding"}; - } else { - return {"Not Sounding"}; - } - update_interval: 5s - -sensor: - - platform: wifi_signal - name: "Alarm System WiFi Status" - update_interval: 60s - -switch: - - platform: restart - name: "Alarm System Status Restart" \ No newline at end of file diff --git a/esphome/christmas_2.yaml b/esphome/christmas_2.yaml deleted file mode 100644 index 87771a1..0000000 --- a/esphome/christmas_2.yaml +++ /dev/null @@ -1,68 +0,0 @@ -# Sonoff S20 - -# Substitutions -substitutions: - # Device Names - device_name: "christmas_2" - friendly_name: "Christmas 2" - # Comment / Info To Display In ESPHome Front End - device_comment: "" - # Icon - main_icon: "ornament" - # Default Relay State - # Aka: `restore_mode` in documentation - # Options: `RESTORE_DEFAULT_OFF`, `RESTORE_DEFAULT_ON`, `ALWAYS_ON` & `ALWAYS_OFF` - default_state: "RESTORE_DEFAULT_OFF" - -# Basic Config -esphome: - name: "${device_name}" - comment: "${device_comment}" - platform: ESP8266 - board: esp01_1m - -wifi: - ssid: !secret esphome_wifi_ssid - password: !secret esphome_wifi_password - -logger: - -api: - reboot_timeout: 15min - -ota: - password: !secret esphome_ota_password - -time: - - platform: sntp - id: sntp_time - -# Device Specific Config -binary_sensor: - - platform: gpio - pin: - number: GPIO0 - mode: INPUT_PULLUP - inverted: True - name: "${friendly_name} Button" - on_press: - - switch.toggle: relay - - platform: status - name: "${friendly_name} Status" - -sensor: - - platform: wifi_signal - name: "${friendly_name} WiFi Signal" - update_interval: 60s - -switch: - - platform: gpio - name: "${friendly_name}" - icon: "mdi:${main_icon}" - pin: GPIO12 - id: relay - restore_mode: "${default_state}" - -status_led: - pin: - number: GPIO13 \ No newline at end of file diff --git a/esphome/dishwasher.yaml b/esphome/dishwasher.yaml deleted file mode 100644 index 1eb095e..0000000 --- a/esphome/dishwasher.yaml +++ /dev/null @@ -1,161 +0,0 @@ -# Maxcio W-UK007S - -# Substitutions -substitutions: - # Device Names - device_name: "dishwasher" - friendly_name: "Dishwasher" - # Icon - main_icon: "dishwasher" - # Default Relay State - # Aka: `restore_mode` in documentation - # Options: `RESTORE_DEFAULT_OFF`, `RESTORE_DEFAULT_ON`, `ALWAYS_ON` & `ALWAYS_OFF` - default_state: "ALWAYS_ON" - # Activity State Threshold - # Threshold (number) that the device will change from `Idle` to `Active` if power is greater than or equal to - activity_threshold: "5" - -# Basic Config -esphome: - name: "${device_name}" - platform: ESP8266 - board: esp01_1m - -wifi: - ssid: !secret esphome_wifi_ssid - password: !secret esphome_wifi_password - -logger: - -api: - reboot_timeout: 15min - -ota: - password: !secret esphome_ota_password - -time: - - platform: sntp - id: sntp_time - -# Device Specific Config -binary_sensor: - # Push Button (Toggles Relay When Pressed) - - platform: gpio - pin: - number: GPIO13 - mode: INPUT_PULLUP - inverted: true - name: "${friendly_name} Button" - on_press: - - switch.toggle: relay - - platform: status - name: "${friendly_name} Server Status" - -switch: - # Relay (As Switch) - - platform: gpio - name: "${friendly_name}" - icon: "mdi:${main_icon}" - pin: GPIO15 - id: relay - restore_mode: "${default_state}" - on_turn_on: - - light.turn_on: - id: led - brightness: 100% - transition_length: 0s - on_turn_off: - - light.turn_off: - id: led - transition_length: 0s - -sensor: - # WiFi Signal Sensor - - platform: wifi_signal - name: "${friendly_name} WiFi Status" - update_interval: 60s - # Power Monitoring - - platform: hlw8012 - sel_pin: - number: GPIO12 - inverted: true - cf_pin: GPIO5 - cf1_pin: GPIO14 - change_mode_every: 3 - update_interval: 3s - voltage: - name: "${friendly_name} Voltage" - id: voltage - unit_of_measurement: V - accuracy_decimals: 1 - filters: - # Map from sensor -> measured value - - calibrate_linear: - - 0.0 -> 0.0 - - 602.87506 -> 229.9 - - 609.8 -> 232.8 - power: - name: "${friendly_name} Power" - id: power - unit_of_measurement: W - accuracy_decimals: 0 - filters: - # Map from sensor -> measured value - - calibrate_linear: - - 0.0 -> 1.14 - - 62.06167 -> 10.93 - - 1503.27161 -> 247.6 - - 1599.81213 -> 263.7 - - 3923.67700 -> 631.4 - - 7109.50928 -> 1148.0 - - 7237.0857 -> 1193.0 - - 7426.71338 -> 1217.0 - current: - name: "${friendly_name} Current" - id: current - unit_of_measurement: A - accuracy_decimals: 3 - filters: - # Map from sensor -> measured value - - calibrate_linear: - - 0.0 -> 0.013 - - 0.08208 -> 0.071 - - 1.34223 -> 1.066 - - 5.57170 -> 4.408 - - 6.69184 -> 5.259 - - 6.97187 -> 5.540 - # Total daily energy sensor - - platform: total_daily_energy - name: "${friendly_name} Daily Energy" - power_id: power - filters: - # Multiplication factor from W to kW is 0.001 - - multiply: 0.001 - unit_of_measurement: kWh - -text_sensor: - # Device Activity State - # e.g. shows as active if power reading above a certain threshold - - platform: template - name: "${friendly_name} Activity State" - icon: "mdi:${main_icon}" - lambda: |- - if (id(power).state >= $activity_threshold) { - return {"Active"}; - } else { - return {"Idle"}; - } - update_interval: 5s - -# Relay State LED -output: - - platform: esp8266_pwm - id: state_led - pin: - number: GPIO0 - inverted: true - -light: - - platform: monochromatic - output: state_led - id: led \ No newline at end of file diff --git a/esphome/garden_decking_lights.yaml b/esphome/garden_decking_lights.yaml deleted file mode 100644 index c4e0abb..0000000 --- a/esphome/garden_decking_lights.yaml +++ /dev/null @@ -1,50 +0,0 @@ -# Sonoff S20 - -# Basic Config -esphome: - name: garden_decking_lights - platform: ESP8266 - board: esp01_1m - -wifi: - ssid: !secret esphome_wifi_ssid - password: !secret esphome_wifi_password - -logger: - -api: - reboot_timeout: 15min - -ota: - password: !secret esphome_ota_password - -time: - - platform: sntp - id: sntp_time - -# Device Specific Config -binary_sensor: - - platform: gpio - pin: - number: GPIO0 - mode: INPUT_PULLUP - inverted: True - name: "Garden Decking Lights Button" - on_press: - - switch.toggle: relay - - platform: status - name: "Garden Decking Lights Status" - -sensor: - - platform: wifi_signal - name: "Garden Decking Lights WiFi Signal" - update_interval: 60s - -switch: - - platform: gpio - name: "Garden Decking Lights" - pin: GPIO12 - id: relay - -status_led: - pin: GPIO13 \ No newline at end of file diff --git a/esphome/landing_ceiling_light.yaml b/esphome/landing_ceiling_light.yaml deleted file mode 100644 index c82bf89..0000000 --- a/esphome/landing_ceiling_light.yaml +++ /dev/null @@ -1,56 +0,0 @@ -# Shelly 1 - -# Basic Config - -esphome: - name: landing_ceiling_light - platform: ESP8266 - board: esp01_1m - -wifi: - ssid: !secret esphome_wifi_ssid - password: !secret esphome_wifi_password - -logger: - -api: - reboot_timeout: 15min - -ota: - password: !secret esphome_ota_password - -time: - - platform: sntp - id: sntp_time - -# Device Specific Config - -binary_sensor: - - platform: status - name: "Landing Ceiling Light Status" - - platform: gpio - pin: - number: GPIO5 - #mode: INPUT_PULLUP - #inverted: True - name: "Landing Ceiling Light" - on_state: - - light.toggle: lightid - internal: true - -sensor: - - platform: wifi_signal - name: "Landing Ceiling Light WiFi Signal" - update_interval: 60s - - -output: - - platform: gpio - pin: GPIO4 - id: gpio_4 - -light: - - platform: binary - name: "Landing Ceiling Light" - output: gpio_4 - id: lightid \ No newline at end of file diff --git a/esphome/living_room_air_freshener.yaml b/esphome/living_room_air_freshener.yaml deleted file mode 100644 index 4484c42..0000000 --- a/esphome/living_room_air_freshener.yaml +++ /dev/null @@ -1,68 +0,0 @@ -# Sonoff S20 - -# Substitutions -substitutions: - # Device Names - device_name: "living_room_air_freshener" - friendly_name: "Living Room Air Freshener" - # Comment / Info To Display In ESPHome Front End - device_comment: "" - # Icon - main_icon: "spray" - # Default Relay State - # Aka: `restore_mode` in documentation - # Options: `RESTORE_DEFAULT_OFF`, `RESTORE_DEFAULT_ON`, `ALWAYS_ON` & `ALWAYS_OFF` - default_state: "RESTORE_DEFAULT_OFF" - -# Basic Config -esphome: - name: "${device_name}" - comment: "${device_comment}" - platform: ESP8266 - board: esp01_1m - -wifi: - ssid: !secret esphome_wifi_ssid - password: !secret esphome_wifi_password - -logger: - -api: - reboot_timeout: 15min - -ota: - password: !secret esphome_ota_password - -time: - - platform: sntp - id: sntp_time - -# Device Specific Config -binary_sensor: - - platform: gpio - pin: - number: GPIO0 - mode: INPUT_PULLUP - inverted: True - name: "${friendly_name} Button" - on_press: - - switch.toggle: relay - - platform: status - name: "${friendly_name} Status" - -sensor: - - platform: wifi_signal - name: "${friendly_name} WiFi Signal" - update_interval: 60s - -switch: - - platform: gpio - name: "${friendly_name}" - icon: "mdi:${main_icon}" - pin: GPIO12 - id: relay - restore_mode: "${default_state}" - -status_led: - pin: - number: GPIO13 \ No newline at end of file diff --git a/esphome/living_room_left_lamp.yaml b/esphome/living_room_left_lamp.yaml deleted file mode 100644 index 31a5329..0000000 --- a/esphome/living_room_left_lamp.yaml +++ /dev/null @@ -1,51 +0,0 @@ -# Sonoff S20 - -# Basic Config -esphome: - name: living_room_left_lamp - platform: ESP8266 - board: esp01_1m - -wifi: - ssid: !secret esphome_wifi_ssid - password: !secret esphome_wifi_password - -logger: - -api: - reboot_timeout: 15min - -ota: - password: !secret esphome_ota_password - -time: - - platform: sntp - id: sntp_time - -# Device Specific Config -binary_sensor: - - platform: gpio - pin: - number: GPIO0 - mode: INPUT_PULLUP - inverted: True - name: "Living Room Left Lamp Button" - on_press: - - switch.toggle: relay - - platform: status - name: "Living Room Left Lamp Status" - -sensor: - - platform: wifi_signal - name: "Living Room Left Lamp WiFi Signal" - update_interval: 60s - -switch: - - platform: gpio - name: "Living Room Left Lamp" - pin: GPIO12 - id: relay - -status_led: - pin: - number: GPIO13 \ No newline at end of file diff --git a/esphome/living_room_right_lamp.yaml b/esphome/living_room_right_lamp.yaml deleted file mode 100644 index 8fda4fd..0000000 --- a/esphome/living_room_right_lamp.yaml +++ /dev/null @@ -1,50 +0,0 @@ -# Sonoff S20 - -# Basic Config -esphome: - name: living_room_right_lamp - platform: ESP8266 - board: esp01_1m - -wifi: - ssid: !secret esphome_wifi_ssid - password: !secret esphome_wifi_password - -logger: - -api: - reboot_timeout: 15min - -ota: - password: !secret esphome_ota_password - -time: - - platform: sntp - id: sntp_time - -# Device Specific Config -binary_sensor: - - platform: gpio - pin: - number: GPIO0 - mode: INPUT_PULLUP - inverted: True - name: "Living Room Right Lamp Button" - on_press: - - switch.toggle: relay - - platform: status - name: "Living Room Right Lamp Status" - -sensor: - - platform: wifi_signal - name: "Living Room Right Lamp WiFi Signal" - update_interval: 60s - -switch: - - platform: gpio - name: "Living Room Right Lamp" - pin: GPIO12 - id: relay - -status_led: - pin: GPIO13 \ No newline at end of file diff --git a/esphome/master_bedroom_jon_lamp.yaml b/esphome/master_bedroom_jon_lamp.yaml deleted file mode 100644 index a8c6cfd..0000000 --- a/esphome/master_bedroom_jon_lamp.yaml +++ /dev/null @@ -1,50 +0,0 @@ -# Sonoff S20 - -# Basic Config -esphome: - name: master_bedroom_jon_lamp - platform: ESP8266 - board: esp01_1m - -wifi: - ssid: !secret esphome_wifi_ssid - password: !secret esphome_wifi_password - -logger: - -api: - reboot_timeout: 15min - -ota: - password: !secret esphome_ota_password - -time: - - platform: sntp - id: sntp_time - -# Device Specific Config -binary_sensor: - - platform: gpio - pin: - number: GPIO0 - mode: INPUT_PULLUP - inverted: True - name: "Master Bedroom Jon Lamp Button" - on_press: - - switch.toggle: relay - - platform: status - name: "Master Bedroom Jon Lamp Status" - -sensor: - - platform: wifi_signal - name: "Master Bedroom Jon Lamp WiFi Signal" - update_interval: 60s - -switch: - - platform: gpio - name: "Master Bedroom Jon Lamp" - pin: GPIO12 - id: relay - -status_led: - pin: GPIO13 \ No newline at end of file diff --git a/esphome/office_ceiling_light.yaml b/esphome/office_ceiling_light.yaml deleted file mode 100644 index 450ee8a..0000000 --- a/esphome/office_ceiling_light.yaml +++ /dev/null @@ -1,56 +0,0 @@ -# Shelly 1 - -# Basic Config - -esphome: - name: office_ceiling_light - platform: ESP8266 - board: esp01_1m - -wifi: - ssid: !secret esphome_wifi_ssid - password: !secret esphome_wifi_password - -logger: - -api: - reboot_timeout: 15min - -ota: - password: !secret esphome_ota_password - -time: - - platform: sntp - id: sntp_time - -# Device Specific Config - -binary_sensor: - - platform: status - name: "Office Ceiling Light Status" - - platform: gpio - pin: - number: GPIO5 - #mode: INPUT_PULLUP - #inverted: True - name: "Office Ceiling Light" - on_state: - - light.toggle: lightid - internal: true - -sensor: - - platform: wifi_signal - name: "Office Ceiling Light WiFi Signal" - update_interval: 60s - - -output: - - platform: gpio - pin: GPIO4 - id: gpio_4 - -light: - - platform: binary - name: "Office Ceiling Light" - output: gpio_4 - id: lightid \ No newline at end of file diff --git a/esphome/porch_ceiling_light.yaml b/esphome/porch_ceiling_light.yaml deleted file mode 100644 index b3a5d59..0000000 --- a/esphome/porch_ceiling_light.yaml +++ /dev/null @@ -1,56 +0,0 @@ -# Shelly 1 - -# Basic Config - -esphome: - name: porch_ceiling_light - platform: ESP8266 - board: esp01_1m - -wifi: - ssid: !secret esphome_wifi_ssid - password: !secret esphome_wifi_password - -logger: - -api: - reboot_timeout: 15min - -ota: - password: !secret esphome_ota_password - -time: - - platform: sntp - id: sntp_time - -# Device Specific Config - -binary_sensor: - - platform: status - name: "Porch Ceiling Light Status" - - platform: gpio - pin: - number: GPIO5 - #mode: INPUT_PULLUP - #inverted: True - name: "Porch Ceiling Light" - on_state: - - light.toggle: lightid - internal: true - -sensor: - - platform: wifi_signal - name: "Porch Ceiling Light WiFi Signal" - update_interval: 60s - - -output: - - platform: gpio - pin: GPIO4 - id: gpio_4 - -light: - - platform: binary - name: "Porch Ceiling Light" - output: gpio_4 - id: lightid \ No newline at end of file diff --git a/esphome/spare_bedroom_lamp.yaml b/esphome/spare_bedroom_lamp.yaml deleted file mode 100644 index 4fc6747..0000000 --- a/esphome/spare_bedroom_lamp.yaml +++ /dev/null @@ -1,65 +0,0 @@ -# Sonoff S20 - -# Substitutions -substitutions: - # Device Names - device_name: "spare_bedroom_lamp" - friendly_name: "Spare Bedroom Lamp" - # Icon - main_icon: "floor-lamp" - # Default Relay State - # Aka: `restore_mode` in documentation - # Options: `RESTORE_DEFAULT_OFF`, `RESTORE_DEFAULT_ON`, `ALWAYS_ON` & `ALWAYS_OFF` - default_state: "RESTORE_DEFAULT_OFF" - -# Basic Config -esphome: - name: "${device_name}" - platform: ESP8266 - board: esp01_1m - -wifi: - ssid: !secret esphome_wifi_ssid - password: !secret esphome_wifi_password - -logger: - -api: - reboot_timeout: 15min - -ota: - password: !secret esphome_ota_password - -time: - - platform: sntp - id: sntp_time - -# Device Specific Config -binary_sensor: - - platform: gpio - pin: - number: GPIO0 - mode: INPUT_PULLUP - inverted: True - name: "${friendly_name} Button" - on_press: - - switch.toggle: relay - - platform: status - name: "${friendly_name} Status" - -sensor: - - platform: wifi_signal - name: "${friendly_name} WiFi Signal" - update_interval: 60s - -switch: - - platform: gpio - name: "${friendly_name}" - icon: "mdi:${main_icon}" - pin: GPIO12 - id: relay - restore_mode: "${default_state}" - -status_led: - pin: - number: GPIO13 \ No newline at end of file diff --git a/esphome/spare_room_ceiling_light.yaml b/esphome/spare_room_ceiling_light.yaml deleted file mode 100644 index 8d33d20..0000000 --- a/esphome/spare_room_ceiling_light.yaml +++ /dev/null @@ -1,56 +0,0 @@ -# Shelly 1 - -# Basic Config - -esphome: - name: spare_room_ceiling_light - platform: ESP8266 - board: esp01_1m - -wifi: - ssid: !secret esphome_wifi_ssid - password: !secret esphome_wifi_password - -logger: - -api: - reboot_timeout: 15min - -ota: - password: !secret esphome_ota_password - -time: - - platform: sntp - id: sntp_time - -# Device Specific Config - -binary_sensor: - - platform: status - name: "Spare Room Ceiling Light Status" - - platform: gpio - pin: - number: GPIO5 - #mode: INPUT_PULLUP - #inverted: True - name: "Spare Room Ceiling Light" - on_state: - - light.toggle: lightid - internal: true - -sensor: - - platform: wifi_signal - name: "Spare Room Ceiling Light WiFi Signal" - update_interval: 60s - - -output: - - platform: gpio - pin: GPIO4 - id: gpio_4 - -light: - - platform: binary - name: "Spare Room Ceiling Light" - output: gpio_4 - id: lightid \ No newline at end of file diff --git a/esphome/test_energy_monitor_plug.yaml b/esphome/test_energy_monitor_plug.yaml deleted file mode 100644 index d00e7f0..0000000 --- a/esphome/test_energy_monitor_plug.yaml +++ /dev/null @@ -1,153 +0,0 @@ -# Maxcio W-UK007S - -# Substitutions -substitutions: - # Device Names - device_name: "test_energy_monitor_plug" - friendly_name: "Test Energy Monitor Plug" - # Icon - main_icon: "power-socket-uk" - # Default Relay State - # Aka: `restore_mode` in documentation - # Options: `RESTORE_DEFAULT_OFF`, `RESTORE_DEFAULT_ON`, `ALWAYS_ON` & `ALWAYS_OFF` - default_state: "RESTORE_DEFAULT_OFF" - # Activity State Threshold - # Threshold (number) that the device will change from `Idle` to `Active` if power is greater than or equal to - activity_threshold: "10" - -# Basic Config -esphome: - name: "${device_name}" - platform: ESP8266 - board: esp01_1m - -wifi: - ssid: !secret esphome_wifi_ssid - password: !secret esphome_wifi_password - -logger: - -api: - reboot_timeout: 15min - -ota: - password: !secret esphome_ota_password - -time: - - platform: sntp - id: sntp_time - -# Device Specific Config -binary_sensor: - # Push Button (Toggles Relay When Pressed) - - platform: gpio - pin: - number: GPIO13 - mode: INPUT_PULLUP - inverted: true - name: "${friendly_name} Button" - on_press: - - switch.toggle: relay - - platform: status - name: "${friendly_name} Server Status" - -switch: - # Relay (As Switch) - - platform: gpio - name: "${friendly_name}" - icon: "mdi:${main_icon}" - pin: GPIO15 - id: relay - restore_mode: "${default_state}" - on_turn_on: - - light.turn_on: - id: led - brightness: 100% - transition_length: 0s - on_turn_off: - - light.turn_off: - id: led - transition_length: 0s - -sensor: - # WiFi Signal Sensor - - platform: wifi_signal - name: "${friendly_name} WiFi Status" - update_interval: 60s - # Power Monitoring - - platform: hlw8012 - sel_pin: - number: GPIO12 - inverted: true - cf_pin: GPIO5 - cf1_pin: GPIO14 - change_mode_every: 3 - update_interval: 3s - voltage: - name: "${friendly_name} Voltage" - id: voltage - unit_of_measurement: V - accuracy_decimals: 1 - filters: - # Map from sensor -> measured value - - calibrate_linear: - - 0.0 -> 0.0 - - 602.87506 -> 229.9 - - 609.8 -> 232.8 - power: - name: "${friendly_name} Power" - id: power - unit_of_measurement: W - accuracy_decimals: 0 - filters: - # Map from sensor -> measured value - - calibrate_linear: - - 0.0 -> 1.14 - - 62.06167 -> 10.93 - - 1503.27161 -> 247.6 - - 1599.81213 -> 263.7 - - 3923.67700 -> 631.4 - - 7109.50928 -> 1148.0 - - 7237.0857 -> 1193.0 - - 7426.71338 -> 1217.0 - current: - name: "${friendly_name} Current" - id: current - unit_of_measurement: A - accuracy_decimals: 3 - filters: - # Map from sensor -> measured value - - calibrate_linear: - - 0.0 -> 0.013 - - 0.08208 -> 0.071 - - 1.34223 -> 1.066 - - 5.57170 -> 4.408 - - 6.69184 -> 5.259 - - 6.97187 -> 5.540 - -text_sensor: - # Device Activity State - # e.g. shows as active if power reading above a certain threshold - - platform: template - name: "${friendly_name} Activity State" - icon: "mdi:${main_icon}" - lambda: |- - if (id(power).state >= $activity_threshold) { - return {"Active"}; - } else { - return {"Idle"}; - } - update_interval: 5s - -# Relay State LED -output: - - platform: esp8266_pwm - id: state_led - pin: - number: GPIO0 - inverted: true - -light: - - platform: monochromatic - output: state_led - id: led \ No newline at end of file diff --git a/esphome/tumble_dryer.yaml b/esphome/tumble_dryer.yaml deleted file mode 100644 index fe64dc5..0000000 --- a/esphome/tumble_dryer.yaml +++ /dev/null @@ -1,162 +0,0 @@ -# Maxcio W-UK007S - -# Substitutions -substitutions: - # Device Names - device_name: "tumble_dryer" - friendly_name: "Tumble Dryer" - # Icon - main_icon: "tumble-dryer" - # Default Relay State - # Aka: `restore_mode` in documentation - # Options: `RESTORE_DEFAULT_OFF`, `RESTORE_DEFAULT_ON`, `ALWAYS_ON` & `ALWAYS_OFF` - default_state: "ALWAYS_ON" - # Activity State Threshold - # Threshold (number) that the device will change from `Idle` to `Active` if power is greater than or equal to - activity_threshold: "10" - -# Basic Config -esphome: - name: "${device_name}" - platform: ESP8266 - board: esp01_1m - -wifi: - ssid: !secret esphome_wifi_ssid - password: !secret esphome_wifi_password - -logger: - -api: - reboot_timeout: 15min - -ota: - password: !secret esphome_ota_password - -time: - - platform: sntp - id: sntp_time - -# Device Specific Config -binary_sensor: - # Push Button (Toggles Relay When Pressed) - - platform: gpio - pin: - number: GPIO13 - mode: INPUT_PULLUP - inverted: true - name: "${friendly_name} Button" - on_press: - - switch.toggle: relay - - platform: status - name: "${friendly_name} Server Status" - -switch: - # Relay (As Switch) - - platform: gpio - name: "${friendly_name}" - icon: "mdi:${main_icon}" - pin: GPIO15 - id: relay - restore_mode: "${default_state}" - on_turn_on: - - light.turn_on: - id: led - brightness: 100% - transition_length: 0s - on_turn_off: - - light.turn_off: - id: led - transition_length: 0s - -sensor: - # WiFi Signal Sensor - - platform: wifi_signal - name: "${friendly_name} WiFi Status" - update_interval: 60s - # Power Monitoring - - platform: hlw8012 - sel_pin: - number: GPIO12 - inverted: true - cf_pin: GPIO5 - cf1_pin: GPIO14 - change_mode_every: 3 - update_interval: 3s - voltage: - name: "${friendly_name} Voltage" - id: voltage - unit_of_measurement: V - accuracy_decimals: 1 - filters: - # Map from sensor -> measured value - - calibrate_linear: - - 0.0 -> 0.0 - - 602.87506 -> 229.9 - - 609.8 -> 232.8 - power: - name: "${friendly_name} Power" - id: power - unit_of_measurement: W - accuracy_decimals: 0 - filters: - # Map from sensor -> measured value - - calibrate_linear: - - 0.0 -> 1.14 - - 62.06167 -> 10.93 - - 1503.27161 -> 247.6 - - 1599.81213 -> 263.7 - - 3923.67700 -> 631.4 - - 7109.50928 -> 1148.0 - - 7237.0857 -> 1193.0 - - 7426.71338 -> 1217.0 - current: - name: "${friendly_name} Current" - id: current - unit_of_measurement: A - accuracy_decimals: 3 - filters: - # Map from sensor -> measured value - - calibrate_linear: - - 0.0 -> 0.013 - - 0.08208 -> 0.071 - - 1.34223 -> 1.066 - - 5.57170 -> 4.408 - - 6.69184 -> 5.259 - - 6.97187 -> 5.540 - - # Total daily energy sensor - - platform: total_daily_energy - name: "${friendly_name} Daily Energy" - power_id: power - filters: - # Multiplication factor from W to kW is 0.001 - - multiply: 0.001 - unit_of_measurement: kWh - -text_sensor: - # Device Activity State - # e.g. shows as active if power reading above a certain threshold - - platform: template - name: "${friendly_name} Activity State" - icon: "mdi:${main_icon}" - lambda: |- - if (id(power).state >= $activity_threshold) { - return {"Active"}; - } else { - return {"Idle"}; - } - update_interval: 5s - -# Relay State LED -output: - - platform: esp8266_pwm - id: state_led - pin: - number: GPIO0 - inverted: true - -light: - - platform: monochromatic - output: state_led - id: led \ No newline at end of file diff --git a/esphome/upstairs_air_freshener.yaml b/esphome/upstairs_air_freshener.yaml deleted file mode 100644 index f295eed..0000000 --- a/esphome/upstairs_air_freshener.yaml +++ /dev/null @@ -1,68 +0,0 @@ -# Sonoff S20 - -# Substitutions -substitutions: - # Device Names - device_name: "upstairs_air_freshener" - friendly_name: "Upstairs Air Freshener" - # Comment / Info To Display In ESPHome Front End - device_comment: "" - # Icon - main_icon: "spray" - # Default Relay State - # Aka: `restore_mode` in documentation - # Options: `RESTORE_DEFAULT_OFF`, `RESTORE_DEFAULT_ON`, `ALWAYS_ON` & `ALWAYS_OFF` - default_state: "RESTORE_DEFAULT_OFF" - -# Basic Config -esphome: - name: "${device_name}" - comment: "${device_comment}" - platform: ESP8266 - board: esp01_1m - -wifi: - ssid: !secret esphome_wifi_ssid - password: !secret esphome_wifi_password - -logger: - -api: - reboot_timeout: 15min - -ota: - password: !secret esphome_ota_password - -time: - - platform: sntp - id: sntp_time - -# Device Specific Config -binary_sensor: - - platform: gpio - pin: - number: GPIO0 - mode: INPUT_PULLUP - inverted: True - name: "${friendly_name} Button" - on_press: - - switch.toggle: relay - - platform: status - name: "${friendly_name} Status" - -sensor: - - platform: wifi_signal - name: "${friendly_name} WiFi Signal" - update_interval: 60s - -switch: - - platform: gpio - name: "${friendly_name}" - icon: "mdi:${main_icon}" - pin: GPIO12 - id: relay - restore_mode: "${default_state}" - -status_led: - pin: - number: GPIO13 \ No newline at end of file diff --git a/esphome/washing_machine.yaml b/esphome/washing_machine.yaml deleted file mode 100644 index 3f771de..0000000 --- a/esphome/washing_machine.yaml +++ /dev/null @@ -1,162 +0,0 @@ -# Maxcio W-UK007S - -# Substitutions -substitutions: - # Device Names - device_name: "washing_machine" - friendly_name: "Washing Machine" - # Icon - main_icon: "washing-machine" - # Default Relay State - # Aka: `restore_mode` in documentation - # Options: `RESTORE_DEFAULT_OFF`, `RESTORE_DEFAULT_ON`, `ALWAYS_ON` & `ALWAYS_OFF` - default_state: "ALWAYS_ON" - # Activity State Threshold - # Threshold (number) that the device will change from `Idle` to `Active` if power is greater than or equal to - activity_threshold: "10" - -# Basic Config -esphome: - name: "${device_name}" - platform: ESP8266 - board: esp01_1m - -wifi: - ssid: !secret esphome_wifi_ssid - password: !secret esphome_wifi_password - -logger: - -api: - reboot_timeout: 15min - -ota: - password: !secret esphome_ota_password - -time: - - platform: sntp - id: sntp_time - -# Device Specific Config -binary_sensor: - # Push Button (Toggles Relay When Pressed) - - platform: gpio - pin: - number: GPIO13 - mode: INPUT_PULLUP - inverted: true - name: "${friendly_name} Button" - on_press: - - switch.toggle: relay - - platform: status - name: "${friendly_name} Server Status" - -switch: - # Relay (As Switch) - - platform: gpio - name: "${friendly_name}" - icon: "mdi:${main_icon}" - pin: GPIO15 - id: relay - restore_mode: "${default_state}" - on_turn_on: - - light.turn_on: - id: led - brightness: 100% - transition_length: 0s - on_turn_off: - - light.turn_off: - id: led - transition_length: 0s - -sensor: - # WiFi Signal Sensor - - platform: wifi_signal - name: "${friendly_name} WiFi Status" - update_interval: 60s - # Power Monitoring - - platform: hlw8012 - sel_pin: - number: GPIO12 - inverted: true - cf_pin: GPIO5 - cf1_pin: GPIO14 - change_mode_every: 3 - update_interval: 3s - voltage: - name: "${friendly_name} Voltage" - id: voltage - unit_of_measurement: V - accuracy_decimals: 1 - filters: - # Map from sensor -> measured value - - calibrate_linear: - - 0.0 -> 0.0 - - 602.87506 -> 229.9 - - 609.8 -> 232.8 - power: - name: "${friendly_name} Power" - id: power - unit_of_measurement: W - accuracy_decimals: 0 - filters: - # Map from sensor -> measured value - - calibrate_linear: - - 0.0 -> 1.14 - - 62.06167 -> 10.93 - - 1503.27161 -> 247.6 - - 1599.81213 -> 263.7 - - 3923.67700 -> 631.4 - - 7109.50928 -> 1148.0 - - 7237.0857 -> 1193.0 - - 7426.71338 -> 1217.0 - current: - name: "${friendly_name} Current" - id: current - unit_of_measurement: A - accuracy_decimals: 3 - filters: - # Map from sensor -> measured value - - calibrate_linear: - - 0.0 -> 0.013 - - 0.08208 -> 0.071 - - 1.34223 -> 1.066 - - 5.57170 -> 4.408 - - 6.69184 -> 5.259 - - 6.97187 -> 5.540 - - # Total daily energy sensor - - platform: total_daily_energy - name: "${friendly_name} Daily Energy" - power_id: power - filters: - # Multiplication factor from W to kW is 0.001 - - multiply: 0.001 - unit_of_measurement: kWh - -text_sensor: - # Device Activity State - # e.g. shows as active if power reading above a certain threshold - - platform: template - name: "${friendly_name} Activity State" - icon: "mdi:${main_icon}" - lambda: |- - if (id(power).state >= $activity_threshold) { - return {"Active"}; - } else { - return {"Idle"}; - } - update_interval: 5s - -# Relay State LED -output: - - platform: esp8266_pwm - id: state_led - pin: - number: GPIO0 - inverted: true - -light: - - platform: monochromatic - output: state_led - id: led \ No newline at end of file diff --git a/integrations/automation.yaml b/integrations/automation.yaml deleted file mode 100644 index 9e8d7c5..0000000 --- a/integrations/automation.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -# Automations -# https://www.home-assistant.io/docs/automation/ - -automation: !include ../automations.yaml -automation split: !include_dir_list ../automations diff --git a/integrations/binary_sensor.yaml b/integrations/binary_sensor.yaml deleted file mode 100644 index 6b3ca2b..0000000 --- a/integrations/binary_sensor.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -# Binary Sensors -# https://www.home-assistant.io/integrations/binary_sensor/ - -binary_sensor: !include_dir_list ../entities/binary_sensors diff --git a/integrations/camera.yaml b/integrations/camera.yaml deleted file mode 100644 index 406ee34..0000000 --- a/integrations/camera.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -# Cameras -# https://www.home-assistant.io/integrations/camera/ - -camera: !include_dir_list ../entities/cameras diff --git a/integrations/cloud.yaml b/integrations/cloud.yaml deleted file mode 100644 index a91a4bf..0000000 --- a/integrations/cloud.yaml +++ /dev/null @@ -1,14 +0,0 @@ ---- -# Cloud -# https://www.home-assistant.io/integrations/cloud/ - -cloud: - # Customize the Alexa integration with the Nabu Casa Cloud - alexa: - # Entity specific configuration for Google Assistant. - # These are loaded from a separate directory. - entity_config: !include_dir_merge_named ../assistants/alexa - # filter: - # # Filters for entities to include/exclude from Alexa. - # include_entities: [] - # exclude_entities: [] diff --git a/integrations/config.yaml b/integrations/config.yaml deleted file mode 100644 index 15138fe..0000000 --- a/integrations/config.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -# Config -# https://www.home-assistant.io/integrations/config/ - -config: diff --git a/integrations/device_tracker.yaml b/integrations/device_tracker.yaml deleted file mode 100644 index 5b85478..0000000 --- a/integrations/device_tracker.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -# Device Trackers -# https://www.home-assistant.io/components/device_tracker/ - -device_tracker: !include_dir_list ../entities/device_trackers diff --git a/integrations/discovery.yaml b/integrations/discovery.yaml deleted file mode 100644 index 5a382cf..0000000 --- a/integrations/discovery.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -# Discovery -# https://www.home-assistant.io/components/discovery/ - -discovery: diff --git a/integrations/evohome.yaml b/integrations/evohome.yaml deleted file mode 100644 index 7a24b24..0000000 --- a/integrations/evohome.yaml +++ /dev/null @@ -1,8 +0,0 @@ -# Honeywell Evohome -# https://www.home-assistant.io/integrations/evohome/ - -evohome: - username: !secret evohome_username - password: !secret evohome_password - location_idx: 1 - scan_interval: 180 diff --git a/integrations/frontend.yaml b/integrations/frontend.yaml deleted file mode 100644 index 0105ab9..0000000 --- a/integrations/frontend.yaml +++ /dev/null @@ -1,16 +0,0 @@ ---- -# Frontend -# https://www.home-assistant.io/integrations/frontend/ - -frontend: - # Version of the JavaScript to serve to clients. - javascript_version: auto - - # List of additional resources to load (latest javascript) - extra_html_url: [] - - # List of additional resource to load (es5 javascript) - extra_html_url_es5: [] - - # We can define additional/custom themes for the frontend here. - themes: !include_dir_merge_named ../themes diff --git a/integrations/garbage_collection.yaml b/integrations/garbage_collection.yaml deleted file mode 100644 index a18496e..0000000 --- a/integrations/garbage_collection.yaml +++ /dev/null @@ -1,27 +0,0 @@ -# Garbage Collection -# Managed through HACS -# https://github.com/bruxy70/Garbage-Collection - -garbage_collection: - sensors: - - name: Black Bin - collection_days: "thu" - frequency: "every-n-days" - period: 14 - first_date: "2020-01-02" - exclude_dates: [] - - name: Red Bin - collection_days: "thu" - frequency: "every-n-days" - period: 14 - first_date: "2020-01-09" - exclude_dates: [] - - name: Green Bin - collection_days: "thu" - frequency: "every-n-days" - period: 14 - first_date: "2020-01-09" - exclude_dates: - - "2020-01-23" - - "2020-02-06" - - "2020-02-20" \ No newline at end of file diff --git a/integrations/group.yaml b/integrations/group.yaml deleted file mode 100644 index f063e84..0000000 --- a/integrations/group.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -# Groups -# https://www.home-assistant.io/components/group/ - -group: !include_dir_merge_named ../entities/groups diff --git a/integrations/hassio.yaml b/integrations/hassio.yaml deleted file mode 100644 index 5865193..0000000 --- a/integrations/hassio.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -# Hassio -# Enables the hassio pannel on the frontend -# - -hassio: diff --git a/integrations/history.yaml b/integrations/history.yaml deleted file mode 100644 index bcf2025..0000000 --- a/integrations/history.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -# History -# https://www.home-assistant.io/integrations/history/ - -history: diff --git a/integrations/homeassistant.yaml b/integrations/homeassistant.yaml deleted file mode 100644 index d72255f..0000000 --- a/integrations/homeassistant.yaml +++ /dev/null @@ -1,23 +0,0 @@ ---- -# Home Assistant component -# # https://www.home-assistant.io/docs/configuration/basic/ - -homeassistant: - # Home Assistant Instance Name - name: Connock-Adams Home - - # Units - unit_system: metric - temperature_unit: C - - # Timezone - time_zone: Europe/London - - # Customize individual entities - customize: !include_dir_merge_named ../customizations/entities - - # Custimize all entities in a domain - customize_domain: !include_dir_merge_named ../customizations/domains - - # Custimize entities based on a matching pattern - customize_glob: !include_dir_merge_named ../customizations/globs diff --git a/integrations/http.yaml b/integrations/http.yaml deleted file mode 100644 index b1bbf0b..0000000 --- a/integrations/http.yaml +++ /dev/null @@ -1,27 +0,0 @@ ---- -# HTTP -# https://home-assistant.io/components/http/ - -http: - # URL Home Assistant is avaliable on - base_url: !secret http_base_url - - # Server Port (Default: 8123) - server_port: !secret http_server_port - - # List of origin domain names to allow CORS requests from. - cors_allowed_origins: !secret http_cors_allowed_origins - - # Enable parsing of the X-Forwarded-For header, passing on the client’s - # correct IP address. - use_x_forwarded_for: true - - # List of trusted proxies, consisting of IP addresses or networks, - # that are allowed to set the X-Forwarded-For header. - trusted_proxies: !secret http_trusted_proxies - - # IP Banning - ip_ban_enabled: false - - # Number of failed login attempts from an IP Address before becoming banned - login_attempts_threshold: 5 diff --git a/integrations/hue.yaml b/integrations/hue.yaml deleted file mode 100644 index d210153..0000000 --- a/integrations/hue.yaml +++ /dev/null @@ -1,9 +0,0 @@ ---- -# Philips Hue -# https://www.home-assistant.io/integrations/hue/ - -hue: - bridges: - - host: !secret phillips_hue_hub_ip - allow_unreachable: true - allow_hue_groups: true diff --git a/integrations/influxdb.yaml.disable b/integrations/influxdb.yaml.disable deleted file mode 100644 index 0b6a7c2..0000000 --- a/integrations/influxdb.yaml.disable +++ /dev/null @@ -1,11 +0,0 @@ -# InfluxDB -# https://www.home-assistant.io/integrations/influxdb/ - -influxdb: - host: a0d7b954_influxdb - port: 8086 - database: homeassistant - username: homeassistant - password: 123456789 - max_retries: 3 - default_measurement: state \ No newline at end of file diff --git a/integrations/input_boolean.yaml b/integrations/input_boolean.yaml deleted file mode 100644 index 59b4cef..0000000 --- a/integrations/input_boolean.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -# Input Booleans -# https://www.home-assistant.io/integrations/input_boolean/ - -input_boolean: !include_dir_merge_named ../entities/input_booleans diff --git a/integrations/input_datetime.yaml b/integrations/input_datetime.yaml deleted file mode 100644 index a0cdf22..0000000 --- a/integrations/input_datetime.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -# Input Datetime -# https://www.home-assistant.io/integrations/input_datetime/ - -input_datetime: !include_dir_merge_named ../entities/input_datetime diff --git a/integrations/input_number.yaml b/integrations/input_number.yaml deleted file mode 100644 index c8a3147..0000000 --- a/integrations/input_number.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -# Input Number -# https://www.home-assistant.io/integrations/input_number/ - -input_number: !include_dir_merge_named ../entities/input_numbers diff --git a/integrations/input_select.yaml b/integrations/input_select.yaml deleted file mode 100644 index 7b16bcb..0000000 --- a/integrations/input_select.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -# Input Select -# https://www.home-assistant.io/integrations/input_select/ - -input_select: !include_dir_merge_named ../entities/input_selects diff --git a/integrations/input_text.yaml b/integrations/input_text.yaml deleted file mode 100644 index 43f7264..0000000 --- a/integrations/input_text.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -# Input Text -# https://www.home-assistant.io/integrations/input_texts/ - -input_text: !include_dir_merge_named ../entities/input_texts diff --git a/integrations/ios.yaml b/integrations/ios.yaml deleted file mode 100644 index fb9bdc7..0000000 --- a/integrations/ios.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -# iOS -# https://www.home-assistant.io/integrations/ios/ -# https://www.home-assistant.io/docs/ecosystem/ios/ - -ios: diff --git a/integrations/light.yaml b/integrations/light.yaml deleted file mode 100644 index 2f28188..0000000 --- a/integrations/light.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -# Lights -# https://www.home-assistant.io/integrations/light/ - -light: !include_dir_list ../entities/lights diff --git a/integrations/logbook.yaml b/integrations/logbook.yaml deleted file mode 100644 index cd63480..0000000 --- a/integrations/logbook.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -# Logbook -# https://www.home-assistant.io/integrations/logbook/ - -logbook: diff --git a/integrations/logger.yaml.disable b/integrations/logger.yaml.disable deleted file mode 100644 index 96af62c..0000000 --- a/integrations/logger.yaml.disable +++ /dev/null @@ -1,8 +0,0 @@ -# Logger -# https://www.home-assistant.io/integrations/logger/ - -logger: - default: info - logs: - pydeconz: debug - homeassistant.components.deconz: debug \ No newline at end of file diff --git a/integrations/lovelace.yaml b/integrations/lovelace.yaml deleted file mode 100644 index 691b56b..0000000 --- a/integrations/lovelace.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -# Lovelace component for confuring the UI. -# https://www.home-assistant.io/lovelace/ - -lovelace: diff --git a/integrations/map.yaml b/integrations/map.yaml deleted file mode 100644 index 05ed069..0000000 --- a/integrations/map.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -# Map -# https://www.home-assistant.io/integrations/map/ - -map: diff --git a/integrations/media_player.yaml b/integrations/media_player.yaml deleted file mode 100644 index bb29c62..0000000 --- a/integrations/media_player.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -# Media Player -# https://www.home-assistant.io/integrations/media_player/ - -media_player: !include_dir_list ../entities/media_players diff --git a/integrations/mobile_app.yaml b/integrations/mobile_app.yaml deleted file mode 100644 index 1c9753b..0000000 --- a/integrations/mobile_app.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -# Mobile App -# https://www.home-assistant.io/integrations/mobile_app/ - -mobile_app: diff --git a/integrations/notify.yaml b/integrations/notify.yaml deleted file mode 100644 index aaf1830..0000000 --- a/integrations/notify.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -# Notify -# https://www.home-assistant.io/components/notify/ -# https://www.home-assistant.io/components/notify.group/ - -notify: !include_dir_list ../entities/notify diff --git a/integrations/person.yaml b/integrations/person.yaml deleted file mode 100644 index 25ec13a..0000000 --- a/integrations/person.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -# Person -# https://www.home-assistant.io/integrations/person/ - -person: !include_dir_list ../entities/persons diff --git a/integrations/recorder.yaml b/integrations/recorder.yaml deleted file mode 100644 index 0feefee..0000000 --- a/integrations/recorder.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -# Recorder -# https://www.home-assistant.io/integrations/recorder/ - -recorder: - # The number of days of history to keep in the recorder database - purge_keep_days: 7 - - # How often (in days) the purge task runs - purge_interval: 1 diff --git a/integrations/ring.yaml b/integrations/ring.yaml deleted file mode 100644 index c86775a..0000000 --- a/integrations/ring.yaml +++ /dev/null @@ -1,9 +0,0 @@ -# Ring -# https://www.home-assistant.io/integrations/ring/ - -# DISABLED: Currently disabled due to error -# https://community.home-assistant.io/t/ring-integration-setup-fails/156240/250 - -ring: - username: !secret ring_username - password: !secret ring_password diff --git a/integrations/scene.yaml b/integrations/scene.yaml deleted file mode 100644 index 70758e3..0000000 --- a/integrations/scene.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -# Scenes -# https://www.home-assistant.io/integrations/scene - -# This include is for the scene editor/UI -scene: !include ../scenes.yaml -scene split: !include_dir_list ../scenes diff --git a/integrations/script.yaml b/integrations/script.yaml deleted file mode 100644 index 7646847..0000000 --- a/integrations/script.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -# Scripts -# https://www.home-assistant.io/integrations/script/ - -script: !include_dir_merge_named ../scripts \ No newline at end of file diff --git a/integrations/sensor.yaml b/integrations/sensor.yaml deleted file mode 100644 index ae6bb9a..0000000 --- a/integrations/sensor.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -# Sensor -# https://www.home-assistant.io/integrations/sensor/ - -sensor: !include_dir_list ../entities/sensors diff --git a/integrations/sun.yaml b/integrations/sun.yaml deleted file mode 100644 index 0f6051e..0000000 --- a/integrations/sun.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -# Sun -# https://www.home-assistant.io/integrations/sun/ - -sun: - # The (physical) elevation of your location, in meters above sea level. - elevation: !secret home_elevation diff --git a/integrations/switch.yaml b/integrations/switch.yaml deleted file mode 100644 index 645fb07..0000000 --- a/integrations/switch.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -# Switches -# https://www.home-assistant.io/integrations/switch/ - -switch: !include_dir_list ../entities/switches diff --git a/integrations/system_health.yaml b/integrations/system_health.yaml deleted file mode 100644 index f9e7448..0000000 --- a/integrations/system_health.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -# System Health -# https://www.home-assistant.io/integrations/system_health/ - -system_health: diff --git a/integrations/tradfri.yaml.disable b/integrations/tradfri.yaml.disable deleted file mode 100644 index b6646a2..0000000 --- a/integrations/tradfri.yaml.disable +++ /dev/null @@ -1,8 +0,0 @@ -# Tradfri -# https://www.home-assistant.io/integrations/tradfri/ - -# DISABLED: No longer required as replaced by ConBee II - -tradfri: - host: 10.1.1.174 - allow_tradfri_groups: true diff --git a/integrations/twilio.yaml b/integrations/twilio.yaml deleted file mode 100644 index 8d80a2d..0000000 --- a/integrations/twilio.yaml +++ /dev/null @@ -1,7 +0,0 @@ -# Twilio -# https://www.home-assistant.io/components/twilio/ -# https://www.home-assistant.io/components/twilio_sms/ - -twilio: - account_sid: !secret twilio_sid - auth_token: !secret twilio_auth_token diff --git a/integrations/updater.yaml b/integrations/updater.yaml deleted file mode 100644 index c5b2b4d..0000000 --- a/integrations/updater.yaml +++ /dev/null @@ -1,13 +0,0 @@ ---- -# Updater -# https://www.home-assistant.io/integrations/updater/ -# -# For more information, please see: -# https://home-assistant.io/blog/2016/10/25/explaining-the-updater/ - -updater: - # Share information with Home Assistant Developers - reporting: true - - # Report list of components to Home Assistant Developers - include_used_components: true diff --git a/integrations/weather.yaml b/integrations/weather.yaml deleted file mode 100644 index ef32328..0000000 --- a/integrations/weather.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -# Weather -# https://www.home-assistant.io/integrations/weather/ - -weather: !include_dir_list ../entities/weather diff --git a/integrations/zone.yaml b/integrations/zone.yaml deleted file mode 100644 index ef4b3f7..0000000 --- a/integrations/zone.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -# Zones -# https://www.home-assistant.io/integrations/zone/ - -zone: !include_dir_list ../entities/zones diff --git a/scenes.yaml b/scenes.yaml deleted file mode 100644 index f9182ee..0000000 --- a/scenes.yaml +++ /dev/null @@ -1,278 +0,0 @@ -- id: '1578761854442' - name: Colourful Mode (Living Room) - entities: - light.living_room_left_color: - brightness: 254 - effect: none - effect_list: - - colorloop - - random - friendly_name: Left Colour - hs_color: - - 180.615 - - 76.471 - icon: mdi:track-light - rgb_color: - - 59 - - 253 - - 255 - state: 'on' - supported_features: 61 - xy_color: - - 0.162 - - 0.339 - light.living_room_left_lamp: - brightness: 254 - friendly_name: Living Room Left Lamp - hs_color: - - 299.997 - - 100 - rgb_color: - - 254 - - 0 - - 255 - state: 'on' - supported_features: 49 - xy_color: - - 0.384 - - 0.154 - light.living_room_right_color: - brightness: 254 - effect: none - effect_list: - - colorloop - - random - friendly_name: Right Colour - hs_color: - - 100.706 - - 100 - icon: mdi:track-light - rgb_color: - - 81 - - 255 - - 0 - state: 'on' - supported_features: 61 - xy_color: - - 0.215 - - 0.711 - light.living_room_right_lamp: - brightness: 254 - friendly_name: Living Room Right Lamp - hs_color: - - 29.999 - - 100 - rgb_color: - - 255 - - 127 - - 0 - state: 'on' - supported_features: 49 - xy_color: - - 0.612 - - 0.374 - light.living_room_tall_lamp: - brightness: 254 - friendly_name: Living Room Tall Lamp - hs_color: - - 269.999 - - 100 - rgb_color: - - 127 - - 0 - - 255 - state: 'on' - supported_features: 49 - xy_color: - - 0.217 - - 0.077 -- id: '1578762173280' - name: Normal Mode (Living Room) - entities: - light.living_room_left_color: - effect_list: - - colorloop - - random - friendly_name: Left Colour - icon: mdi:track-light - state: 'off' - supported_features: 61 - light.living_room_left_lamp: - brightness: 254 - friendly_name: Living Room Left Lamp - hs_color: - - 29.812 - - 65.252 - rgb_color: - - 255 - - 171 - - 88 - state: 'on' - supported_features: 49 - xy_color: - - 0.52 - - 0.392 - light.living_room_right_color: - effect_list: - - colorloop - - random - friendly_name: Right Colour - icon: mdi:track-light - state: 'off' - supported_features: 61 - light.living_room_right_lamp: - brightness: 254 - friendly_name: Living Room Right Lamp - hs_color: - - 29.812 - - 65.252 - rgb_color: - - 255 - - 171 - - 88 - state: 'on' - supported_features: 49 - xy_color: - - 0.52 - - 0.392 - light.living_room_tall_lamp: - brightness: 254 - friendly_name: Living Room Tall Lamp - hs_color: - - 29.812 - - 65.252 - rgb_color: - - 255 - - 171 - - 88 - state: 'on' - supported_features: 49 - xy_color: - - 0.52 - - 0.392 -- id: '1578762351233' - name: Movie Mode (Living Room) - entities: - light.living_room_left_color: - effect_list: - - colorloop - - random - friendly_name: Left Colour - icon: mdi:track-light - state: 'off' - supported_features: 61 - light.living_room_left_lamp: - brightness: 40 - friendly_name: Living Room Left Lamp - hs_color: - - 29.999 - - 57.142 - rgb_color: - - 255 - - 182 - - 109 - state: 'on' - supported_features: 49 - xy_color: - - 0.491 - - 0.39 - light.living_room_right_color: - effect_list: - - colorloop - - random - friendly_name: Right Colour - icon: mdi:track-light - state: 'off' - supported_features: 61 - light.living_room_right_lamp: - brightness: 40 - friendly_name: Living Room Right Lamp - hs_color: - - 29.999 - - 57.142 - rgb_color: - - 255 - - 182 - - 109 - state: 'on' - supported_features: 49 - xy_color: - - 0.491 - - 0.39 - light.living_room_tall_lamp: - brightness: 40 - friendly_name: Living Room Tall Lamp - hs_color: - - 29.999 - - 57.142 - rgb_color: - - 255 - - 182 - - 109 - state: 'on' - supported_features: 49 - xy_color: - - 0.491 - - 0.39 -- id: '1578785060571' - name: Daylight Mode (Living Room) - entities: - light.living_room_left_color: - effect_list: - - colorloop - - random - friendly_name: Living Room Left Colour - state: 'off' - supported_features: 61 - light.living_room_left_lamp: - brightness: 254 - friendly_name: Living Room Left Lamp - hs_color: - - 31.861 - - 37.369 - rgb_color: - - 255 - - 210 - - 159 - state: 'on' - supported_features: 49 - xy_color: - - 0.423 - - 0.377 - light.living_room_right_color: - effect_list: - - colorloop - - random - friendly_name: Living Room Right Colour - state: 'off' - supported_features: 61 - light.living_room_right_lamp: - brightness: 254 - friendly_name: Living Room Right Lamp - hs_color: - - 31.861 - - 37.369 - rgb_color: - - 255 - - 210 - - 159 - state: 'on' - supported_features: 49 - xy_color: - - 0.423 - - 0.377 - light.living_room_tall_lamp: - brightness: 254 - friendly_name: Living Room Tall Lamp - hs_color: - - 31.861 - - 37.369 - rgb_color: - - 255 - - 210 - - 159 - state: 'on' - supported_features: 49 - xy_color: - - 0.423 - - 0.377 diff --git a/scenes/.gitkeep b/scenes/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/scripts/.gitkeep b/scripts/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/secrets_dummy.yaml b/secrets_dummy.yaml deleted file mode 100644 index 7180cfb..0000000 --- a/secrets_dummy.yaml +++ /dev/null @@ -1,76 +0,0 @@ -# Secrets File - -# Base URL -http_base_url: https://google.com - -# HTTP Server Port -http_server_port: 8123 - -# HTTP Trusted Proxies -http_trusted_proxies: ["0.0.0.0"] - -# HTTP Cors Allowed Origins -http_cors_allowed_origins: ["0.0.0.0"] - -# Home Location Information -home_latitude: 00.00 -home_longitude: 00.00 -home_elevation: 00.00 - -# Zone - Jon's Parents -jon_parents_latitude: 00.00 -jon_parents_longitude: 00.00 - -# Zone - Lee's Parents -lee_parents_latitude: 00.00 -lee_parents_longitude: 00.00 - -# Zone - Jon's Work (Hub) -jon_work_hub_latitude: 00.00 -jon_work_hub_longitude: 00.00 - -# Zone - Jon's Work (Hospital) -jon_work_hospital_latitude: 00.00 -jon_work_hospital_longitude: 00.00 - -# Zone - Lee's Work -lee_work_latitude: 00.00 -lee_work_longitude: 00.00 - -# MQTT -MQTT_username: username -MQTT_password: password - -# HIVE -hive_username: username -hive_password: password - -# TravisCI API Key -travisci_api_key: xyz - -# Device IP Addresses -phillips_hue_hub_ip: 0.0.0.0 -living_room_tv_ip: 0.0.0.0 -living_room_amp_ip: 0.0.0.0 - -# Node-Red -nodered_credential_secret: password - -# Twilio -twilio_sid: sid -twilio_auth_token: token - -# Amazon Alexa -amazon_alexa_username: username -amazon_alexa_password: password - -# Ring -ring_username: username -ring_password: password - -# Evohome -evohome_username: username -evohome_password: password - -# Darksky -darksky_api_key: xxxxx diff --git a/themes/.gitkeep b/themes/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/www/community/custom-header/custom-header.js b/www/community/custom-header/custom-header.js deleted file mode 100644 index cde7d0d..0000000 --- a/www/community/custom-header/custom-header.js +++ /dev/null @@ -1,145 +0,0 @@ -function asyncGeneratorStep(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread2(e){for(var t=1;t3?0:(e-e%10!=10)*e%10]}};var c={D:function(e){return e.getDate()},DD:function(e){return pad(e.getDate())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return e.getDay()},dd:function(e){return pad(e.getDay())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return e.getMonth()+1},MM:function(e){return pad(e.getMonth()+1)},MMM:function(e,t){return t.monthNamesShort[e.getMonth()]},MMMM:function(e,t){return t.monthNames[e.getMonth()]},YY:function(e){return pad(String(e.getFullYear()),4).substr(2)},YYYY:function(e){return pad(e.getFullYear(),4)},h:function(e){return e.getHours()%12||12},hh:function(e){return pad(e.getHours()%12||12)},H:function(e){return e.getHours()},HH:function(e){return pad(e.getHours())},m:function(e){return e.getMinutes()},mm:function(e){return pad(e.getMinutes())},s:function(e){return e.getSeconds()},ss:function(e){return pad(e.getSeconds())},S:function(e){return Math.round(e.getMilliseconds()/100)},SS:function(e){return pad(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return pad(e.getMilliseconds(),3)},a:function(e,t){return e.getHours()<12?t.amPm[0]:t.amPm[1]},A:function(e,t){return e.getHours()<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+pad(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)}},l={D:["\\d\\d?",function(e,t){e.day=t}],Do:["\\d\\d?"+n,function(e,t){e.day=parseInt(t,10)}],M:["\\d\\d?",function(e,t){e.month=t-1}],YY:["\\d\\d?",function(e,t){var n=+(""+(new Date).getFullYear()).substr(0,2);e.year=""+(t>68?n-1:n)+t}],h:["\\d\\d?",function(e,t){e.hour=t}],m:["\\d\\d?",function(e,t){e.minute=t}],s:["\\d\\d?",function(e,t){e.second=t}],YYYY:["\\d{4}",function(e,t){e.year=t}],S:["\\d",function(e,t){e.millisecond=100*t}],SS:["\\d{2}",function(e,t){e.millisecond=10*t}],SSS:["\\d{3}",function(e,t){e.millisecond=t}],d:["\\d\\d?",noop],ddd:[n,noop],MMM:[n,monthUpdate("monthNamesShort")],MMMM:[n,monthUpdate("monthNames")],a:[n,function(e,t,n){var r=t.toLowerCase();r===n.amPm[0]?e.isPm=!1:r===n.amPm[1]&&(e.isPm=!0)}],ZZ:["[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z",function(e,t){var n,r=(t+"").match(/([+-]|\d\d)/gi);r&&(n=60*r[1]+parseInt(r[2],10),e.timezoneOffset="+"===r[0]?n:-n)}]};l.dd=l.d,l.dddd=l.ddd,l.DD=l.D,l.mm=l.m,l.hh=l.H=l.HH=l.h,l.MM=l.M,l.ss=l.s,l.A=l.a,e.masks={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},e.format=function(n,o,i){var a=i||e.i18n;if("number"==typeof n&&(n=new Date(n)),"[object Date]"!==Object.prototype.toString.call(n)||isNaN(n.getTime()))throw new Error("Invalid Date in fecha.format");o=e.masks[o]||o||e.masks.default;var s=[];return(o=(o=o.replace(r,(function(e,t){return s.push(t),"@@@"}))).replace(t,(function(e){return e in c?c[e](n,a):e.slice(1,e.length-1)}))).replace(/@@@/g,(function(){return s.shift()}))},e.parse=function(n,o,i){var a=i||e.i18n;if("string"!=typeof o)throw new Error("Invalid format in fecha.parse");if(o=e.masks[o]||o,n.length>1e3)return null;var s={},c=[],u=[],d=function regexEscape(e){return e.replace(/[|\\{()[^$+*?.-]/g,"\\$&")}(o=o.replace(r,(function(e,t){return u.push(t),"@@@"}))).replace(t,(function(e){if(l[e]){var t=l[e];return c.push(t[1]),"("+t[0]+")"}return e}));d=d.replace(/@@@/g,(function(){return u.shift()}));var h=n.match(new RegExp(d,"i"));if(!h)return null;for(var p=1;p1?"s":""," could not be found: ").concat(m.join(", ")));let g=(()=>{if(window.fully&&"function"==typeof fully.getDeviceId)return fully.getDeviceId();if(!localStorage["lovelace-player-device-id"]){const s4=()=>Math.floor(1e5*(1+Math.random())).toString(16).substring(1);localStorage["lovelace-player-device-id"]="".concat(s4()).concat(s4(),"-").concat(s4()).concat(s4())}return localStorage["lovelace-player-device-id"]})();Object.defineProperty(Array.prototype,"flat",{value:function value(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.reduce((function(t,n){return t.concat(Array.isArray(n)&&e-1?n.flat(e-1):n)}),[])}});const tapOrClick=(e,t)=>{e.addEventListener("click",()=>{t.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!1}))}),e.addEventListener("tap",()=>{t.dispatchEvent(new MouseEvent("tap",{bubbles:!1,cancelable:!1}))})},tabIndexByName=e=>{let t;const{views:n}=h.config;return isNaN(e)?n.forEach(r=>{r.title!==e&&r.path!==e||(t=n.indexOf(r))}):t=parseInt(e,10),t},subscribeRenderTemplate=(e,t,n)=>{const r=d.connection,o=_objectSpread2({user:d.user.name,browser:navigator.userAgent},t.variables,{},(e=>{const t=F(),n=new Date;if(t&&null!=t.config.views[t.current_view])return{deviceID:g,isAdmin:d.user.is_admin,isOwner:d.user.is_owner,user:d.user.name,userID:d.user.id,userAgent:navigator.userAgent,viewTitle:t.config.views[t.current_view].title,viewPath:t.config.views[t.current_view].path,viewIndex:t.current_view,url:window.location.href,time:n.toLocaleTimeString(e,{hour:"2-digit",minute:"2-digit"}),date:n.toLocaleDateString(e,{}),monthNum:n.getMonth()+1,monthNumLZ:String(n.getMonth()+1).padStart(2,0),monthNameShort:n.toLocaleDateString(e,{month:"short"}),monthNameLong:n.toLocaleDateString(e,{month:"long"}),dayNum:n.getDate(),dayNumLZ:String(n.getDate()).padStart(2,0),dayNameShort:n.toLocaleDateString(e,{weekday:"short"}),dayNameLong:n.toLocaleDateString(e,{weekday:"long"}),hours12:String((n.getHours()+24)%12||12),hours12LZ:String((n.getHours()+24)%12||12).padStart(2,0),hours24:n.getHours(),hours24LZ:String(n.getHours()).padStart(2,0),minutes:n.getMinutes(),minutesLZ:String(n.getMinutes()).padStart(2,0),year2d:String(n.getFullYear()).substr(-2),year4d:n.getFullYear(),AMPM:n.getHours()>=12?"PM":"AM",ampm:n.getHours()>=12?"pm":"am"}})(n)),i=t.template,a=t.entity_ids;return r.subscribeMessage(t=>e(t.result),{type:"render_template",template:i,variables:o,entity_ids:a})},buildRange=e=>{const t=[],range=(e,t)=>new Array(t-e+1).fill(void 0).map((t,n)=>n+e);if(e.includes("to")){const n=e.split("to");parseInt(n[1])>parseInt(n[0])?t.push(range(parseInt(n[0]),parseInt(n[1]))):t.push(range(parseInt(n[1]),parseInt(n[0])))}return t.flat()},processTabArray=e=>{let t=[];e="string"==typeof e?e.replace(/\s+/g,"").split(","):e;for(const n in e)if("string"==typeof e[n]&&e[n].includes("to")){const r=e[n].replace(/ /g,"").split("to");r[0].match(/[a-z]/g)||r[1].match(/[a-z]/g)?t.push(e[n]):t.push(buildRange(e[n]))}else t.push(e[n]);t=t.flat();for(const e in t)isNaN(t[e])?t[e]=tabIndexByName(t[e]):t[e]=parseInt(t[e]);return t.sort((e,t)=>e-t)},conditionalConfig=e=>{const t=F();let n={},r=0;return e.exceptions&&e.exceptions.forEach(e=>{const o=(e=>{const n={user:d.user.name,user_agent:navigator.userAgent,device_id:g};let r=0;for(const o in e)if(window.customHeaderTabCond=!!Object.keys(e).includes("tab"),"user"==o&&e[o].includes(","))e[o].split(/,+/).forEach(e=>{n[o]!=e.trim()&&e!=d.user.id||r++});else if("tab"==o&&(e[o].includes(",")||e[o].includes("to"))){const n=processTabArray(e[o]);if(t&&n.includes(t.current_view)){r++;continue}}else{if(!(n[o]==e[o]||"query_string"==o&&window.location.search.includes(e[o])||"user_agent"==o&&n[o].includes(e[o])||"media_query"==o&&window.matchMedia(e[o]).matches||"user"==o&&e[o]==d.user.id||"is_admin"==o&&e[o]==d.user.is_admin||"is_owner"==o&&e[o]==d.user.is_owner||"template"==o&&e[o]||t&&"tab"==o&&tabIndexByName(e[o])==t.current_view))return 0;r++}return r})(e.conditions);o>r&&(r=o,n=e.config)}),n.hide_tabs&&e.show_tabs&&n.hide_tabs.length&&e.show_tabs.length?delete e.show_tabs:n.show_tabs&&e.hide_tabs&&n.show_tabs.length&&e.hide_tabs.length&&delete e.hide_tabs,window.customHeaderExceptionConfig=JSON.stringify(n),_objectSpread2({},e,{},n)},_=(()=>{if(p.querySelector("ch-header"))return;const e={};e.bottom=document.createElement("ch-header-bottom"),e.tabContainer=document.createElement("paper-tabs"),e.tabContainer.setAttribute("scrollable",""),e.tabContainer.setAttribute("dir","ltr"),e.tabContainer.style.width="100%",e.tabContainer.style.marginLeft="0",f.tabs.forEach(t=>{const n=f.tabs.indexOf(t),r=t.cloneNode(!0),o=r.querySelector("ha-icon");o&&o.setAttribute("icon",h.config.views[n].icon),tapOrClick(r,f.tabs[n]),e.tabContainer.appendChild(r)}),e.tabs=e.tabContainer.querySelectorAll("paper-tab");const buildButton=(t,n)=>{if("options"===t){e[t]=f[t].cloneNode(!0),e[t].removeAttribute("horizontal-offset"),e[t].querySelector("paper-icon-button").style.height="48px";const n=Array.from(e[t].querySelectorAll("paper-item"));n.forEach(e=>{const r=n.indexOf(e);tapOrClick(e,f[t].querySelectorAll("paper-item")[r])})}else{if(!f[t])return;e[t]=document.createElement("paper-icon-button"),tapOrClick(e[t],f[t].shadowRoot.querySelector("paper-icon-button")||f[t])}e[t].setAttribute("icon",n),e[t].setAttribute("buttonElem",t),e[t].style.flexShrink="0",e[t].style.height="48px"};buildButton("menu","mdi:menu"),buildButton("voice","mdi:microphone"),buildButton("options","mdi:dots-vertical");const t=document.createElement("ch-stack"),n=document.createElement("div");return n.setAttribute("id","contentContainer"),e.container=document.createElement("ch-header"),e.menu&&e.container.appendChild(e.menu),e.container.appendChild(t),e.stack=e.container.querySelector("ch-stack"),e.stack.appendChild(n),e.stack.appendChild(e.tabContainer),e.voice&&"hidden"!=e.voice.style.visibility&&e.container.appendChild(e.voice),e.options&&e.container.appendChild(e.options),f.appLayout.appendChild(e.container),f.appLayout.appendChild(e.bottom),e})(),y=new WeakMap,isDirective=e=>"function"==typeof e&&y.has(e),v=void 0!==window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,removeNodes=(e,t,n=null)=>{for(;t!==n;){const n=t.nextSibling;e.removeChild(t),t=n}},b={},w={},S=`{{lit-${String(Math.random()).slice(2)}}}`,x=`\x3c!--${S}--\x3e`,E=new RegExp(`${S}|${x}`);class Template{constructor(e,t){this.parts=[],this.element=t;const n=[],r=[],o=document.createTreeWalker(t.content,133,null,!1);let i=0,a=-1,s=0;const{strings:c,values:{length:l}}=e;for(;s0;){const t=c[s],n=O.exec(t)[2],r=n.toLowerCase()+"$lit$",o=e.getAttribute(r);e.removeAttribute(r);const i=o.split(E);this.parts.push({type:"attribute",index:a,name:n,strings:i}),s+=i.length-1}}"TEMPLATE"===e.tagName&&(r.push(e),o.currentNode=e.content)}else if(3===e.nodeType){const t=e.data;if(t.indexOf(S)>=0){const r=e.parentNode,o=t.split(E),i=o.length-1;for(let t=0;t{const n=e.length-t.length;return n>=0&&e.slice(n)===t},isTemplatePartActive=e=>-1!==e.index,createMarker=()=>document.createComment(""),O=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/; -/** - * @license - * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. - * This code may only be used under the BSD style license found at - * http://polymer.github.io/LICENSE.txt - * The complete set of authors may be found at - * http://polymer.github.io/AUTHORS.txt - * The complete set of contributors may be found at - * http://polymer.github.io/CONTRIBUTORS.txt - * Code distributed by Google as part of the polymer project is also - * subject to an additional IP rights grant found at - * http://polymer.github.io/PATENTS.txt - */ -class TemplateInstance{constructor(e,t,n){this.__parts=[],this.template=e,this.processor=t,this.options=n}update(e){let t=0;for(const n of this.__parts)void 0!==n&&n.setValue(e[t]),t++;for(const e of this.__parts)void 0!==e&&e.commit()}_clone(){const e=v?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),t=[],n=this.template.parts,r=document.createTreeWalker(e,133,null,!1);let o,i=0,a=0,s=r.nextNode();for(;i-1||n)&&-1===e.indexOf("--\x3e",o+1);const i=O.exec(e);t+=null===i?e+(n?k:x):e.substr(0,i.index)+i[1]+i[2]+"$lit$"+i[3]+S}return t+=this.strings[e],t}getTemplateElement(){const e=document.createElement("template");return e.innerHTML=this.getHTML(),e}} -/** - * @license - * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. - * This code may only be used under the BSD style license found at - * http://polymer.github.io/LICENSE.txt - * The complete set of authors may be found at - * http://polymer.github.io/AUTHORS.txt - * The complete set of contributors may be found at - * http://polymer.github.io/CONTRIBUTORS.txt - * Code distributed by Google as part of the polymer project is also - * subject to an additional IP rights grant found at - * http://polymer.github.io/PATENTS.txt - */const isPrimitive=e=>null===e||!("object"==typeof e||"function"==typeof e),isIterable=e=>Array.isArray(e)||!(!e||!e[Symbol.iterator]);class AttributeCommitter{constructor(e,t,n){this.dirty=!0,this.element=e,this.name=t,this.strings=n,this.parts=[];for(let e=0;ethis.handleEvent(e)}setValue(e){this.__pendingValue=e}commit(){for(;isDirective(this.__pendingValue);){const e=this.__pendingValue;this.__pendingValue=b,e(this)}if(this.__pendingValue===b)return;const e=this.__pendingValue,t=this.value,n=null==e||null!=t&&(e.capture!==t.capture||e.once!==t.once||e.passive!==t.passive),r=null!=e&&(null==t||n);n&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),r&&(this.__options=getOptions(e),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=e,this.__pendingValue=b}handleEvent(e){"function"==typeof this.value?this.value.call(this.eventContext||this.element,e):this.value.handleEvent(e)}}const getOptions=e=>e&&(C?{capture:e.capture,passive:e.passive,once:e.once}:e.capture) -/** - * @license - * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. - * This code may only be used under the BSD style license found at - * http://polymer.github.io/LICENSE.txt - * The complete set of authors may be found at - * http://polymer.github.io/AUTHORS.txt - * The complete set of contributors may be found at - * http://polymer.github.io/CONTRIBUTORS.txt - * Code distributed by Google as part of the polymer project is also - * subject to an additional IP rights grant found at - * http://polymer.github.io/PATENTS.txt - */;const j=new class DefaultTemplateProcessor{handleAttributeExpressions(e,t,n,r){const o=t[0];if("."===o){return new PropertyCommitter(e,t.slice(1),n).parts}return"@"===o?[new EventPart(e,t.slice(1),r.eventContext)]:"?"===o?[new BooleanAttributePart(e,t.slice(1),n)]:new AttributeCommitter(e,t,n).parts}handleTextExpression(e){return new NodePart(e)}}; -/** - * @license - * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. - * This code may only be used under the BSD style license found at - * http://polymer.github.io/LICENSE.txt - * The complete set of authors may be found at - * http://polymer.github.io/AUTHORS.txt - * The complete set of contributors may be found at - * http://polymer.github.io/CONTRIBUTORS.txt - * Code distributed by Google as part of the polymer project is also - * subject to an additional IP rights grant found at - * http://polymer.github.io/PATENTS.txt - */function templateFactory(e){let t=P.get(e.type);void 0===t&&(t={stringsArray:new WeakMap,keyString:new Map},P.set(e.type,t));let n=t.stringsArray.get(e.strings);if(void 0!==n)return n;const r=e.strings.join(S);return n=t.keyString.get(r),void 0===n&&(n=new Template(e,e.getTemplateElement()),t.keyString.set(r,n)),t.stringsArray.set(e.strings,n),n}const P=new Map,M=new WeakMap; -/** - * @license - * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. - * This code may only be used under the BSD style license found at - * http://polymer.github.io/LICENSE.txt - * The complete set of authors may be found at - * http://polymer.github.io/AUTHORS.txt - * The complete set of contributors may be found at - * http://polymer.github.io/CONTRIBUTORS.txt - * Code distributed by Google as part of the polymer project is also - * subject to an additional IP rights grant found at - * http://polymer.github.io/PATENTS.txt - */ -/** - * @license - * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. - * This code may only be used under the BSD style license found at - * http://polymer.github.io/LICENSE.txt - * The complete set of authors may be found at - * http://polymer.github.io/AUTHORS.txt - * The complete set of contributors may be found at - * http://polymer.github.io/CONTRIBUTORS.txt - * Code distributed by Google as part of the polymer project is also - * subject to an additional IP rights grant found at - * http://polymer.github.io/PATENTS.txt - */ -(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.1.2");const html=(e,...t)=>new TemplateResult(e,t,"html",j) -/** - * @license - * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. - * This code may only be used under the BSD style license found at - * http://polymer.github.io/LICENSE.txt - * The complete set of authors may be found at - * http://polymer.github.io/AUTHORS.txt - * The complete set of contributors may be found at - * http://polymer.github.io/CONTRIBUTORS.txt - * Code distributed by Google as part of the polymer project is also - * subject to an additional IP rights grant found at - * http://polymer.github.io/PATENTS.txt - */;function removeNodesFromTemplate(e,t){const{element:{content:n},parts:r}=e,o=document.createTreeWalker(n,133,null,!1);let i=nextActiveIndexInTemplateParts(r),a=r[i],s=-1,c=0;const l=[];let u=null;for(;o.nextNode();){s++;const e=o.currentNode;for(e.previousSibling===u&&(u=null),t.has(e)&&(l.push(e),null===u&&(u=e)),null!==u&&c++;void 0!==a&&a.index===s;)a.index=null!==u?-1:a.index-c,i=nextActiveIndexInTemplateParts(r,i),a=r[i]}l.forEach(e=>e.parentNode.removeChild(e))}const countNodes=e=>{let t=11===e.nodeType?0:1;const n=document.createTreeWalker(e,133,null,!1);for(;n.nextNode();)t++;return t},nextActiveIndexInTemplateParts=(e,t=-1)=>{for(let n=t+1;n`${e}--${t}`;let T=!0;void 0===window.ShadyCSS?T=!1:void 0===window.ShadyCSS.prepareTemplateDom&&(console.warn("Incompatible ShadyCSS version detected. Please update to at least @webcomponents/webcomponentsjs@2.0.2 and @webcomponents/shadycss@1.3.1."),T=!1);const shadyTemplateFactory=e=>t=>{const n=getTemplateCacheKey(t.type,e);let r=P.get(n);void 0===r&&(r={stringsArray:new WeakMap,keyString:new Map},P.set(n,r));let o=r.stringsArray.get(t.strings);if(void 0!==o)return o;const i=t.strings.join(S);if(o=r.keyString.get(i),void 0===o){const n=t.getTemplateElement();T&&window.ShadyCSS.prepareTemplateDom(n,e),o=new Template(t,n),r.keyString.set(i,o)}return r.stringsArray.set(t.strings,o),o},R=["html","svg"],N=new Set,prepareTemplateStyles=(e,t,n)=>{N.add(e);const r=n?n.element:document.createElement("template"),o=t.querySelectorAll("style"),{length:i}=o;if(0===i)return void window.ShadyCSS.prepareTemplateStyles(r,e);const a=document.createElement("style");for(let e=0;e{R.forEach(t=>{const n=P.get(getTemplateCacheKey(t,e));void 0!==n&&n.keyString.forEach(e=>{const{element:{content:t}}=e,n=new Set;Array.from(t.querySelectorAll("style")).forEach(e=>{n.add(e)}),removeNodesFromTemplate(e,n)})})})(e);const s=r.content;n?function insertNodeIntoTemplate(e,t,n=null){const{element:{content:r},parts:o}=e;if(null==n)return void r.appendChild(t);const i=document.createTreeWalker(r,133,null,!1);let a=nextActiveIndexInTemplateParts(o),s=0,c=-1;for(;i.nextNode();){for(c++,i.currentNode===n&&(s=countNodes(t),n.parentNode.insertBefore(t,n));-1!==a&&o[a].index===c;){if(s>0){for(;-1!==a;)o[a].index+=s,a=nextActiveIndexInTemplateParts(o,a);return}a=nextActiveIndexInTemplateParts(o,a)}}}(n,a,s.firstChild):s.insertBefore(a,s.firstChild),window.ShadyCSS.prepareTemplateStyles(r,e);const c=s.querySelector("style");if(window.ShadyCSS.nativeShadow&&null!==c)t.insertBefore(c.cloneNode(!0),t.firstChild);else if(n){s.insertBefore(a,s.firstChild);const e=new Set;e.add(a),removeNodesFromTemplate(n,e)}};window.JSCompiler_renameProperty=(e,t)=>e;const q={toAttribute(e,t){switch(t){case Boolean:return e?"":null;case Object:case Array:return null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){switch(t){case Boolean:return null!==e;case Number:return null===e?null:Number(e);case Object:case Array:return JSON.parse(e)}return e}},notEqual=(e,t)=>t!==e&&(t==t||e==e),I={attribute:!0,type:String,converter:q,reflect:!1,hasChanged:notEqual},L=Promise.resolve(!0);class UpdatingElement extends HTMLElement{constructor(){super(),this._updateState=0,this._instanceProperties=void 0,this._updatePromise=L,this._hasConnectedResolver=void 0,this._changedProperties=new Map,this._reflectingProperties=void 0,this.initialize()}static get observedAttributes(){this.finalize();const e=[];return this._classProperties.forEach((t,n)=>{const r=this._attributeNameForProperty(n,t);void 0!==r&&(this._attributeToPropertyMap.set(r,n),e.push(r))}),e}static _ensureClassProperties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_classProperties",this))){this._classProperties=new Map;const e=Object.getPrototypeOf(this)._classProperties;void 0!==e&&e.forEach((e,t)=>this._classProperties.set(t,e))}}static createProperty(e,t=I){if(this._ensureClassProperties(),this._classProperties.set(e,t),t.noAccessor||this.prototype.hasOwnProperty(e))return;const n="symbol"==typeof e?Symbol():`__${e}`;Object.defineProperty(this.prototype,e,{get(){return this[n]},set(t){const r=this[e];this[n]=t,this._requestUpdate(e,r)},configurable:!0,enumerable:!0})}static finalize(){const e=Object.getPrototypeOf(this);if(e.hasOwnProperty("finalized")||e.finalize(),this.finalized=!0,this._ensureClassProperties(),this._attributeToPropertyMap=new Map,this.hasOwnProperty(JSCompiler_renameProperty("properties",this))){const e=this.properties,t=[...Object.getOwnPropertyNames(e),..."function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]];for(const n of t)this.createProperty(n,e[n])}}static _attributeNameForProperty(e,t){const n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}static _valueHasChanged(e,t,n=notEqual){return n(e,t)}static _propertyValueFromAttribute(e,t){const n=t.type,r=t.converter||q,o="function"==typeof r?r:r.fromAttribute;return o?o(e,n):e}static _propertyValueToAttribute(e,t){if(void 0===t.reflect)return;const n=t.type,r=t.converter;return(r&&r.toAttribute||q.toAttribute)(e,n)}initialize(){this._saveInstanceProperties(),this._requestUpdate()}_saveInstanceProperties(){this.constructor._classProperties.forEach((e,t)=>{if(this.hasOwnProperty(t)){const e=this[t];delete this[t],this._instanceProperties||(this._instanceProperties=new Map),this._instanceProperties.set(t,e)}})}_applyInstanceProperties(){this._instanceProperties.forEach((e,t)=>this[t]=e),this._instanceProperties=void 0}connectedCallback(){this._updateState=32|this._updateState,this._hasConnectedResolver&&(this._hasConnectedResolver(),this._hasConnectedResolver=void 0)}disconnectedCallback(){}attributeChangedCallback(e,t,n){t!==n&&this._attributeToProperty(e,n)}_propertyToAttribute(e,t,n=I){const r=this.constructor,o=r._attributeNameForProperty(e,n);if(void 0!==o){const e=r._propertyValueToAttribute(t,n);if(void 0===e)return;this._updateState=8|this._updateState,null==e?this.removeAttribute(o):this.setAttribute(o,e),this._updateState=-9&this._updateState}}_attributeToProperty(e,t){if(8&this._updateState)return;const n=this.constructor,r=n._attributeToPropertyMap.get(e);if(void 0!==r){const e=n._classProperties.get(r)||I;this._updateState=16|this._updateState,this[r]=n._propertyValueFromAttribute(t,e),this._updateState=-17&this._updateState}}_requestUpdate(e,t){let n=!0;if(void 0!==e){const r=this.constructor,o=r._classProperties.get(e)||I;r._valueHasChanged(this[e],t,o.hasChanged)?(this._changedProperties.has(e)||this._changedProperties.set(e,t),!0!==o.reflect||16&this._updateState||(void 0===this._reflectingProperties&&(this._reflectingProperties=new Map),this._reflectingProperties.set(e,o))):n=!1}!this._hasRequestedUpdate&&n&&this._enqueueUpdate()}requestUpdate(e,t){return this._requestUpdate(e,t),this.updateComplete}async _enqueueUpdate(){let e,t;this._updateState=4|this._updateState;const n=this._updatePromise;this._updatePromise=new Promise((n,r)=>{e=n,t=r});try{await n}catch(e){}this._hasConnected||await new Promise(e=>this._hasConnectedResolver=e);try{const e=this.performUpdate();null!=e&&await e}catch(e){t(e)}e(!this._hasRequestedUpdate)}get _hasConnected(){return 32&this._updateState}get _hasRequestedUpdate(){return 4&this._updateState}get hasUpdated(){return 1&this._updateState}performUpdate(){this._instanceProperties&&this._applyInstanceProperties();let e=!1;const t=this._changedProperties;try{e=this.shouldUpdate(t),e&&this.update(t)}catch(t){throw e=!1,t}finally{this._markUpdated()}e&&(1&this._updateState||(this._updateState=1|this._updateState,this.firstUpdated(t)),this.updated(t))}_markUpdated(){this._changedProperties=new Map,this._updateState=-5&this._updateState}get updateComplete(){return this._getUpdateComplete()}_getUpdateComplete(){return this._updatePromise}shouldUpdate(e){return!0}update(e){void 0!==this._reflectingProperties&&this._reflectingProperties.size>0&&(this._reflectingProperties.forEach((e,t)=>this._propertyToAttribute(t,this[t],e)),this._reflectingProperties=void 0)}updated(e){}firstUpdated(e){}}UpdatingElement.finalized=!0; -/** -@license -Copyright (c) 2019 The Polymer Project Authors. All rights reserved. -This code may only be used under the BSD style license found at -http://polymer.github.io/LICENSE.txt The complete set of authors may be found at -http://polymer.github.io/AUTHORS.txt The complete set of contributors may be -found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as -part of the polymer project is also subject to an additional IP rights grant -found at http://polymer.github.io/PATENTS.txt -*/ -const D="adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype; -/** - * @license - * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. - * This code may only be used under the BSD style license found at - * http://polymer.github.io/LICENSE.txt - * The complete set of authors may be found at - * http://polymer.github.io/AUTHORS.txt - * The complete set of contributors may be found at - * http://polymer.github.io/CONTRIBUTORS.txt - * Code distributed by Google as part of the polymer project is also - * subject to an additional IP rights grant found at - * http://polymer.github.io/PATENTS.txt - */(window.litElementVersions||(window.litElementVersions=[])).push("2.2.1");const flattenStyles=e=>e.flat?e.flat(1/0):function arrayFlat(e,t=[]){for(let n=0,r=e.length;n(e.add(t),e),new Set).forEach(e=>t.unshift(e))}else e&&t.push(e);return t}initialize(){super.initialize(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}createRenderRoot(){return this.attachShadow({mode:"open"})}adoptStyles(){const e=this.constructor._styles;0!==e.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?D?this.renderRoot.adoptedStyleSheets=e.map(e=>e.styleSheet):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(e.map(e=>e.cssText),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(e){super.update(e);const t=this.render();t instanceof TemplateResult&&this.constructor.render(t,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach(e=>{const t=document.createElement("style");t.textContent=e.cssText,this.renderRoot.appendChild(t)}))}render(){}}LitElement.finalized=!0,LitElement.render=(e,t,n)=>{if(!n||"object"!=typeof n||!n.scopeName)throw new Error("The `scopeName` option is required.");const r=n.scopeName,o=M.has(t),i=T&&11===t.nodeType&&!!t.host,a=i&&!N.has(r),s=a?document.createDocumentFragment():t;if(((e,t,n)=>{let r=M.get(t);void 0===r&&(removeNodes(t,t.firstChild),M.set(t,r=new NodePart(Object.assign({templateFactory:templateFactory},n))),r.appendInto(t)),r.setValue(e),r.commit()})(e,s,Object.assign({templateFactory:shadyTemplateFactory(r)},n)),a){const e=M.get(s);M.delete(s);const n=e.value instanceof TemplateInstance?e.value.template:void 0;prepareTemplateStyles(r,s,n),removeNodes(t,t.firstChild),t.appendChild(s),M.set(t,e)}!o&&i&&window.ShadyCSS.styleElement(t.host)};const getThemeVar=e=>getComputedStyle(document.body).getPropertyValue(e),defaultConfig=()=>({locale:[],header_text:h.config.title||"Home Assistant",disabled_mode:!1,kiosk_mode:!1,compact_mode:!1,footer_mode:!1,split_mode:!1,disable_sidebar:!1,hide_header:!1,chevrons:!0,indicator_top:!1,hidden_tab_redirect:!0,shadow:!0,default_tab_on_refresh:!0,background:getThemeVar("--ch-background")||getThemeVar("--app-header-background-color")||"var(--primary-color)",elements_color:getThemeVar("--ch-elements-color")||getThemeVar("--app-header-text-color")||"var(--text-primary-color)",menu_color:getThemeVar("--ch-menu-color")||"",voice_color:getThemeVar("--ch-voice-color")||"",options_color:getThemeVar("--ch-options-color")||"",all_tabs_color:getThemeVar("--ch-all-tabs-color")||"",notification_dot_color:getThemeVar("--ch-notification-dot-color")||getThemeVar("var(--accent-color)")||"#ff9800",tab_indicator_color:getThemeVar("--ch-tab-indicator-color")||"",active_tab_color:getThemeVar("--ch-active-tab-color")||"",tabs_color:[],hide_tabs:[],show_tabs:[],default_tab:"",tab_icons:[],reverse_tab_direction:!1,button_icons:[],button_text:[],reverse_button_direction:!1,menu_dropdown:!1,menu_hide:!1,voice_dropdown:!1,voice_hide:!1,options_hide:!1,hide_help:!1,hide_unused:!1,hide_refresh:!1,hide_config:!1,hide_raw:!1,tabs_css:[],header_css:"",stack_css:"",header_text_css:"",active_tab_css:"",options_list_css:"",menu_css:"",options_css:"",voice_css:"",all_tabs_css:"",tab_container_css:"",view_css:"",panel_view_css:"",template_variables:"",exceptions:[],editor_warnings:!0});var z={version:"Version"},H={docs:"Docs",forums:"Forums"},V={add_exception:"Add Exception",automatic:"automatic",buttons:"Buttons",cancel:"Cancel",chevrons_tip:"Disable scrolling arrows for tabs.",chevrons_title:"Display Tab Chevrons",compact_mode_tip:"Make header compact.",compact_mode_title:"Compact Mode",conditions:"Conditions",config:"Config",current_user_agent:"Current User Agent",current_user:"Current User",default_tab:"Default tab",disable_sidebar_tip:"Disable sidebar and menu button.",disable_sidebar_title:"Disable Sidebar",disabled_mode_tip:"Completely disable Custom-Header.",disabled_mode_title:"Disabled Mode",disabled_template:"Disabled: The current value is a template.",editor_warnings_second_title:"Display Editor Warnings & Info",editor_warnings_tip:"Toggle editor warnings.",editor_warnings_title:"Display this info and warnings section.",exceptions:"Exceptions",footer_mode_tip:"Turn the header into a footer or reverse split mode.",footer_mode_title:"Footer Mode",header_text:"Header text.",hidden_tab_redirect_tip:"Redirect from hidden tab.",hidden_tab_redirect_title:"Hidden Tab Redirect",hide_configure_ui_tip:"Hide item in options menu.",hide_configure_ui_title:"Hide 'Configure UI'",hide_header_tip:"Hide header, but allow swipe out of sidebar.",hide_header_title:"Disable Header",hide_help_tip:"Hide item in options menu.",hide_help_title:"Hide 'Help'",hide_raw_editor_tip:"Hide item in options menu.",hide_raw_editor_title:"Hide 'Raw Config Editor'",hide_tab_list:"Comma-separated list of tab numbers to hide",hide_unused_tip:"Hide item in options menu.",hide_unused_title:"Hide 'Unused Entities'",kiosk_mode_tip:"Hide and disable the header and sidebar",kiosk_mode_title:"Kiosk Mode",locale_desc:"Locale for default template variables (date/time).",media_query:"Media Query",menu_dropdown_tip:"Put menu button in options menu.",menu_dropdown_title:"Menu in Dropdown Menu",menu_hide_tip:"Hide the menu button.",menu_hide_title:"Hide Menu Button",menu_items:"Menu Items",options_hide_tip:"Hide the options button.",options_hide_title:"Hide Options Button",query_string:"Query String",removes_edit_ui:"Removes ability to edit UI.",reverse_button_tip:"Reverses all buttons orientation.",reverse_button_title:"Reverse Buttons Orientation",reverse_tab_tip:"Places tabs on right side in reverse order.",reverse_tab_title:"Reverse Tab Direction",save_and_reload:"Save and reload",save_failed:"Save failed",shadow_tip:"Hide header shadows",shadow_title:"Shadows",show_tab_list:"Comma-separated list of tab numbers to show",split_mode_tip:"Split header into one header one footer",split_mode_title:"Split Mode",tabs_hide:"Hide Tabs",tabs_show:"Show Tabs",tabs:"Tabs",template:"Template",user_agent:"User Agent",user_list:"User (Seperate multiple users with a comma.)",voice_dropdown_tip:"Put voice button in options menu.",voice_dropdown_title:"Voice in Dropdown Menu",voice_hide_tip:"Hide the voice button.",voice_hide_title:"Hide Voice Button",warning_already_a_template:"Designates items that are already a template and won't be modified by the editor.",warning_disable_ch:"You can temporaily disable Custom-Header by adding '?disable_ch' to the end of your URL.",warning_edit_ui:"Marks items that remove your ability to edit the UI.",warning_jinja_info:"All text options accept Jinja. Hover over any item for more info.",warning_raw_editor_reload:"After using the 'Raw Config Editor' you need to reload the page to restore Custom Header."},U={common:z,links:H,editor:V},G={version:"Versjon"},B={docs:"Documentasjon",forums:"Forum"},W={add_exception:"Legg til unntak",automatic:"automatisk",buttons:"Brytere",cancel:"Avbryt",chevrons_tip:"Deaktiver pilene på tab båndet.",chevrons_title:"Vis tab piler",compact_mode_tip:"Gjør headeren compact.",compact_mode_title:"Kompakt modus",conditions:"Betingelser",config:"Konfigurasjon",current_user_agent:"Nåværende User Agent",current_user:"Pålogget bruker",default_tab:"Standard tab",disable_sidebar_tip:"Deaktiver side panelet og meny knappen.",disable_sidebar_title:"Deaktiver side panelet",disabled_mode_tip:"Deaktiver Custom-Header.",disabled_mode_title:"Deaktivert modus",disabled_template:"Deaktivert: Nåværende verdi er en mal.",editor_warnings_second_title:"Vis editor advarser of informasjon",editor_warnings_tip:"Veksle editor advarsler.",editor_warnings_title:"Vis denne informasjonen og advarsel seksjoner.",exceptions:"Unntak",footer_mode_tip:"Gjør header til footer eller reversert split modus.",footer_mode_title:"Footer modus",header_text:"Header tekst.",hidden_tab_redirect_tip:"Omadresser fra gjemt tab.",hidden_tab_redirect_title:"Gjemt tab omadresser",hide_configure_ui_tip:"Gjem 'Konfigurer brukergrensesnitt' in nedtrekksmenyen.",hide_configure_ui_title:"Gjem 'Konfigurer brukergrensesnitt'",hide_header_tip:"Gjem headderen, men tillat å dra inn fra siden for å åpne side panelet",hide_help_tip:"Deaktiver header",hide_help_title:"Gjem 'Hjelp'",hide_raw_editor_tip:"Gjem 'Tekstbasert konfigurasjonsredigering' in nedtrekksmenyen.",hide_raw_editor_title:"Gjem 'Tekstbasert konfigurasjonsredigering'",hide_tab_list:"Komma separert liste over tabber som skal gjemmes",hide_unused_tip:"Gjem 'Unused Entities' in nedtrekksmenyen.",hide_unused_title:"Gjem 'Unused Entities'",kiosk_mode_tip:"Gjem og deaktiver headeren og side panelet.",kiosk_mode_title:"Kiosk modus",locale_desc:"Locale for standard mal variabler (dato/tip).",menu_dropdown_tip:"Plasser meny i nedtrekksmenyen.",menu_dropdown_title:"Meny i nedtrekksmenyen",menu_hide_tip:"Gjem meny knappen.",menu_hide_title:"Gjem meny knappen",menu_items:"Meny elementer",options_hide_tip:"Gjem alternativer knappen.",options_hide_title:"Gjem alternativer knappen",removes_edit_ui:"Fjerner muligheten til å redigere brukergrensesnittet.",reverse_button_tip:"Reverser alle bryter orienteringer.",reverse_button_title:"Reverser bryter orientering",reverse_tab_tip:"Plasser tabber på høyre side i reversert rekkefølge.",reverse_tab_title:"Reverser tab rettning",save_and_reload:"Lagre og last inn på nytt",save_failed:"Lagring feilet",shadow_tip:"Gjemheader skygger",shadow_title:"Skygger",show_tab_list:"Komma separert liste over tabber som skal vises",split_mode_tip:"Split modus, både header og footer",split_mode_title:"Split modus",tabs_hide:"Gjem Tabber",tabs_show:"Vis Tabber",tabs:"Tabber",template:"mal",user_list:"Bruker (Skill flere brukere med komma.)",voice_dropdown_tip:"Plasser stemme i nedtrekksmenyen.",voice_dropdown_title:"Stemme i nedtrekksmenyen",voice_hide_tip:"Gjem stemme knappen.",voice_hide_title:"Gjem stemme knappen",warning_already_a_template:"Etter å ha brukt 'Tekstbasert konfigurasjonsredigering', må du laste inn siden på nytt for å gjenopprette Custom Header.",warning_disable_ch:"Du kan deaktivere Custom-Header midlertidig ved å legge til '?disable_ch' på slutten av nettadressen.",warning_edit_ui:"Markerer elementer som fjerner muligheten til å redigere brukergrensesnittet.",warning_jinja_info:"Alle tekstalternativer godtar Jinja. Hold musepekeren over et hvilket som helst element for mer informasjon.",warning_raw_editor_reload:"After using the 'Tekstbasert konfigurasjonsredigering' you need to reload the page to restore Custom Header."},Y={common:G,links:B,editor:W};const $={en:Object.freeze({__proto__:null,common:z,links:H,editor:V,default:U}),nb:Object.freeze({__proto__:null,common:G,links:B,editor:W,default:Y})};function localize(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const r=e.split(".")[0],o=e.split(".")[1],i=(localStorage.getItem("selectedLanguage")||"en").replace(/['"]+/g,"").replace("-","_");let a;try{a=$[i][r][o]}catch(e){a=$.en[r][o]}return void 0===a&&(a=$.en[r][o]),""!==t&&""!==n&&(a=a.replace(t,n)),a}function _templateObject21(){const e=_taggedTemplateLiteral(['\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ']);return _templateObject21=function _templateObject21(){return e},e}function _templateObject20(){const e=_taggedTemplateLiteral([""]);return _templateObject20=function _templateObject20(){return e},e}function _templateObject19(){const e=_taggedTemplateLiteral(["\n \n "]);return _templateObject19=function _templateObject19(){return e},e}function _templateObject18(){const e=_taggedTemplateLiteral(["\n ",'\n \n \n \n \n

\n \n ']);return _templateObject18=function _templateObject18(){return e},e}function _templateObject17(){const e=_taggedTemplateLiteral([""]);return _templateObject17=function _templateObject17(){return e},e}function _templateObject16(){const e=_taggedTemplateLiteral(["\n \n "]);return _templateObject16=function _templateObject16(){return e},e}function _templateObject15(){const e=_taggedTemplateLiteral(['\n

Main Config

\n ']);return _templateObject15=function _templateObject15(){return e},e}function _templateObject14(){const e=_taggedTemplateLiteral(['\n
\n
\n

\n ','\n

\n

\n ','\n

\n
\n

\n \n ','\n
','
\n

\n
\n

\n ',"\n

\n
\n "]);return _templateObject14=function _templateObject14(){return e},e}function _templateObject13(){const e=_taggedTemplateLiteral(['\n

\n Custom Header\n

\n

\n \n \n ','   \n \n \n GitHub   \n \n \n ',"\n

\n ","\n ","\n "]);return _templateObject13=function _templateObject13(){return e},e}function _templateObject12(){const e=_taggedTemplateLiteral(['\n \n \n \n ',"\n ","\n ",'\n
\n ',"\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ",'\n
\n
\n
\n \n \n \n \n
\n

','

\n
\n ',"\n ","\n ","\n ",'\n
\n

','

\n
\n ',"\n ","\n ","\n ","\n ","\n ",'\n
\n

','

\n \n \n ',"\n ",'\n \n \n
\n
\n \n \n
\n
\n \n \n
\n \n \n ',"\n
\n "]);return _templateObject12=function _templateObject12(){return e},e}function _templateObject11(){const e=_taggedTemplateLiteral(['\n \n ']);return _templateObject10=function _templateObject10(){return e},e}function _templateObject9(){const e=_taggedTemplateLiteral(['\n \n ']);return _templateObject9=function _templateObject9(){return e},e}function _templateObject8(){const e=_taggedTemplateLiteral(["\n \n "]);return _templateObject8=function _templateObject8(){return e},e}function _templateObject7(){const e=_taggedTemplateLiteral(['\n ',"\n "]);return _templateObject7=function _templateObject7(){return e},e}function _templateObject6(){const e=_taggedTemplateLiteral(['\n ',"\n "]);return _templateObject6=function _templateObject6(){return e},e}function _templateObject5(){const e=_taggedTemplateLiteral(["\n ","\n "]);return _templateObject5=function _templateObject5(){return e},e}function _templateObject4(){const e=_taggedTemplateLiteral(["\n ","\n "]);return _templateObject4=function _templateObject4(){return e},e}function _templateObject3(){const e=_taggedTemplateLiteral(['\n \n \n ']);return _templateObject3=function _templateObject3(){return e},e}function _templateObject2(){const e=_taggedTemplateLiteral(['\n
\n X\n
\n ','\n \n \n

',"

\n
\n ",'\n
\n ','\n

',"

\n
\n Name: ","
\n ID: ",'\n

Device ID

\n
\n ','\n
\n

',"

\n
\n ",'\n
\n \n ',"\n ","\n \n "]);return _templateObject2=function _templateObject2(){return e},e}function _templateObject(){const e=_taggedTemplateLiteral([""]);return _templateObject=function _templateObject(){return e},e}customElements.define("custom-header-editor",class CustomHeaderEditor extends LitElement{static get properties(){return{_config:{}}}firstUpdated(){this.defaultConfig=defaultConfig(),this._lovelace=F(),this.deepcopy=this.deepcopy.bind(this),this._config=this._lovelace.config.custom_header?this.deepcopy(this._lovelace.config.custom_header):{}}render(){return this._config&&this._lovelace?html(_templateObject2(),this._close,this.renderStyle(),this.defaultConfig,this._config,this._configChanged,localize("editor.exceptions"),this._config.exceptions?this._config.exceptions.map((e,t)=>html(_templateObject3(),this._config,e,t,this._exceptionChanged,this._exceptionDelete)):"",this._addException,localize("editor.add_exception"),localize("editor.current_user"),d.user.name,d.user.id,g,localize("editor.current_user_agent"),navigator.userAgent,this.exception?"":html(_templateObject4(),this._save_button),this.exception?"":html(_templateObject5(),this._cancel_button)):html(_templateObject())}_close(){const e=this.parentNode.parentNode.parentNode.querySelector("editor");this.parentNode.parentNode.parentNode.removeChild(e)}_save(){for(const e in this._config)this._config[e]==this.defaultConfig[e]&&delete this._config[e];const e=_objectSpread2({},this._lovelace.config,{},{custom_header:this._config});try{this._lovelace.saveConfig(e).then(()=>{window.location.href=window.location.href})}catch(e){alert("".concat(localize("editor.save_failed"),": ").concat(e))}}get _save_button(){const e=localize("editor.save_and_reload");return html(_templateObject6(),this._save,e)}get _cancel_button(){return html(_templateObject7(),this._close,localize("editor.cancel"))}_addException(){let e;this._config.exceptions?(e=this._config.exceptions.slice(0),e.push({conditions:{},config:{}})):e=[{conditions:{},config:{}}],this._config=_objectSpread2({},this._config,{exceptions:e}),A(this,"config-changed",{config:this._config})}_configChanged(e){let{detail:t}=e;this._config&&(this._config=_objectSpread2({},this._config,{},t.config),A(this,"config-changed",{config:this._config}))}_exceptionChanged(e){if(!this._config)return;const t=e.target.index,n=this._config.exceptions.slice(0);n[t]=e.detail.exception;for(const e of n)for(const t in e.config)this._config[t]==e.config[t]?delete e.config[t]:this._config[t]||this.defaultConfig[t]!=e.config[t]||delete e.config[t];this._config=_objectSpread2({},this._config,{exceptions:n}),A(this,"config-changed",{config:this._config})}_exceptionDelete(e){if(!this._config)return;const t=e.target,n=this._config.exceptions.slice(0);n.splice(t.index,1),this._config=_objectSpread2({},this._config,{exceptions:n}),A(this,"config-changed",{config:this._config}),this.requestUpdate()}deepcopy(e){if(!e||"object"!=typeof e)return e;if("[object Date]"==Object.prototype.toString.call(e))return new Date(e.getTime());if(Array.isArray(e))return e.map(this.deepcopy);const t={};return Object.keys(e).forEach(n=>{t[n]=this.deepcopy(e[n])}),t}renderStyle(){return html(_templateObject8())}});customElements.define("ch-config-editor",class ChConfigEditor extends LitElement{static get properties(){return{defaultConfig:{},config:{},exception:{},_closed:{}}}constructor(){super(),this.buttonOptions=["show","hide","clock","overflow"],this.overflowOptions=["show","hide","clock"],this.swipeAnimation=["none","swipe","fade","flip"]}get _clock(){return"clock"==this.getConfig("menu")||"clock"==this.getConfig("voice")||"clock"==this.getConfig("options")}getConfig(e){return void 0!==this.config[e]?this.config[e]:this.defaultConfig[e]}templateExists(e){return!("string"!=typeof e||!e.includes("{{")&&!e.includes("{%"))}haSwitch(e,t,n,r,o,i){const a=html(_templateObject9(),localize("editor.disabled_template")),s=html(_templateObject10(),localize("editor.removes_edit_ui"));return html(_templateObject11(),this.exception&&void 0===this.config[e]?"inherited slotted":"slotted",!1!==this.getConfig(e)&&!this.templateExists(this.getConfig(e)),e,this._valueChanged,o,this.templateExists(this.getConfig(e)),r,this.templateExists(this.getConfig(e))&&t?a:"",n?s:"")}render(){return this.exception=void 0!==this.exception&&!1!==this.exception,html(_templateObject12(),this.exception?"":html(_templateObject13(),localize("links.docs"),localize("links.forums"),this.getConfig("editor_warnings")?html(_templateObject14(),localize("editor.warning_disable_ch"),localize("editor.warning_raw_editor_reload"),localize("editor.warning_already_a_template"),localize("editor.warning_edit_ui"),localize("editor.warning_jinja_info")):"",!this.exception&&this.getConfig("editor_warnings")?this.haSwitch("editor_warnings",!1,!1,localize("editor.editor_warnings_title"),localize("editor.editor_warnings_tip")):""),this.renderStyle(),this.getConfig("editor_warnings")&&!this.exception?html(_templateObject15()):"",this.haSwitch("disabled_mode",!0,!1,localize("editor.disabled_mode_title"),localize("editor.disabled_mode_tip")),this.haSwitch("footer_mode",!0,!1,localize("editor.footer_mode_title"),localize("editor.footer_mode_tip")),this.haSwitch("compact_mode",!0,!1,localize("editor.compact_mode_title"),localize("editor.compact_mode_tip")),this.haSwitch("split_mode",!0,!1,localize("editor.split_mode_title"),localize("editor.split_mode_tip")),this.haSwitch("kiosk_mode",!0,!0,localize("editor.kiosk_mode_title"),localize("editor.kiosk_mode_tip")),this.haSwitch("disable_sidebar",!0,!1,localize("editor.disable_sidebar_title"),localize("editor.disable_sidebar_tip")),this.haSwitch("hide_header",!0,!1,localize("editor.hide_header_title"),localize("editor.hide_header_tip")),this.haSwitch("chevrons",!0,!1,localize("editor.chevrons_title"),localize("editor.chevrons_tip")),this.haSwitch("hidden_tab_redirect",!0,!1,localize("editor.hidden_tab_redirect_title"),localize("editor.hidden_tab_redirect_tip")),this.haSwitch("shadow",!0,!1,localize("editor.shadow_title"),localize("editor.shadow_tip")),this.exception||this.getConfig("editor_warnings")?"":this.haSwitch("editor_warnings",!1,!1,localize("editor.editor_warnings_second_title"),localize("editor.editor_warnings_tip")),this.exception&&void 0===this.config.header_text?"inherited slotted":"slotted",localize("editor.header_text"),this.getConfig("header_text"),"header_text",this._valueChanged,localize("editor.automatic"),this.exception&&void 0===this.config.locale?"inherited slotted":"slotted",localize("editor.locale_desc"),this.getConfig("locale"),"locale",this._valueChanged,localize("editor.menu_items"),this.haSwitch("hide_config",!0,!0,localize("editor.hide_configure_ui_title"),localize("editor.hide_configure_ui_tip")),this.haSwitch("hide_raw",!0,!0,localize("editor.hide_raw_editor_title"),localize("editor.hide_raw_editor_tip")),this.haSwitch("hide_help",!0,!1,localize("editor.hide_help_title"),localize("editor.hide_help_tip")),this.haSwitch("hide_unused",!0,!1,localize("editor.hide_unused_title"),localize("editor.hide_unused_tip")),localize("editor.buttons"),this.haSwitch("menu_hide",!0,!1,localize("editor.menu_hide_title"),localize("editor.menu_hide_tip")),this.haSwitch("menu_dropdown",!0,!1,localize("editor.menu_dropdown_title"),localize("editor.menu_dropdown_tip")),this.haSwitch("voice_hide",!0,!1,localize("editor.voice_hide_title"),localize("editor.voice_hide_tip")),this.haSwitch("voice_dropdown",!0,!1,localize("editor.voice_dropdown_title"),localize("editor.voice_dropdown_tip")),this.haSwitch("options_hide",!0,!0,localize("editor.options_hide_title"),localize("editor.options_hide_tip")),this.haSwitch("reverse_button_direction",!0,!1,localize("editor.reverse_button_title"),localize("editor.reverse_button_tip")),localize("editor.tabs"),this._tabVisibility,this.getConfig("show_tabs").length>0?"1":"0",localize("editor.tabs_hide"),localize("editor.tabs_show"),this.getConfig("show_tabs").length>0?"initial":"none",this.exception&&void 0===this.config.show_tabs?"inherited slotted":"slotted",localize("editor.show_tab_list"),this.getConfig("show_tabs"),"show_tabs",this._valueChanged,this.getConfig("show_tabs").length>0?"none":"initial",this.exception&&void 0===this.config.hide_tabs?"inherited slotted":"slotted",localize("editor.hide_tab_list"),this.getConfig("hide_tabs"),"hide_tabs",this._valueChanged,this.exception&&void 0===this.config.default_tab?"inherited slotted":"slotted",localize("editor.default_tab"),this.getConfig("default_tab"),"default_tab",this._valueChanged,this.haSwitch("reverse_tab_direction",!0,!1,localize("editor.reverse_tab_title"),localize("editor.reverse_tab_tip")))}_toggleCard(){this._closed=!this._closed,A(this,"iron-resize")}_tabVisibility(){const e=this.shadowRoot.querySelector("#show"),t=this.shadowRoot.querySelector("#hide");"Hide Tabs"==this.shadowRoot.querySelector("#tabs").value?(e.style.display="none",t.style.display="initial"):(t.style.display="none",e.style.display="initial")}_valueChanged(e){this.config&&(e.target.configValue&&(""===e.target.value?delete this.config[e.target.configValue]:this.config=_objectSpread2({},this.config,{[e.target.configValue]:void 0!==e.target.checked?e.target.checked:e.target.value})),A(this,"ch-config-changed",{config:this.config}))}renderStyle(){return html(_templateObject16())}});customElements.define("ch-exception-editor",class ChExceptionEditor extends LitElement{static get properties(){return{config:{},exception:{},_closed:{}}}constructor(){super(),this._closed=!0}render(){return this.exception?html(_templateObject18(),this.renderStyle(),this._closed,Object.values(this.exception.conditions).join(", ").substring(0,40)||"New Exception",this._closed?"mdi:chevron-down":"mdi:chevron-up",this._toggleCard,this._closed,this._deleteException,localize("editor.conditions"),this.exception.conditions,this._conditionsChanged,localize("editor.config"),_objectSpread2({},this.defaultConfig,{},this.config),this.exception.config,this._configChanged):html(_templateObject17())}renderStyle(){return html(_templateObject19())}_toggleCard(){this._closed=!this._closed,A(this,"iron-resize")}_deleteException(){A(this,"ch-exception-delete")}_conditionsChanged(e){let{detail:t}=e;if(!this.exception)return;const n=_objectSpread2({},this.exception,{conditions:t.conditions});A(this,"ch-exception-changed",{exception:n})}_configChanged(e){if(e.stopPropagation(),!this.exception)return;const t=_objectSpread2({},this.exception,{config:e.detail.config});A(this,"ch-exception-changed",{exception:t})}});customElements.define("ch-conditions-editor",class ChConditionsEditor extends LitElement{static get properties(){return{conditions:{}}}get _user(){return this.conditions.user||""}get _user_agent(){return this.conditions.user_agent||""}get _media_query(){return this.conditions.media_query||""}get _query_string(){return this.conditions.query_string||""}get _template(){return this.conditions.template||""}get _tab(){return this.conditions.tab||""}get _device_id(){return this.conditions.device_id||""}render(){return this.conditions?html(_templateObject21(),localize("editor.user_list"),this._user,"user",this._valueChanged,localize("editor.user_agent"),this._user_agent,"user_agent",this._valueChanged,localize("editor.media_query"),this._media_query,"media_query",this._valueChanged,localize("editor.query_string"),this._query_string,"query_string",this._valueChanged,localize("editor.template"),this._template,"template",this._valueChanged,localize("editor.tabs"),this._tab,"tab",this._valueChanged,this._device_id,"device_id",this._valueChanged):html(_templateObject20())}_valueChanged(e){if(!this.conditions)return;const t=e.target;this["_".concat(t.configValue)]!==t.value&&(t.configValue&&(""===t.value?delete this.conditions[t.configValue]:this.conditions=_objectSpread2({},this.conditions,{[t.configValue]:t.value})),A(this,"ch-conditions-changed",{conditions:this.conditions}))}});const hideMenuItems=(e,t,n)=>{const localized=(e,t)=>{let n;const r=document.querySelector("home-assistant").hass;return n="raw_editor"===t?r.localize("ui.panel.lovelace.editor.menu.raw_editor"):"unused_entities"==t?r.localize("ui.panel.lovelace.unused_entities.title"):r.localize("ui.panel.lovelace.menu.".concat(t)),e.innerHTML.includes(n)||e.getAttribute("aria-label")==n};(n?document.querySelector("home-assistant").shadowRoot.querySelector("home-assistant-main").shadowRoot.querySelector("ha-panel-lovelace").shadowRoot.querySelector("hui-root").shadowRoot.querySelector("app-toolbar > paper-menu-button"):t.options).querySelector("paper-listbox").querySelectorAll("paper-item").forEach(t=>{e.hide_help&&localized(t,"help")||e.hide_unused&&localized(t,"unused_entities")||e.hide_refresh&&localized(t,"refresh")||e.hide_config&&localized(t,"configure_ui")||e.hide_raw&&localized(t,"raw_editor")?t.style.display="none":t.style.display=""})},buttonToOverflow=(e,t,n,r)=>{n.options.querySelector("#".concat(e.toLowerCase(),"_dropdown"))&&n.options.querySelector("#".concat(e.toLowerCase(),"_dropdown")).remove();const o=document.createElement("paper-item"),i=document.createElement("ha-icon");o.setAttribute("id","".concat(e.toLowerCase(),"_dropdown")),i.setAttribute("icon",r.button_icons[e.toLowerCase()]||t),i.style.pointerEvents="none",r.reverse_button_direction?i.style.marginLeft="auto":i.style.marginRight="auto",o.innerText=e,o.appendChild(i),o.addEventListener("click",()=>{n[e.toLowerCase()].dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!1}))}),i.addEventListener("click",()=>{n[e.toLowerCase()].dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!1}))}),n.options.querySelector("paper-listbox").appendChild(o)},insertSettings=()=>{function insertAfter(e,t){t.parentNode.insertBefore(e,t.nextSibling)}if("storage"===h.mode){const e=document.createElement("paper-item");e.setAttribute("id","ch_settings"),e.addEventListener("click",()=>(()=>{if(window.scrollTo(0,0),!p.querySelector("ha-app-layout editor")){const e=document.createElement("editor"),t=document.createElement("div");t.style.cssText="\n padding: 20px;\n max-width: 600px;\n margin: 15px auto;\n background: var(--paper-card-background-color);\n border: 6px solid var(--paper-card-background-color);\n ",e.style.cssText="\n width: 100%;\n min-height: 100%;\n box-sizing: border-box;\n position: absolute;\n background: var(--background-color, grey);\n z-index: 100;\n padding: 5px;\n ",p.querySelector("ha-app-layout").insertBefore(e,p.querySelector("#view")),e.appendChild(t),t.appendChild(document.createElement("custom-header-editor"))}})()),e.innerHTML="Custom Header";const t=_.options.querySelector("paper-listbox").querySelectorAll("paper-item"),n=f.options.querySelector("paper-listbox").querySelectorAll("paper-item");_.options.querySelector("paper-listbox").querySelector("#ch_settings")||insertAfter(e,t[t.length-1]),f.options.querySelector("paper-listbox").querySelector("#ch_settings")||insertAfter(e,n[n.length-1])}},kioskMode=(e,t,n)=>{if(window.location.href.includes("disable_ch"))return;let r=document.createElement("style");r.setAttribute("id","ch_header_style"),t||(r.innerHTML+="\n #drawer {\n display: none;\n }\n "),e||(r.innerHTML+="\n ch-header {\n display: none;\n }\n ch-header-bottom {\n display: none;\n }\n app-header {\n display: none;\n }\n hui-view {\n padding-top: 100px;\n }\n hui-view, hui-panel-view {\n min-height: calc(100vh + 96px);\n margin-top: -96px;\n }\n ");const o=p.querySelector("#ch_header_style");o&&o.innerText==r.innerHTML||(p.appendChild(r),o&&o.remove()),n.hide_tabs&&n.hide_tabs.forEach(e=>{r.innerHTML+="\n paper-tab:nth-child(".concat(tabIndexByName(e)+1,") {\n display: none;\n }\n ")}),t||(f.drawer.style.display="none",f.sidebar.main.shadowRoot.querySelector("#ch_sidebar_style")||(r=document.createElement("style"),r.setAttribute("id","ch_sidebar_style"),r.innerHTML=":host(:not([expanded])) {width: 0px !important;}",f.sidebar.main.shadowRoot.appendChild(r)),f.main.shadowRoot.querySelector("#ch_sidebar_style")||(r=document.createElement("style"),r.setAttribute("id","ch_sidebar_style"),r.innerHTML=":host {--app-drawer-width: 0px !important;}",f.main.shadowRoot.appendChild(r))),window.dispatchEvent(new Event("resize"))},removeKioskMode=()=>{f.drawer.style.display="";let e=f.main.shadowRoot.querySelector("#ch_sidebar_style");e&&e.remove(),e=f.sidebar.main.shadowRoot.querySelector("#ch_sidebar_style"),e&&e.remove(),f.drawer.style.display=""},insertStyleTags=e=>{let t=48;const n=e.split_mode?_.bottom:_;e.compact_mode||(e.reverse_button_direction?(_.container.querySelector("#contentContainer").dir="ltr",_.container.querySelector("#contentContainer").style.textAlign="right"):(_.container.querySelector("#contentContainer").style.textAlign="",_.container.querySelector("#contentContainer").dir=""),_.container.querySelector("#contentContainer").innerHTML=e.header_text,t=n.tabs.length?96:48);let r=document.createElement("style");r.setAttribute("id","ch_header_style"),r.innerHTML="\n ch-header {\n padding-left: 10px;\n padding-right: 10px;\n box-sizing: border-box;\n display:flex;\n justify-content: center;\n font: 400 20px Roboto, sans-serif;\n background: ".concat(e.background||"var(--primary-color)",";\n color: ").concat(e.elements_color||"var(--text-primary-color)",";\n margin-bottom: 0px;\n margin-top: ").concat(e.footer_mode?"4px;":"0px",";\n position: sticky;\n position: -webkit-sticky;\n ").concat(e.footer_mode?"z-index: 99; bottom: 0px;":"top: 0px;","\n ").concat(e.header_css?e.header_css:"","\n transition: box-shadow 0.3s ease-in-out;\n ").concat(e.shadow&&(e.footer_mode||e.split_mode)?"box-shadow: 0px 0px 5px 5px rgba(0,0,0,0.2)":"","\n }\n ch-header-bottom {\n z-index: 99;\n padding-left: 10px;\n padding-right: 10px;\n box-sizing: border-box;\n display:flex;\n justify-content: center;\n font: 400 20px Roboto, sans-serif;\n background: ").concat(e.background||"var(--primary-color)",";\n color: ").concat(e.elements_color||"var(--text-primary-color)",";\n margin-bottom: 0px;\n margin-top: 0px;\n position: sticky;\n position: -webkit-sticky;\n ").concat(e.footer_mode?"top: 0px;":"bottom: 0px;","\n ").concat(e.header_css?e.header_css:"","\n ").concat(e.shadow?"box-shadow: 0px 0px 5px 5px rgba(0,0,0,0.2)":"","\n }\n ch-stack {\n flex-direction: column;\n width: 100%;\n margin-left: 9px;\n margin-right: 9px;\n ").concat(e.stack_css?e.stack_css:"","\n }\n ch-stack-bottom {\n flex-direction: column;\n width: 100%;\n margin-left: 9px;\n margin-right: 9px;\n ").concat(e.stack_css?e.stack_css:"","\n }\n #contentContainer {\n padding: 12px 6px 12px 6px;\n ").concat(e.compact_mode?"display: none;":"","\n ").concat(e.header_text.includes("
")?"\n font-size: 17px;\n line-height: 1.2;\n margin: -9px 0px 0px;\n ":"","\n ").concat(e.header_text_css?e.header_text_css:"","\n\n }\n app-header {\n display: none;\n }\n paper-tab.iron-selected {\n ").concat(e.active_tab_color?"color: ".concat(e.active_tab_color,";"):"","\n ").concat(e.active_tab_css?e.active_tab_css:"",'\n }\n [buttonElem="menu"] {\n ').concat(e.menu_color?"color: ".concat(e.menu_color,";"):"","\n ").concat(e.menu_hide?"display: none;":"","\n ").concat(e.menu_css?e.menu_css:"","\n ").concat(e.footer_mode&&e.compact_mode?"margin-top:0 !important;":"",'\n }\n [buttonElem="options"] {\n ').concat(e.options_color?"color: ".concat(e.options_color,";"):"","\n ").concat(e.options_hide?"display: none;":"","\n ").concat(e.options_css?e.options_css:"","\n ").concat(e.footer_mode&&e.compact_mode?"margin-top:0 !important;":"",'\n }\n [buttonElem="voice"] {\n ').concat(e.voice_color?"color: ".concat(e.voice_color,";"):"","\n ").concat(e.voice_hide?"display: none;":"","\n ").concat(e.voice_css?e.voice_css:"","\n ").concat(e.footer_mode&&e.compact_mode?"margin-top:0 !important;":"","\n }\n paper-tab {\n ").concat(e.all_tabs_color?"color: ".concat(e.all_tabs_color,";"):"","\n ").concat(e.all_tabs_css?e.all_tabs_css:"","\n }\n paper-tabs {\n ").concat(e.tab_indicator_color?"--paper-tabs-selection-bar-color: ".concat(e.tab_indicator_color," !important;"):"","\n ").concat(e.tab_container_css?e.tab_container_css:"","\n }\n "),e.tabs_color&&Object.keys(e.tabs_color).forEach(t=>{r.innerHTML+="\n paper-tab:nth-child(".concat(tabIndexByName(t)+1,") {\n color: ").concat(e.tabs_color[t],";\n }\n ")}),e.hide_tabs&&e.hide_tabs.forEach(e=>{r.innerHTML+="\n paper-tab:nth-child(".concat(tabIndexByName(e)+1,") {\n display: none;\n }\n ")}),e.tabs_css&&Object.keys(e.tabs_css).forEach(t=>{r.innerHTML+="\n paper-tab:nth-child(".concat(tabIndexByName(t)+1,") {\n ").concat(e.tabs_css[t],";\n }\n ")});let o=p.querySelector("#ch_header_style");p.appendChild(r),o&&o.remove(),r=document.createElement("style"),r.setAttribute("id","ch_view_style"),r.innerHTML="\n hui-view, hui-panel-view {\n margin-top: -96px;\n ".concat(e.compact_mode?"min-height: calc(100vh - 96px);":"min-height: calc(100vh - 112px);","\n ").concat(e.footer_mode&&!e.split_mode?"padding-bottom: ".concat(t,"px;"):"","\n ").concat(e.footer_mode&&!e.split_mode?"margin-bottom: -".concat(t+4,"px;"):"","\n ").concat(e.split_mode?"padding-bottom: 48px;":"","\n ").concat(e.split_mode&&e.footer_mode?"margin-bottom: -4px;":"","\n }\n hui-panel-view {\n padding-top: 96px;\n ").concat(e.panel_view_css?e.panel_view_css:"","\n ").concat(e.kiosk_mode||e.hide_header?"min-height: 100vh !important; margin-bottom: 0 !important;":"","\n }\n hui-view {\n padding-top: 100px;\n ").concat(e.view_css?e.view_css:"","\n }\n #view {\n min-height: calc(100vh - 96px) !important;\n ").concat(e.footer_mode&&!e.split_mode?"min-height: calc(100vh - ".concat(t,"px) !important;"):"","\n ").concat(e.compact_mode&&!e.footer_mode?"min-height: calc(100vh - ".concat(t,"px) !important;"):"","\n ").concat(e.split_mode?"min-height: calc(100vh - 48px) !important; margin-bottom: -48px;":"","\n ").concat(e.split_mode&&e.footer_mode?"min-height: calc(100vh - 52px) !important; margin-bottom: -48px;":"","\n ").concat(e.kiosk_mode||e.hide_header?"min-height: 100vh !important;":"","\n }\n "),o=p.querySelector("#ch_view_style"),o&&r.innerHTML==o.innerHTML||(p.appendChild(r),o&&o.remove()),r=document.createElement("style"),r.setAttribute("id","ch_chevron"),r.innerHTML='\n .not-visible[icon*="chevron"] {\n display:none;\n }\n ',o=n.tabContainer.shadowRoot.querySelector("#ch_chevron"),n.tabContainer.shadowRoot.appendChild(r),o&&o.remove(),o=_.bottom.querySelector("paper-tabs").shadowRoot.querySelector("#ch_chevron"),_.bottom.querySelector("paper-tabs").shadowRoot.appendChild(r.cloneNode(!0)),o&&o.remove(),r=document.createElement("style"),r.setAttribute("id","ch_animated"),r.innerHTML='\n ch-header, [buttonElem="menu"], [buttonElem="options"], [buttonElem="voice"] {\n transition: margin-top 0.4s ease-in-out;\n transition: top 0.4s ease-in-out;\n }\n ',setTimeout(()=>{p.querySelector("#ch_animated")||p.appendChild(r)},1e3)},redirects=(e,t)=>{const n=e.split_mode?t.bottom:t,r=f.sidebar.listbox.querySelector('[data-panel="lovelace"]');if(e.hide_tabs.includes(0)&&!e.default_tab){for(const e of n.tabs)if("none"!=getComputedStyle(e).display){r.setAttribute("href","/lovelace/".concat(n.tabContainer.indexOf(e)));break}}else e.default_tab&&r.setAttribute("href","/lovelace/".concat(tabIndexByName(e.default_tab)));const o=null!=e.default_tab?tabIndexByName(e.default_tab):null;if(e.hidden_tab_redirect&&f.tabs.length){const t=f.tabContainer.indexOf(f.tabContainer.querySelector("paper-tab.iron-selected"));if(e.hide_tabs.includes(t)&&e.hide_tabs.length!=f.tabs.length)if(o&&!e.hide_tabs.includes(tabIndexByName(o)))"none"!=getComputedStyle(n.tabs[o]).display&&(f.tabs[o].dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!1})),r.setAttribute("href","/lovelace/".concat(o)));else for(const e of n.tabs)if("none"!=getComputedStyle(e).display){e.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!1})),r.setAttribute("href","/lovelace/".concat(n.tabContainer.indexOf(e)));break}}let i;i=!e.default_tab_on_refresh&&window.performance?0==performance.navigation.type:!(e.default_tab_on_refresh||!performance.getEntriesByType("navigation"))&&"reload"==performance.getEntriesByType("navigation")[0].type,i||null==o||window.customHeaderDefaultClicked||!f.tabs[o]||(f.tabs[o].dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!1})),window.customHeaderDefaultClicked=!0)},styleHeader=e=>{if(insertSettings(),window.location.href.includes("disable_ch")&&(e.disabled_mode=!0),e.disabled_mode)return window.customHeaderDisabled=!0,removeKioskMode(),_.container&&(_.container.style.visibility="hidden"),p.querySelector("#ch_header_style")&&p.querySelector("#ch_header_style").remove(),p.querySelector("#ch_view_style")&&p.querySelector("#ch_view_style").remove(),_.tabContainer.shadowRoot.querySelector("#ch_chevron")&&(_.tabContainer.shadowRoot.querySelector("#ch_chevron").remove(),_.bottom.tabContainer.shadowRoot.querySelector("#ch_chevron").remove()),_.menu.style.display="none",p.querySelector("ha-menu-button").style.display="",f.sidebar.main.shadowRoot.querySelector(".menu").style="",f.sidebar.main.shadowRoot.querySelector("paper-listbox").style="",f.sidebar.main.shadowRoot.querySelector("div.divider").style="",void window.dispatchEvent(new Event("resize"));window.customHeaderDisabled=!1,hideMenuItems(e,_,!1),_.menu.style.display="",_.container&&(_.container.style.visibility="visible"),insertSettings(),p.querySelector("ch-header-bottom").querySelector("paper-tabs")||(_.bottom.appendChild(_.tabContainer.cloneNode(!0)),_.bottom.tabContainer=p.querySelector("ch-header-bottom").querySelector("paper-tabs"),_.bottom.tabs=_.bottom.tabContainer.querySelectorAll("paper-tab")),f.tabs.forEach(e=>{const t=f.tabs.indexOf(e);_.bottom.tabs[t].addEventListener("click",()=>{f.tabs[t].dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!1}))})}),e.split_mode?(_.tabContainer.style.display="none",e.compact_mode=!1,e.footer_mode?_.bottom.setAttribute("slot","header"):_.bottom.setAttribute("slot","")):_.bottom.style.display="none";const t=e.split_mode?_.bottom:_;e.split_mode||(_.bottom.style.display="none"),_.tabs.length||(e.compact_mode=!1),e.menu_dropdown&&!e.disable_sidebar?buttonToOverflow("Menu","mdi:menu",_,e):_.options.querySelector("#menu_dropdown")&&_.options.querySelector("#menu_dropdown").remove(),e.voice_dropdown?buttonToOverflow("Voice","mdi:microphone",_,e):_.options.querySelector("#voice_dropdown")&&_.options.querySelector("#voice_dropdown").remove(),e.reverse_button_direction?(_.options.setAttribute("horizontal-align","left"),_.options.querySelector("paper-listbox").setAttribute("dir","ltr")):(_.options.setAttribute("horizontal-align","right"),_.options.querySelector("paper-listbox").setAttribute("dir","rtl"));const n=document.createElement("style");if(n.setAttribute("id","ch_header_style"),n.innerHTML="\n .menu, paper-listbox {\n transition: height 0.1s ease-in-out 0s;\n }\n .divider {\n transition: margin-bottom 0.1s ease-in-out 0s;\n }\n ",f.sidebar.main.shadowRoot.appendChild(n),e.kiosk_mode&&!e.disabled_mode?(insertStyleTags(e),kioskMode(!1,!1,e)):e.disable_sidebar?(kioskMode(!0,!1,e),insertStyleTags(e)):e.hide_header?(insertStyleTags(e),kioskMode(!1,!0,e)):e.disable_sidebar||e.kiosk_mode||e.hide_header||(removeKioskMode(),e.compact_mode&&!e.footer_mode?(f.sidebar.main.shadowRoot.querySelector(".menu").style="height:49px;",f.sidebar.main.shadowRoot.querySelector("paper-listbox").style="height:calc(100% - 175px);",f.sidebar.main.shadowRoot.querySelector("div.divider").style=""):e.footer_mode&&!e.split_mode?(f.sidebar.main.shadowRoot.querySelector(".menu").style="",f.sidebar.main.shadowRoot.querySelector("paper-listbox").style="height: calc(100% - 170px);",f.sidebar.main.shadowRoot.querySelector("div.divider").style="margin-bottom: -10px;"):e.split_mode?(f.sidebar.main.shadowRoot.querySelector(".menu").style="height:49px;",f.sidebar.main.shadowRoot.querySelector("paper-listbox").style="height: calc(100% - 170px);",f.sidebar.main.shadowRoot.querySelector("div.divider").style="margin-bottom: -3px;"):(f.sidebar.main.shadowRoot.querySelector(".menu").style="",f.sidebar.main.shadowRoot.querySelector("paper-listbox").style="",f.sidebar.main.shadowRoot.querySelector("div.divider").style=""),insertStyleTags(e)),e.chevrons?t.tabContainer.hideScrollButtons=!1:t.tabContainer.hideScrollButtons=!0,e.indicator_top?t.tabContainer.alignBottom=!0:t.tabContainer.alignBottom=!1,e.footer_mode?_.options.setAttribute("vertical-align","bottom"):_.options.removeAttribute("vertical-align"),e.footer_mode?_.container.removeAttribute("slot"):_.container.setAttribute("slot","header"),t.tabContainer.dir=e.reverse_tab_direction?"rtl":"ltr",_.container.dir=e.reverse_button_direction?"rtl":"ltr",e.tab_icons&&t.tabs.length)for(const n in e.tab_icons){const r=tabIndexByName(n),o=t.tabs[r].querySelector("ha-icon");e.tab_icons[n]?o.icon=e.tab_icons[n]:o.icon=h.config.views[r].icon}if(e.button_icons)for(const t in e.button_icons)_[t]&&(e.button_icons[t]?"options"===t?_[t].querySelector("paper-icon-button").icon=e.button_icons[t]:_[t].icon=e.button_icons[t]:"menu"===t?_.menu.icon="mdi:menu":"voice"===t&&_.voice?_.voice.icon="mdi:microphone":"options"===t&&(_[t].querySelector("paper-icon-button").icon="mdi:dots-vertical"));if(e.button_text)for(const t in e.button_text){const n=document.createElement("p");n.className="buttonText";const r="options"===t?_[t].querySelector("paper-icon-button"):_[t];e.button_text[t]||!r.shadowRoot.querySelector(".buttonText")?e.button_text[t]&&(r.shadowRoot.querySelector(".buttonText")?r.shadowRoot.querySelector(".buttonText").innerHTML=e.button_text[t]:(n.innerHTML=e.button_text[t],r.shadowRoot.appendChild(n)),r.shadowRoot.querySelector(".buttonText").dir="ltr",r.shadowRoot.querySelector(".buttonText").style.textAlign="menu"==t?e.reverse_button_direction?"right":"left":e.reverse_button_direction?"left":"right",r.shadowRoot.querySelector("iron-icon").style.display="none",r.style.width="auto",e.button_text[t].includes("
")?(r.shadowRoot.querySelector(".buttonText").style.fontSize="17px",r.shadowRoot.querySelector(".buttonText").style.lineHeight="1.2",r.shadowRoot.querySelector(".buttonText").style.margin="-5px 0px 0px 0px"):r.shadowRoot.querySelector(".buttonText").style.margin="5.5px 0px 0px 0px"):(r.shadowRoot.querySelector(".buttonText").remove(),r.shadowRoot.querySelector("iron-icon").style.display="",r.style.width="")}t.tabs.length||(t.tabContainer.style.display="none"),((e,t)=>{if(e.menu_hide)return;const buildDot=()=>{const t=document.createElement("div");return t.className="dot",t.style.cssText="\n pointer-events: none;\n position: relative;\n background-color: ".concat(e.notification_dot_color,";\n width: 12px;\n height: 12px;\n top: -28px;\n right: ").concat(e.reverse_button_direction?"":"-","16px;\n border-radius: 50%;\n "),t},menuButtonVisibility=()=>{e.disable_sidebar||window.customHeaderDisabled||("hidden"===f.menu.style.visibility?t.menu.style.display="none":t.menu.style.display="initial")},notificationDot=e=>{const t=document.querySelector("home-assistant").shadowRoot.querySelector("home-assistant-main").shadowRoot.querySelector("ha-panel-lovelace").shadowRoot.querySelector("hui-root");e.forEach(e=>{let{addedNodes:n,removedNodes:r}=e;if(n)for(const e of n)"dot"!==e.className||t.shadowRoot.querySelector('[buttonElem="menu"]').shadowRoot.querySelector(".dot")||(t.shadowRoot.querySelector('[buttonElem="menu"]').shadowRoot.appendChild(buildDot()),t.shadowRoot.querySelector('[buttonElem="menu"]').shadowRoot.querySelector(".buttonText")&&(t.shadowRoot.querySelector('[buttonElem="menu"]').shadowRoot.querySelector(".dot").style.display="none",t.shadowRoot.querySelector('[buttonElem="menu"]').shadowRoot.querySelector(".buttonText").style.borderBottom="3px solid ".concat(window.customHeaderConfig.notification_dot_color)));if(r)for(const e of r)"dot"===e.className&&t.shadowRoot.querySelector('[buttonElem="menu"]').shadowRoot.querySelector(".dot")&&(t.shadowRoot.querySelector('[buttonElem="menu"]').shadowRoot.querySelector(".dot").remove(),t.shadowRoot.querySelector('[buttonElem="menu"]').shadowRoot.querySelector(".buttonText")&&(t.shadowRoot.querySelector('[buttonElem="menu"]').shadowRoot.querySelector(".buttonText").style.borderBottom=""))})};if(!window.customHeaderMenuObserver){window.customHeaderMenuObserver=!0,new MutationObserver(notificationDot).observe(f.menu.shadowRoot,{childList:!0}),new MutationObserver(menuButtonVisibility).observe(f.menu,{attributes:!0,attributeFilter:["style"]})}menuButtonVisibility();const n=t.menu.shadowRoot.querySelector(".dot");n&&n.style.cssText!=buildDot().style.cssText&&(n.remove(),e.button_text.menu&&(t.menu.shadowRoot.querySelector(".buttonText").style.textDecoration="")),!t.menu.shadowRoot.querySelector(".dot")&&f.menu.shadowRoot.querySelector(".dot")&&(t.menu.shadowRoot.appendChild(buildDot()),e.button_text.menu&&(t.menu.shadowRoot.querySelector(".dot").style.display="none",t.menu.shadowRoot.querySelector(".buttonText").style.borderBottom="3px solid ".concat(e.notification_dot_color)))})(e,_),window.customHeaderShrink||e.split_mode||(window.customHeaderShrink=!0,window.addEventListener("scroll",(function(e){const t="none"===window.getComputedStyle(_.container.querySelector("#contentContainer")).getPropertyValue("display");"0px"===window.getComputedStyle(_.container).getPropertyValue("bottom")||t||(window.scrollY>48?(_.container.style.top="-48px",_.menu.style.marginTop="48px",_.voice&&(_.voice.style.marginTop="48px"),_.options.style.marginTop="48px"):(_.container.style.transition="0s",_.menu.style.transition="0s",_.voice&&(_.voice.style.transition="0s"),_.options.style.transition="0s",_.container.style.top="-".concat(window.scrollY,"px"),_.menu.style.marginTop="".concat(window.scrollY,"px"),_.voice&&(_.voice.style.marginTop="".concat(window.scrollY,"px")),_.options.style.marginTop="".concat(window.scrollY,"px")),_.container.style.transition="")})));const shadowScroll=()=>{window.scrollY>15?_.container.style.boxShadow="0px 0px 5px 5px rgba(0,0,0,0.2)":_.container.style.boxShadow="0px 0px 5px 5px rgba(0,0,0,0)"};window.customHeaderShadow||e.footer_mode||e.split_mode||!e.shadow?window.removeEventListener("scroll",shadowScroll):(window.customHeaderShadow=!0,window.addEventListener("scroll",shadowScroll)),A(_.container,"iron-resize"),redirects(e,_)},observers=()=>{const e=new MutationObserver(e=>{const t=window.customHeaderConfig,n=t.split_mode?_.bottom:_;e.forEach(r=>{let{addedNodes:o,target:i}=r;e.length&&"HTML"==e[0].target.nodeName&&(window.customHeaderExceptionConfig="init",buildConfig(),e=[]),"view"==i.id&&o.length&&n.tabs.length?(redirects(t,_),(e=>{const t=e.split_mode?_.bottom:_,n=F();n&&(f.tabContainer||t.tabContainer)&&(t.tabs[n.current_view].dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!1})),A(_.container,"iron-resize"))})(t),window.customHeaderTabCond&&buildConfig()):o.length&&"PARTIAL-PANEL-RESOLVER"==i.nodeName?(f.main.shadowRoot.querySelector(" ha-panel-lovelace")?t.compact_mode&&!t.footer_mode?(f.sidebar.main.shadowRoot.querySelector(".menu").style="height:49px;",f.sidebar.main.shadowRoot.querySelector("paper-listbox").style="height:calc(100% - 175px);",f.sidebar.main.shadowRoot.querySelector("div.divider").style=""):t.footer_mode&&!t.split_mode?(f.sidebar.main.shadowRoot.querySelector(".menu").style="",f.sidebar.main.shadowRoot.querySelector("paper-listbox").style="height: calc(100% - 170px);",f.sidebar.main.shadowRoot.querySelector("div.divider").style="margin-bottom: -10px;"):t.split_mode&&(f.sidebar.main.shadowRoot.querySelector(".menu").style="height:49px;",f.sidebar.main.shadowRoot.querySelector("paper-listbox").style="height: calc(100% - 170px);",f.sidebar.main.shadowRoot.querySelector("div.divider").style="margin-bottom: -3px;"):(f.sidebar.main.shadowRoot.querySelector(".menu").style="",f.sidebar.main.shadowRoot.querySelector("paper-listbox").style="",f.sidebar.main.shadowRoot.querySelector("div.divider").style=""),p.querySelector("editor")&&p.querySelector("editor").remove()):"edit-mode"===i.className&&o.length?(p.querySelector("editor")&&p.querySelector("editor").remove(),window.customHeaderDisabled||hideMenuItems(t,_,!0),_.menu.style.display="none",p.querySelector("ch-header").style.display="none",f.appHeader.style.display="block",p.querySelector("#ch_view_style")&&p.querySelector("#ch_view_style").remove(),p.querySelector("#ch_header_style")&&p.querySelector("#ch_header_style").remove(),p.querySelector("#ch_animated")&&p.querySelector("#ch_animated").remove()):"APP-HEADER"===i.nodeName&&o.length&&(insertStyleTags(t),f.menu=f.appHeader.querySelector("ha-menu-button"),f.appHeader.style.display="none",_.menu.style.display="",p.querySelector("ch-header").style.display="")})});e.observe(f.partialPanelResolver,{childList:!0}),e.observe(f.appHeader,{childList:!0}),e.observe(p.querySelector("#view"),{childList:!0}),e.observe(document.querySelector("html"),{attributes:!0})};window.customHeaderExceptionConfig="init";const buildConfig=e=>{const t=defaultConfig();e||(e=_objectSpread2({},t,{},h.config.custom_header));const n=_objectSpread2({},e,{},conditionalConfig(e)),r=e.template_variables;delete e.template_variables;const o="boolean"==typeof n.disabled_mode&&n.disabled_mode||"string"==typeof n.disabled_mode&&!n.disabled_mode.includes("{{")&&!n.disabled_mode.includes("{%")||window.location.href.includes("disable_ch"),processAndContinue=()=>{(e=_objectSpread2({},e,{},conditionalConfig(e))).hide_tabs&&(e.hide_tabs=processTabArray(e.hide_tabs)),e.show_tabs&&(e.show_tabs=processTabArray(e.show_tabs)),e.show_tabs&&e.show_tabs.length&&(e.hide_tabs=(e=>{if(e&&e.length){const t=[];for(let e=0;e!e.includes(t))}})(e.show_tabs)),(e.disable_sidebar||e.menu_dropdown)&&(e.menu_hide=!0),e.voice_dropdown&&(e.voice_hide=!0),null!=e.header_text&&""==e.header_text&&(e.header_text=t.header_text),e.header_text&&" "==e.header_text&&(e.header_text=" "),e.hide_header&&e.disable_sidebar&&(e.kiosk_mode=!0,e.hide_header=!1,e.disable_sidebar=!1),null!=e.test_template&&(o?console.log("Custom Header cannot render templates while disabled."):"string"==typeof e.test_template&&(e.test_template.toLowerCase().includes("true")||e.test_template.toLowerCase().includes("false"))?(console.log('Custom Header test returned: "'.concat(e.test_template,'"')),console.log("Warning: Boolean is returned as string instead of Boolean.")):"string"==typeof e.test_template?console.log('Custom Header test returned: "'.concat(e.test_template,'"')):console.log("Custom Header test returned: ".concat(e.test_template))),window.customHeaderConfig=e,styleHeader(e),window.customHeaderObservers||(observers(),window.customHeaderObservers=!0)},i=JSON.stringify(e),a=!!r||i.includes("{{")||i.includes("{%");let s,c=!1;a&&!o?("function"==typeof window.unsub&&(window.unsub(),window.unsub=null),s=subscribeRenderTemplate(t=>{if(window.customHeaderLastTemplateResult!=t||window.customHeaderLastExceptionConfig!=window.customHeaderExceptionConfig){window.customHeaderLastExceptionConfig=window.customHeaderExceptionConfig,window.customHeaderLastTemplateResult=t;try{e=JSON.parse(t.replace(/"true"/gi,"true").replace(/"false"/gi,"false").replace(/""/,""))}catch(e){c=!0;let n="[CUSTOM-HEADER] There was an issue with the template: ".concat(((e,t)=>{const n=t.toString().match(/\d+/g)[0],r=e.substr(0,n).match(/[^,]*$/),o=e.substr(n).match(/^[^,]*/);return"".concat(r?r[0]:"").concat(o?o[0]:"").replace('":"',': "')})(t,e));n.includes("locale")&&(n='[CUSTOM-HEADER] There was an issue one of your "template_variables".'),console.log(n)}processAndContinue()}},{template:JSON.stringify(r).replace(/\\/g,"")+JSON.stringify(e).replace(/\\/g,"")},e.locale),function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function _next(e){asyncGeneratorStep(i,r,o,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(i,r,o,_next,_throw,"throw",e)}_next(void 0)}))}}((function*(){try{window.unsub=yield s}catch(e){c=!0,console.log("[CUSTOM-HEADER] There was an error with one or more of your templates:"),console.log("".concat(e.message.substring(0,e.message.indexOf(")")),")"))}}))(),clearTimeout(window.customHeaderTempTimeout),window.customHeaderTempTimeout=window.setTimeout(()=>{const e=document.querySelector("home-assistant").shadowRoot.querySelector("home-assistant-main").shadowRoot.querySelector("ha-panel-lovelace");(e?e.shadowRoot.querySelector("hui-editor"):null)||c||p.querySelector("custom-header-editor")||buildConfig()},1e3*(60-(new Date).getSeconds()))):processAndContinue()};function createCommonjsModule(e,t){return e(t={exports:{}},t.exports),t.exports}var J=createCommonjsModule((function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)})),K={}.hasOwnProperty,_has=function(e,t){return K.call(e,t)},_fails=function(e){try{return!!e()}catch(e){return!0}},Z=!_fails((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),X=createCommonjsModule((function(e){var t=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=t)})),Q=(X.version,function(e){return"object"==typeof e?null!==e:"function"==typeof e}),_anObject=function(e){if(!Q(e))throw TypeError(e+" is not an object!");return e},ee=J.document,te=Q(ee)&&Q(ee.createElement),_domCreate=function(e){return te?ee.createElement(e):{}},ne=!Z&&!_fails((function(){return 7!=Object.defineProperty(_domCreate("div"),"a",{get:function(){return 7}}).a})),_toPrimitive=function(e,t){if(!Q(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!Q(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!Q(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!Q(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},re=Object.defineProperty,oe={f:Z?Object.defineProperty:function defineProperty(e,t,n){if(_anObject(e),t=_toPrimitive(t,!0),_anObject(n),ne)try{return re(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},_propertyDesc=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ie=Z?function(e,t,n){return oe.f(e,t,_propertyDesc(1,n))}:function(e,t,n){return e[t]=n,e},ae=0,se=Math.random(),_uid=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++ae+se).toString(36))},ce=createCommonjsModule((function(e){var t=J["__core-js_shared__"]||(J["__core-js_shared__"]={});(e.exports=function(e,n){return t[e]||(t[e]=void 0!==n?n:{})})("versions",[]).push({version:X.version,mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),le=ce("native-function-to-string",Function.toString),ue=createCommonjsModule((function(e){var t=_uid("src"),n=(""+le).split("toString");X.inspectSource=function(e){return le.call(e)},(e.exports=function(e,r,o,i){var a="function"==typeof o;a&&(_has(o,"name")||ie(o,"name",r)),e[r]!==o&&(a&&(_has(o,t)||ie(o,t,e[r]?""+e[r]:n.join(String(r)))),e===J?e[r]=o:i?e[r]?e[r]=o:ie(e,r,o):(delete e[r],ie(e,r,o)))})(Function.prototype,"toString",(function toString(){return"function"==typeof this&&this[t]||le.call(this)}))})),_aFunction=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},_ctx=function(e,t,n){if(_aFunction(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}},$export=function(e,t,n){var r,o,i,a,s=e&$export.F,c=e&$export.G,l=e&$export.S,u=e&$export.P,d=e&$export.B,h=c?J:l?J[t]||(J[t]={}):(J[t]||{}).prototype,p=c?X:X[t]||(X[t]={}),f=p.prototype||(p.prototype={});for(r in c&&(n=t),n)i=((o=!s&&h&&void 0!==h[r])?h:n)[r],a=d&&o?_ctx(i,J):u&&"function"==typeof i?_ctx(Function.call,i):i,h&&ue(h,r,i,e&$export.U),p[r]!=i&&ie(p,r,a),u&&f[r]!=i&&(f[r]=i)};J.core=X,$export.F=1,$export.G=2,$export.S=4,$export.P=8,$export.B=16,$export.W=32,$export.U=64,$export.R=128;var de=$export,he=createCommonjsModule((function(e){var t=_uid("meta"),n=oe.f,r=0,o=Object.isExtensible||function(){return!0},i=!_fails((function(){return o(Object.preventExtensions({}))})),setMeta=function(e){n(e,t,{value:{i:"O"+ ++r,w:{}}})},a=e.exports={KEY:t,NEED:!1,fastKey:function(e,n){if(!Q(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!_has(e,t)){if(!o(e))return"F";if(!n)return"E";setMeta(e)}return e[t].i},getWeak:function(e,n){if(!_has(e,t)){if(!o(e))return!0;if(!n)return!1;setMeta(e)}return e[t].w},onFreeze:function(e){return i&&a.NEED&&o(e)&&!_has(e,t)&&setMeta(e),e}}})),pe=(he.KEY,he.NEED,he.fastKey,he.getWeak,he.onFreeze,createCommonjsModule((function(e){var t=ce("wks"),n=J.Symbol,r="function"==typeof n;(e.exports=function(e){return t[e]||(t[e]=r&&n[e]||(r?n:_uid)("Symbol."+e))}).store=t}))),fe=oe.f,me=pe("toStringTag"),_setToStringTag=function(e,t,n){e&&!_has(e=n?e:e.prototype,me)&&fe(e,me,{configurable:!0,value:t})},ge={f:pe},_e=oe.f,_wksDefine=function(e){var t=X.Symbol||(X.Symbol=J.Symbol||{});"_"==e.charAt(0)||e in t||_e(t,e,{value:ge.f(e)})},ye={}.toString,_cof=function(e){return ye.call(e).slice(8,-1)},ve=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==_cof(e)?e.split(""):Object(e)},_defined=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},_toIobject=function(e){return ve(_defined(e))},be=Math.ceil,we=Math.floor,_toInteger=function(e){return isNaN(e=+e)?0:(e>0?we:be)(e)},Se=Math.min,_toLength=function(e){return e>0?Se(_toInteger(e),9007199254740991):0},xe=Math.max,Ee=Math.min,_toAbsoluteIndex=function(e,t){return(e=_toInteger(e))<0?xe(e+t,0):Ee(e,t)},_arrayIncludes=function(e){return function(t,n,r){var o,i=_toIobject(t),a=_toLength(i.length),s=_toAbsoluteIndex(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},Oe=ce("keys"),_sharedKey=function(e){return Oe[e]||(Oe[e]=_uid(e))},ke=_arrayIncludes(!1),Ce=_sharedKey("IE_PROTO"),_objectKeysInternal=function(e,t){var n,r=_toIobject(e),o=0,i=[];for(n in r)n!=Ce&&_has(r,n)&&i.push(n);for(;t.length>o;)_has(r,n=t[o++])&&(~ke(i,n)||i.push(n));return i},je="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Pe=Object.keys||function keys(e){return _objectKeysInternal(e,je)},Me={f:Object.getOwnPropertySymbols},Ae={f:{}.propertyIsEnumerable},Te=Array.isArray||function isArray(e){return"Array"==_cof(e)},_toObject=function(e){return Object(_defined(e))},Re=Z?Object.defineProperties:function defineProperties(e,t){_anObject(e);for(var n,r=Pe(t),o=r.length,i=0;o>i;)oe.f(e,n=r[i++],t[n]);return e},Ne=J.document,qe=Ne&&Ne.documentElement,Ie=_sharedKey("IE_PROTO"),Empty=function(){},createDict=function(){var e,t=_domCreate("iframe"),n=je.length;for(t.style.display="none",qe.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("