🏡 Open source home automation that puts local control and privacy first.
Find a file
TimL 98a007cb2f
New Integration: SMLIGHT SLZB-06 Adapters Integration (#118675)
* Initial SMLIGHT integration

Signed-off-by: Tim Lunn <tl@smlight.tech>

* Generated content

Signed-off-by: Tim Lunn <tl@smlight.tech>

* Cleanup LOGGING

* Use runtime data

* Call super first

* coordinator instance attributes

* Move coordinatorEntity and attr to base class

* cleanup sensors

* update strings to use sentence case

* Improve reauth flow on incorrect credentials

* Use fixture for config_flow tests and test to completion

* Split uptime hndling into a new uptime sensor entity

* Drop server side events and internet callback

will bring this back with binary sensor Platform

* consolidate coordinator setup

* entity always include connections

* get_hostname tweak

* Add tests for init, coordinator and sensor

* Use custom type SmConfigEntry

* update sensor snapshot

* Drop reauth flow for later PR

* Use _async_setup for initial setup

* drop internet to be set later

* sensor fixes

* config flow re

* typing fixes

* Bump pysmlight dependency to 0.0.12

* dont trigger invalid auth message when first loading auth step

* Merge uptime sensors back into main sensor class

* clarify uptime handling

* Apply suggestions from code review

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* address review comments

* pass host as parameter to the dataCoordinator

* drop uptime sensors for a later PR

* update sensor test snapshot

* move coordinator unique_id to _async_setup

* fix CI

* Apply suggestions from code review

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* drop invalid_auth test tag

* use snapshot_platform, update fixtures

* Finish all tests with abort or create entry

* drop coordinator tests and remove hostname support

* add test for update failure on connection error

* use freezer for update_failed test

* fix pysmlight imports

---------

Signed-off-by: Tim Lunn <tl@smlight.tech>
Co-authored-by: Tim Lunn <tim@feathertop.org>
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-08-20 10:44:06 +02:00
.devcontainer Update default pylint.importStrategy in dev container (#119900) 2024-06-19 11:27:01 +02:00
.github Bump home-assistant/builder from 2024.03.5 to 2024.08.1 (#123967) 2024-08-15 09:31:42 +02:00
.vscode Generate translation in vscode taks: Code Coverage (#120434) 2024-07-07 17:05:44 +02:00
homeassistant New Integration: SMLIGHT SLZB-06 Adapters Integration (#118675) 2024-08-20 10:44:06 +02:00
machine Fix Raspberry Pi utilities installation on Alpine 3.19 (#110463) 2024-02-13 15:07:37 +01:00
pylint Update sensor recorder tests to async (#124061) 2024-08-18 13:20:58 -05:00
rootfs Stop the Home Assistant Core container by default (#101105) 2023-09-30 10:43:07 +02:00
script Bump dio-chacon-wifi-api to 1.2.1 (#124215) 2024-08-19 12:58:00 +02:00
tests New Integration: SMLIGHT SLZB-06 Adapters Integration (#118675) 2024-08-20 10:44:06 +02:00
.core_files.yaml Update audit licenses run conditions [ci] (#123009) 2024-08-01 11:30:29 +02:00
.dockerignore
.git-blame-ignore-revs Add ruff commit to git-blame-ignore-revs (#114229) 2024-03-26 12:16:55 +01:00
.gitattributes Ensure .pcm binary files do not have line endings changed (#91881) 2023-04-22 22:22:30 -04:00
.gitignore Add __pycache__ to gitignore (#114056) 2024-05-18 13:30:03 +02:00
.hadolint.yaml Update base image to 2023.10.0 (#102126) 2023-10-18 19:11:41 +02:00
.pre-commit-config.yaml Bump ruff to 0.6.1 (#124250) 2024-08-19 20:43:50 +02:00
.prettierignore Remove outdated prettier and yamllint azure-*.yml ignores (#112819) 2024-03-09 14:44:05 +02:00
.strict-typing Improve code quality in Manual alarm (#123142) 2024-08-18 21:31:44 +02:00
.yamllint Remove outdated prettier and yamllint azure-*.yml ignores (#112819) 2024-03-09 14:44:05 +02:00
build.yaml Update Home Assistant base image to 2024.06.1 (#120168) 2024-06-22 18:52:44 +02:00
CLA.md
CODE_OF_CONDUCT.md Update codespell to 2.3.0 (#118001) 2024-05-24 08:22:29 +02:00
codecov.yml Remove coveragerc (#121286) 2024-07-05 11:03:31 +02:00
CODEOWNERS New Integration: SMLIGHT SLZB-06 Adapters Integration (#118675) 2024-08-20 10:44:06 +02:00
CONTRIBUTING.md
Dockerfile Update uv to 0.2.27 (#122246) 2024-07-20 13:24:21 +02:00
Dockerfile.dev Use uv instead of pip in development env (#113517) 2024-05-21 09:56:31 +02:00
LICENSE.md
MANIFEST.in
mypy.ini Improve code quality in Manual alarm (#123142) 2024-08-18 21:31:44 +02:00
pyproject.toml Bump aiohttp to 3.10.5 (#124254) 2024-08-19 15:40:32 -05:00
README.rst Add Open Home Foundation link (#116405) 2024-04-29 21:28:47 +02:00
requirements.txt Bump aiohttp to 3.10.5 (#124254) 2024-08-19 15:40:32 -05:00
requirements_all.txt New Integration: SMLIGHT SLZB-06 Adapters Integration (#118675) 2024-08-20 10:44:06 +02:00
requirements_test.txt Update mypy-dev to 1.12.0a2 (#122613) 2024-07-25 21:48:10 +02:00
requirements_test_all.txt New Integration: SMLIGHT SLZB-06 Adapters Integration (#118675) 2024-08-20 10:44:06 +02:00
requirements_test_pre_commit.txt Bump ruff to 0.6.1 (#124250) 2024-08-19 20:43:50 +02:00

Home Assistant |Chat Status|
=================================================================================

Open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server.

Check out `home-assistant.io <https://home-assistant.io>`__ for `a
demo <https://demo.home-assistant.io>`__, `installation instructions <https://home-assistant.io/getting-started/>`__,
`tutorials <https://home-assistant.io/getting-started/automation/>`__ and `documentation <https://home-assistant.io/docs/>`__.

This is a project of the `Open Home Foundation <https://www.openhomefoundation.org/>`__.

|screenshot-states|

Featured integrations
---------------------

|screenshot-integrations|

The system is built using a modular approach so support for other devices or actions can be implemented easily. See also the `section on architecture <https://developers.home-assistant.io/docs/architecture_index/>`__ and the `section on creating your own
components <https://developers.home-assistant.io/docs/creating_component_index/>`__.

If you run into issues while using Home Assistant or during development
of a component, check the `Home Assistant help section <https://home-assistant.io/help/>`__ of our website for further help and information.

.. |Chat Status| image:: https://img.shields.io/discord/330944238910963714.svg
   :target: https://www.home-assistant.io/join-chat/
.. |screenshot-states| image:: https://raw.githubusercontent.com/home-assistant/core/dev/.github/assets/screenshot-states.png
   :target: https://demo.home-assistant.io
.. |screenshot-integrations| image:: https://raw.githubusercontent.com/home-assistant/core/dev/.github/assets/screenshot-integrations.png
   :target: https://home-assistant.io/integrations/