Skip to content

Commit 40bd6f2

Browse files
committed
Improve plug naming
1 parent e0a4b1b commit 40bd6f2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

custom_components/plugwise-beta/sensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
163163
model = None
164164

165165
if "plug" in device["types"]:
166-
model = "Plug"
166+
model = "Metered Switch"
167167

168168
devices.append(
169169
PwPowerSensor(

custom_components/plugwise-beta/switch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
2020
all_devices = api.get_all_devices()
2121
for dev_id, device in all_devices.items():
2222
if "plug" in device["types"]:
23-
model = "Switch"
23+
model = "Metered Switch"
2424
_LOGGER.debug("Plugwise switch Dev %s", device["name"])
2525
devices.append(PwSwitch(api, updater, device["name"], dev_id, model,))
2626
_LOGGER.info("Added switch.%s", "{}".format(device["name"]))

0 commit comments

Comments
 (0)