Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 6 additions & 12 deletions homeassistant/components/twentemilieu/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,7 @@

from homeassistant.components.sensor import SensorEntity
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import (
ATTR_IDENTIFIERS,
ATTR_MANUFACTURER,
ATTR_NAME,
CONF_ID,
DEVICE_CLASS_DATE,
)
from homeassistant.const import CONF_ID, DEVICE_CLASS_DATE
from homeassistant.core import HomeAssistant, callback
from homeassistant.exceptions import PlatformNotReady
from homeassistant.helpers.dispatcher import async_dispatcher_connect
Expand Down Expand Up @@ -153,8 +147,8 @@ async def async_update(self) -> None:
@property
def device_info(self) -> DeviceInfo:
"""Return device information about Twente Milieu."""
return {
ATTR_IDENTIFIERS: {(DOMAIN, self._unique_id)},
ATTR_NAME: "Twente Milieu",
ATTR_MANUFACTURER: "Twente Milieu",
}
return DeviceInfo(
identifiers={(DOMAIN, self._unique_id)},
manufacturer="Twente Milieu",
name="Twente Milieu",
)