Fix light template to return brightness as int (#12447)
This commit is contained in:
1 parent
b651cdd8f2
commit
fcf97524a2
2 files changed
+2
-3
No files matched your search
@@ -586,7 +586,7 @@ class TestTemplateLight:
|
||||
state = self.hass.states.get('light.test_template_light')
|
||||
assert state is not None
|
||||
|
||||
assert state.attributes.get('brightness') == '42'
|
||||
assert state.attributes.get('brightness') == 42
|
||||
|
||||
def test_friendly_name(self):
|
||||
"""Test the accessibility of the friendly_name attribute."""
|
||||
|
||||
Reference in new issue
Block a user