mirror of
https://github.com/fmtr/haco.git
synced 2026-10-25 18:40:15 -04:00
Fix relative import statements
This commit is contained in:
parent
5c08486ef3
commit
21100a5096
5 changed files with 13 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
from dataclasses import dataclass
|
||||
|
||||
from control import Control
|
||||
from haco.control import Control
|
||||
|
||||
|
||||
@dataclass(kw_only=True)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
from dataclasses import dataclass
|
||||
|
||||
from control import Control
|
||||
from haco.control import Control
|
||||
|
||||
|
||||
@dataclass(kw_only=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue