core/homeassistant
Leah Oswald 66d8856033
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-05 09:41:30 +01:00
..
auth
backports
brands Add brands definition for Traccar (#109219) 2024-01-31 18:15:40 +01:00
components Fix home connect remaining progress time (#109525) 2024-02-05 09:41:30 +01:00
generated Change IoT class for Traccar Client (#109493) 2024-02-03 14:40:23 +01:00
helpers Pass slots to error messages instead of IDs [rework] (#109410) 2024-02-03 14:33:14 +01:00
scripts Update colorlog to 6.8.2 (#109072) 2024-01-29 23:24:17 +01:00
util Restore support for packages being installed from urls with fragments (#109267) 2024-02-01 12:19:19 +01:00
__init__.py
__main__.py
block_async_io.py
bootstrap.py
config.py
config_entries.py Create issues for reauth flows (#109105) 2024-01-31 15:05:52 +01:00
const.py Bump version to 2024.2.0b6 2024-02-04 23:25:49 +01:00
core.py
data_entry_flow.py Improve invalid error messages in the config flows (#108075) 2024-01-30 12:24:19 +01:00
exceptions.py
loader.py
package_constraints.txt Update orjson to 3.9.13 (#109614) 2024-02-04 23:25:11 +01:00
requirements.py
runner.py
setup.py
strings.json