Flake8 bugbear fixes (#12072)
* Don't use mutable argument defaults (bugbear B006) * Use callable(x) instead of hasattr(x, '__call__') (bugbear B004) * Remove/mark unused loop control variables (bugbear B007) * Fix stripping protocol from kodi host name (bugbear B005) * Fix plant daily history add default date (bugbear B008)
This commit is contained in:
parent
37034a7450
commit
cab6c694c5
15 changed files with 23 additions and 22 deletions
|
@ -733,7 +733,7 @@ class TestRetryOnErrorDecorator(unittest.TestCase):
|
|||
self.assertEqual(mock_method.call_count, 2)
|
||||
mock_method.assert_called_with(1, 2, test=3)
|
||||
|
||||
for cnt in range(3):
|
||||
for _ in range(3):
|
||||
start = dt_util.utcnow()
|
||||
shifted_time = start + (timedelta(seconds=20 + 1))
|
||||
self.hass.bus.fire(ha.EVENT_TIME_CHANGED,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue