Skip to content

Commit 9eb7165

Browse files
committed
What's wrong with pylint in Python 3.12 now?
Nothing better to do than complaining about single and double quotes, which were fine in 3.11?
1 parent 7d86648 commit 9eb7165

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ucapi/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ async def init(
102102

103103
if disable_mdns_publish is False:
104104
# Setup zeroconf service info
105-
name = f"{self._driver_info['driver_id']}._uc-integration._tcp.local."
105+
name = f'{self._driver_info["driver_id"]}._uc-integration._tcp.local.'
106106
hostname = local_hostname()
107107
driver_name = _get_default_language_string(
108108
self._driver_info["name"], "Unknown driver"
@@ -877,7 +877,7 @@ def local_hostname() -> str:
877877

878878
return (
879879
os.getenv("UC_MDNS_LOCAL_HOSTNAME")
880-
or f"{socket.gethostname().split('.', 1)[0]}.local."
880+
or f'{socket.gethostname().split(".", 1)[0]}.local.'
881881
)
882882

883883

0 commit comments

Comments
 (0)