Skip to content

Commit

Permalink
v1
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Oct 29, 2024
1 parent c9b4937 commit 81c803d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions custom_components/xiaomi_miot/core/hass_entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,7 @@ def __init__(self, device: 'Device', conv: 'BaseConv'):
self.listen_attrs = {self.attr} | set(conv.attrs)
self._attr_unique_id = f'{device.unique_id}-{convert_unique_id(conv)}'
self._attr_device_info = self.device.hass_device_info
self._attr_extra_state_attributes = {
'converter': f'{conv}'.replace('custom_components.xiaomi_miot.core.miot_spec.', ''), # TODO
}
self._attr_extra_state_attributes = {}

self._attr_icon = conv.option.get('icon')
self._attr_device_class = self.custom_config('device_class') or conv.option.get('device_class')
Expand Down

0 comments on commit 81c803d

Please sign in to comment.