diff --git a/homeassistant/components/solarlog/sensor.py b/homeassistant/components/solarlog/sensor.py index 8c0650f0f7e..6073d12815b 100644 --- a/homeassistant/components/solarlog/sensor.py +++ b/homeassistant/components/solarlog/sensor.py @@ -9,7 +9,7 @@ from homeassistant.const import CONF_HOST from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle -from .const import SCAN_INTERVAL, SENSOR_TYPES +from .const import DOMAIN, SCAN_INTERVAL, SENSOR_TYPES _LOGGER = logging.getLogger(__name__) @@ -96,6 +96,15 @@ class SolarlogSensor(Entity): """Return the state of the sensor.""" return self._state + @property + def device_info(self): + """Return the device information.""" + return { + "identifiers": {(DOMAIN, self.entry_id)}, + "name": self.device_name, + "manufacturer": "Solar-Log", + } + def update(self): """Get the latest data from the sensor and update the state.""" self.data.update()