Fix ArestSwitchBase missing is on attribute (#55483)

This commit is contained in:
uvjustin 2021-08-31 23:30:05 +08:00 committed by GitHub
parent bd60a58765
commit 71c6f99d31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -88,6 +88,7 @@ class ArestSwitchBase(SwitchEntity):
self._resource = resource
self._attr_name = f"{location.title()} {name.title()}"
self._attr_available = True
self._attr_is_on = False
class ArestSwitchFunction(ArestSwitchBase):