We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a3c090 commit 2f11172Copy full SHA for 2f11172
plugwise/smile.py
@@ -1,6 +1,8 @@
1
"""Use of this source code is governed by the MIT license found in the LICENSE file.
2
Plugwise backend module for Home Assistant Core.
3
"""
4
+from typing import Optional
5
+
6
import aiohttp
7
from defusedxml import ElementTree as etree
8
@@ -262,7 +264,7 @@ def __init__(
262
264
SmileData.__init__(self)
263
265
266
self._notifications: dict[str, str] = {}
- self.smile_hostname: str = "Unknown"
267
+ self.smile_hostname: Optional[str] = None
268
269
async def connect(self) -> bool:
270
"""Connect to Plugwise device and determine its name, type and version."""
0 commit comments