mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-09 20:24:02 +00:00
Simplify impl by removing featurecategory and show_in_hass
This commit is contained in:
@@ -313,11 +313,6 @@ class IotDevice(Device):
|
||||
device=self, name="RSSI", attribute_getter="rssi", icon="mdi:signal"
|
||||
)
|
||||
)
|
||||
self._add_feature(
|
||||
Feature(
|
||||
device=self, name="Time", attribute_getter="time", show_in_hass=False
|
||||
)
|
||||
)
|
||||
if "on_time" in self._sys_info:
|
||||
self._add_feature(
|
||||
Feature(
|
||||
|
@@ -4,7 +4,7 @@ from typing import Any, Dict, Optional
|
||||
|
||||
from ..device_type import DeviceType
|
||||
from ..deviceconfig import DeviceConfig
|
||||
from ..feature import Feature, FeatureCategory, FeatureType
|
||||
from ..feature import Feature, FeatureType
|
||||
from ..protocol import BaseProtocol
|
||||
from .iotdevice import IotDevice, requires_update
|
||||
from .modules import Antitheft, Cloud, Schedule, Time, Usage
|
||||
@@ -64,7 +64,6 @@ class IotPlug(IotDevice):
|
||||
icon="mdi:led-{state}",
|
||||
attribute_getter="led",
|
||||
attribute_setter="set_led",
|
||||
category=FeatureCategory.Config,
|
||||
type=FeatureType.Switch,
|
||||
)
|
||||
)
|
||||
|
Reference in New Issue
Block a user