Skip to content

Commit 87e14c2

Browse files
committed
fix: import DeviceInfo from homeassistant.helpers.entity
The module homeassistant.helpers.device_info does not exist; importing DeviceInfo from it raised ModuleNotFoundError on setup. Bump to 1.0.1.
1 parent 67e1ea6 commit 87e14c2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎custom_components/dtsu666_meter/manifest.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"domain": "dtsu666_meter",
33
"name": "DTSU666 Energy Meter (Modbus TCP)",
4-
"version": "1.0.0",
4+
"version": "1.0.1",
55
"codeowners": ["@Developer089"],
66
"config_flow": true,
77
"documentation": "https://github.com/Developer089/ha-dtsu666-meter",

‎custom_components/dtsu666_meter/sensor.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
UnitOfReactivePower,
2121
)
2222
from homeassistant.core import HomeAssistant, callback
23-
from homeassistant.helpers.device_info import DeviceInfo
23+
from homeassistant.helpers.entity import DeviceInfo
2424
from homeassistant.helpers.entity_platform import AddEntitiesCallback
2525
from homeassistant.helpers.update_coordinator import CoordinatorEntity
2626

0 commit comments

Comments
 (0)