Fix relative import statements

This commit is contained in:
Edward Brown 2025-11-24 10:10:41 +00:00
parent 5c08486ef3
commit 21100a5096
5 changed files with 13 additions and 5 deletions

View file

@ -1,7 +1,7 @@
from dataclasses import dataclass
from control import Control
from haco.capabilities import Capability
from haco.control import Control
@dataclass(kw_only=True)

View file

@ -1,8 +1,8 @@
from dataclasses import dataclass
from typing import Literal
from capabilities import Capability
from control import Control
from haco.capabilities import Capability
from haco.control import Control
@dataclass(kw_only=True)

View file

@ -86,6 +86,14 @@ class Control(Base):
async def initialise(self):
...
async def announce2(self):
"""
Entities must be able to announce themselves to Home Assistant, e.g. when a pulldown changes its options, etc.
"""
await self.device.client.publish(self.announce_topic, self.announce)
if __name__ == "__main__":
control = Control(name="test", platform="test")

View file

@ -1,6 +1,6 @@
from dataclasses import dataclass
from control import Control
from haco.control import Control
@dataclass(kw_only=True)

View file

@ -1,6 +1,6 @@
from dataclasses import dataclass
from control import Control
from haco.control import Control
@dataclass(kw_only=True)