Bläddra i källkod

ci(entity): avoid lint warning about unused variable

Jason Rumney 1 dag sedan
förälder
incheckning
6cfbd57ba8
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      tests/test_entity.py

+ 1 - 1
tests/test_entity.py

@@ -332,5 +332,5 @@ class TestUnitFromAscii:
         dps = e._init_begin(mock_device, mock_config)
         e._init_end(dps)
 
-        attrs = e.extra_state_attributes
+        _ = e.extra_state_attributes
         assert True  # The test passes if no exception is raised and we reach this line