Skip to content

Commit 2f11172

Browse files
committed
Fix smile_hostname typing
1 parent 7a3c090 commit 2f11172

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugwise/smile.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
"""Use of this source code is governed by the MIT license found in the LICENSE file.
22
Plugwise backend module for Home Assistant Core.
33
"""
4+
from typing import Optional
5+
46
import aiohttp
57
from defusedxml import ElementTree as etree
68

@@ -262,7 +264,7 @@ def __init__(
262264
SmileData.__init__(self)
263265

264266
self._notifications: dict[str, str] = {}
265-
self.smile_hostname: str = "Unknown"
267+
self.smile_hostname: Optional[str] = None
266268

267269
async def connect(self) -> bool:
268270
"""Connect to Plugwise device and determine its name, type and version."""

0 commit comments

Comments
 (0)