Use f-strings in integrations starting with "H" - "L" (#32265)
* Use f-strings in integrations starting with "H" * Use f-strings in integrations starting with "I" * Use f-strings in integrations starting with "J" * Use f-strings in integrations starting with "K" * Use f-strings in integrations starting with "L" * Fix lint error * Use join instead of f-string in homekit_controller * Use local variables with f-strings * Fix lint error * Escape the characters in f-string * Sort imports with isort in homeworks light * Fix pylint error * Fix broken tests * Fix broken tests v2
This commit is contained in:
1 parent
7714160f4c
commit
157f972d72
77 files changed
+158
-246
No files matched your search
@@ -184,13 +184,13 @@ class TestMediaPlayer(unittest.TestCase):
|
||||
self.mock_state_switch_id = switch.ENTITY_ID_FORMAT.format("state")
|
||||
self.hass.states.set(self.mock_state_switch_id, STATE_OFF)
|
||||
|
||||
self.mock_volume_id = input_number.ENTITY_ID_FORMAT.format("volume_level")
|
||||
self.mock_volume_id = f"{input_number.DOMAIN}.volume_level"
|
||||
self.hass.states.set(self.mock_volume_id, 0)
|
||||
|
||||
self.mock_source_list_id = input_select.ENTITY_ID_FORMAT.format("source_list")
|
||||
self.mock_source_list_id = f"{input_select.DOMAIN}.source_list"
|
||||
self.hass.states.set(self.mock_source_list_id, ["dvd", "htpc"])
|
||||
|
||||
self.mock_source_id = input_select.ENTITY_ID_FORMAT.format("source")
|
||||
self.mock_source_id = f"{input_select.DOMAIN}.source"
|
||||
self.hass.states.set(self.mock_source_id, "dvd")
|
||||
|
||||
self.mock_shuffle_switch_id = switch.ENTITY_ID_FORMAT.format("shuffle")
|
||||
|
||||
Reference in new issue
Block a user