Skip to content

Commit

Permalink
feat: remove device_state_attributes prpoerty
Browse files Browse the repository at this point in the history
  • Loading branch information
rxwen committed Mar 13, 2022
1 parent 712103d commit 01c9043
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 35 deletions.
10 changes: 0 additions & 10 deletions terncy/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,6 @@ def device_info(self):
"via_device": (DOMAIN, self.hub_id),
}

@property
def device_state_attributes(self):
"""Get terncy curtain states."""
return {}


class TerncyMotionSensor(BinarySensorEntity):
"""Representation of a Terncy curtain."""
Expand Down Expand Up @@ -195,11 +190,6 @@ def device_info(self):
"via_device": (DOMAIN, self.hub_id),
}

@property
def device_state_attributes(self):
"""Get terncy curtain states."""
return {}

def get_trigger(self, id):
return [
{
Expand Down
5 changes: 0 additions & 5 deletions terncy/cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,3 @@ async def async_set_cover_position(self, **kwargs):
percent = kwargs[ATTR_POSITION]
await self.api.set_attribute(self._device_id, "curtainPercent", percent, 0)
self.async_write_ha_state()

@property
def device_state_attributes(self):
"""Get terncy curtain states."""
return {}
5 changes: 0 additions & 5 deletions terncy/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,3 @@ async def async_turn_off(self, **kwargs):
self._onoff = False
await self.api.set_onoff(self._device_id, 0)
self.async_write_ha_state()

@property
def device_state_attributes(self):
"""Get terncy light states."""
return {}
5 changes: 0 additions & 5 deletions terncy/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,3 @@ def device_info(self):
"sw_version": self.version,
"via_device": (DOMAIN, self.hub_id),
}

@property
def device_state_attributes(self):
"""Get terncy curtain states."""
return {}
10 changes: 0 additions & 10 deletions terncy/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,6 @@ async def async_turn_off(self, **kwargs):
await self.api.set_onoff(self._device_id, 0)
self.async_write_ha_state()

@property
def device_state_attributes(self):
"""Get terncy smart plug states."""
return {}


class TerncySwitch(SwitchEntity):
"""Representation of a Terncy Switch."""
Expand Down Expand Up @@ -202,8 +197,3 @@ async def async_turn_off(self, **kwargs):
self._onoff = False
await self.api.set_onoff(self._device_id, 0)
self.async_write_ha_state()

@property
def device_state_attributes(self):
"""Get terncy smart plug states."""
return {}

0 comments on commit 01c9043

Please sign in to comment.