Skip to content

Commit

Permalink
refactor: remove unused _state variable
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Sep 30, 2020
1 parent 9ea414b commit 26c5ac3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions custom_components/alexa_media/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ def __init__(
self._client = client
self._name = name
self._switch_property = switch_property
self._state = False
self._switch_function = switch_function
super().__init__(client, client._login)

Expand Down Expand Up @@ -179,7 +178,6 @@ def _handle_event(self, event):
if "queue_state" in event:
queue_state = event["queue_state"]
if queue_state["dopplerId"]["deviceSerialNumber"] == self._client.unique_id:
self._state = getattr(self._client, self._switch_property)
self.async_write_ha_state()

@_catch_login_errors
Expand Down

0 comments on commit 26c5ac3

Please sign in to comment.