Use literal string interpolation in core (f-strings) (#26166)
This commit is contained in:
parent
1efa29d6ff
commit
decf13b948
67 changed files with 180 additions and 246 deletions
|
@ -205,7 +205,7 @@ class EntityComponent:
|
|||
|
||||
async def handle_service(call):
|
||||
"""Handle the service."""
|
||||
service_name = "{}.{}".format(self.domain, name)
|
||||
service_name = f"{self.domain}.{name}"
|
||||
await self.hass.helpers.service.entity_service_call(
|
||||
self._platforms.values(), func, call, service_name, required_features
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue