You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I updated to the latest version my code like this attrs = state.getattr(entity_id) is no longer returning a dictionary that can respond to the get() method.
After a none check I'd previously use the following code:
current_brightness = attrs.get("brightness", 0)
Now i have to do
starting_brightness = 0
if "brightness" in attrs:
starting_brightness = attrs["brightness"]