Prechádzať zdrojové kódy

ci(entity): avoid lint warning about unused variable

Jason Rumney 4 dní pred
rodič
commit
6cfbd57ba8
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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)
         dps = e._init_begin(mock_device, mock_config)
         e._init_end(dps)
         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
         assert True  # The test passes if no exception is raised and we reach this line