diff --git a/homeassistant/components/binary_sensor/digital_ocean.py b/homeassistant/components/binary_sensor/digital_ocean.py index 821acb2da95..4c5783cc220 100644 --- a/homeassistant/components/binary_sensor/digital_ocean.py +++ b/homeassistant/components/binary_sensor/digital_ocean.py @@ -29,7 +29,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ def setup_platform(hass, config, add_devices, discovery_info=None): - """Setup the Digital Ocean droplet sensor.""" + """Set up the Digital Ocean droplet sensor.""" digital_ocean = get_component('digital_ocean') droplets = config.get(CONF_DROPLETS) @@ -68,7 +68,7 @@ class DigitalOceanBinarySensor(BinarySensorDevice): return DEFAULT_SENSOR_CLASS @property - def state_attributes(self): + def device_state_attributes(self): """Return the state attributes of the Digital Ocean droplet.""" return { ATTR_CREATED_AT: self.data.created_at, diff --git a/homeassistant/components/binary_sensor/threshold.py b/homeassistant/components/binary_sensor/threshold.py index 4dc11a3c5c7..78338de64f7 100644 --- a/homeassistant/components/binary_sensor/threshold.py +++ b/homeassistant/components/binary_sensor/threshold.py @@ -110,7 +110,7 @@ class ThresholdSensor(BinarySensorDevice): return self._sensor_class @property - def state_attributes(self): + def device_state_attributes(self): """Return the state attributes of the sensor.""" return { ATTR_ENTITY_ID: self._entity_id, diff --git a/homeassistant/components/switch/digital_ocean.py b/homeassistant/components/switch/digital_ocean.py index 8df79bebc5d..11414ce96c5 100644 --- a/homeassistant/components/switch/digital_ocean.py +++ b/homeassistant/components/switch/digital_ocean.py @@ -64,7 +64,7 @@ class DigitalOceanSwitch(SwitchDevice): return self.data.status == 'active' @property - def state_attributes(self): + def device_state_attributes(self): """Return the state attributes of the Digital Ocean droplet.""" return { ATTR_CREATED_AT: self.data.created_at,