mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 04:50:05 +00:00
Add support to entity registry for overriding device_class (#59985)
This commit is contained in:
@@ -136,7 +136,7 @@ async def test_init_shutterbox(shutterbox, hass, config):
|
||||
|
||||
state = hass.states.get(entity_id)
|
||||
assert state.name == "shutterBox-position"
|
||||
assert entry.device_class == DEVICE_CLASS_SHUTTER
|
||||
assert entry.original_device_class == DEVICE_CLASS_SHUTTER
|
||||
|
||||
supported_features = state.attributes[ATTR_SUPPORTED_FEATURES]
|
||||
assert supported_features & SUPPORT_OPEN
|
||||
|
||||
Reference in New Issue
Block a user