Code styling tweaks to core helpers (#85441)

This commit is contained in:
Franck Nijhof 2023-01-09 00:44:09 +01:00 committed by GitHub
parent cf5fca0464
commit 06a35fb7db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 192 additions and 100 deletions

View file

@ -31,8 +31,7 @@ _LOGGER = logging.getLogger(__name__)
class AsyncTrackStates:
"""
Record the time when the with-block is entered.
"""Record the time when the with-block is entered.
Add all states that have changed since the start time to the return list
when with-block is exited.
@ -119,8 +118,7 @@ async def async_reproduce_state(
def state_as_number(state: State) -> float:
"""
Try to coerce our state to a number.
"""Try to coerce our state to a number.
Raises ValueError if this is not possible.
"""