Improve string formatting v5 (#33697)
* Improve string formatting v5 * Address review comments
This commit is contained in:
parent
39336d3ea3
commit
fca90a8ddc
46 changed files with 221 additions and 252 deletions
|
@ -28,9 +28,7 @@ class CecSwitchDevice(CecDevice, SwitchDevice):
|
|||
def __init__(self, device, logical) -> None:
|
||||
"""Initialize the HDMI device."""
|
||||
CecDevice.__init__(self, device, logical)
|
||||
self.entity_id = "{}.{}_{}".format(
|
||||
DOMAIN, "hdmi", hex(self._logical_address)[2:]
|
||||
)
|
||||
self.entity_id = f"{DOMAIN}.hdmi_{hex(self._logical_address)[2:]}"
|
||||
|
||||
def turn_on(self, **kwargs) -> None:
|
||||
"""Turn device on."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue