🏡 Open source home automation that puts local control and privacy first.
Find a file
Leah Oswald 02fb60b33e
Fix home connect remaining progress time (#109525)
* fix remaining progress time for home connect component

The home connect API is sending some default values (on dishwashers) for
the remaining progress time after the program finished. This is a problem
because this value is stored and on every API event, for example opening
the door of a dishwasher, the value for remaining progress time is
updated with this wrong value. So I see a wrong value the whole time the
dishwasher is not running and therefore has no remaining progress time.
This coming fixes this problem and adds a check if the appliance is in
running, pause or finished state, because there we have valid data. In
the other states the new code just returns none like on other edge
cases. Now there is no value if there is no program running.

* fix some formating according to the ruff rules

* fix some formating according to the ruff rules again

* fix alphabetic order of imports

* add check if keys exist in dict before accessing them

check if BSH_OPERATION_STATE and ATTR_VALUE key values exist before
accessing them later in the elif statement

* fix formating because forgotten local ruff run
2024-02-04 23:56:12 +01:00
.devcontainer Add Shelly CoAP port to default container port (#108016) 2024-01-24 19:00:57 +01:00
.github Bump sigstore/cosign-installer from 3.3.0 to 3.4.0 (#109278) 2024-02-01 08:28:23 +01:00
.vscode Add task to install all requirements of an integration (#108262) 2024-01-18 22:11:02 +01:00
homeassistant Fix home connect remaining progress time (#109525) 2024-02-04 23:56:12 +01:00
machine Add Raspberry Pi 5 specific container image (#105488) 2023-12-11 17:39:48 +01:00
pylint Add pylint plugin to check if coordinator is placed in its own module (#108174) 2024-01-29 10:30:19 +01:00
rootfs Stop the Home Assistant Core container by default (#101105) 2023-09-30 10:43:07 +02:00
script Allow the helper integrations to omit icon translation field (#109648) 2024-02-04 22:57:11 +01:00
tests Improve scalability of DHCP matchers (#109406) 2024-02-04 16:50:08 -06:00
.core_files.yaml Add todo to core files (#103102) 2023-10-31 07:55:03 +01:00
.coveragerc Remove remaning ESPHome files from coveragerc (#109400) 2024-02-02 14:52:09 -06:00
.dockerignore Not to Tox (#76582) 2022-11-23 14:40:37 +01:00
.gitattributes Ensure .pcm binary files do not have line endings changed (#91881) 2023-04-22 22:22:30 -04:00
.gitignore Remove dev API docs from repository (#102274) 2023-10-20 08:10:46 +02:00
.hadolint.yaml Update base image to 2023.10.0 (#102126) 2023-10-18 19:11:41 +02:00
.pre-commit-config.yaml Update ruff to 0.1.15 (#109303) 2024-02-01 13:29:01 +01:00
.prettierignore Add tests for yaml syntax errors (#103908) 2023-11-13 14:04:58 +01:00
.strict-typing Add romy vacuum integration (#93750) 2024-01-31 10:48:44 +01:00
.yamllint Add tests for yaml syntax errors (#103908) 2023-11-13 14:04:58 +01:00
build.yaml Update Home Assistant base image to 2024.02.0 (#109329) 2024-02-01 22:13:41 +01:00
CLA.md
CODE_OF_CONDUCT.md Update URLs forwarding to HA blog posts (#91698) 2023-04-20 20:55:13 +02:00
codecov.yml Add recorder platform to required test category (#86704) 2023-01-26 11:03:56 +01:00
CODEOWNERS Add config flow to GPSD (#106196) 2024-01-31 18:38:14 +01:00
CONTRIBUTING.md
Dockerfile Attempt to fix 32bit docker builds (#107210) 2024-01-05 08:23:04 +01:00
Dockerfile.dev Add ffmpeg to dev-container (#106710) 2023-12-30 13:14:49 +01:00
LICENSE.md
MANIFEST.in
mypy.ini Add romy vacuum integration (#93750) 2024-01-31 10:48:44 +01:00
pyproject.toml Update orjson to 3.9.13 (#109614) 2024-02-04 11:37:16 -06:00
README.rst Fix readme images (#108767) 2024-01-30 15:00:57 +01:00
requirements.txt Update orjson to 3.9.13 (#109614) 2024-02-04 11:37:16 -06:00
requirements_all.txt Bump aionotion to 2024.02.0 (#109577) 2024-02-04 14:35:08 -07:00
requirements_test.txt Update coverage to 7.4.1 (#109116) 2024-01-30 13:30:22 +01:00
requirements_test_all.txt Bump aionotion to 2024.02.0 (#109577) 2024-02-04 14:35:08 -07:00
requirements_test_pre_commit.txt Update ruff to 0.1.15 (#109303) 2024-02-01 13:29:01 +01: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/>`__.

|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/