* 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