mirror of
https://github.com/fmtr/haco.git
synced 2026-10-26 19:01:51 -04:00
Remove redundant/relative imports
This commit is contained in:
parent
caa9920b54
commit
cdbfacad2b
2 changed files with 1 additions and 12 deletions
|
|
@ -1,6 +1,4 @@
|
|||
from haco.climate import Climate
|
||||
from haco.debugging import get_memory_sensor
|
||||
from haco.device import Device
|
||||
from haco.number import Number
|
||||
from haco.pulldown import Pulldown
|
||||
from haco.sensor import Sensor
|
||||
|
|
@ -152,9 +150,6 @@ def tasmota(value: str):
|
|||
text = Text('Dev Text Test Control')
|
||||
password = Password('Dev Password Test Control')
|
||||
|
||||
from haco.configs.development import text, password
|
||||
from haco.tasmota import Tasmota
|
||||
|
||||
|
||||
@text.callback()
|
||||
def ha(value: str) -> Tasmota[str, 'tasmota.cmd("var11 "+str(value))']:
|
||||
|
|
@ -174,9 +169,3 @@ def ha(value: str) -> Tasmota[str, 'tasmota.cmd("var14 "+str(value))']:
|
|||
@password.callback('var14#state')
|
||||
def tasmota(value: str):
|
||||
return value
|
||||
|
||||
|
||||
dev_dehum = Device(
|
||||
mac='8C:4B:14:85:8D:98',
|
||||
controls=[number, climate, text, password, sensor, pulldown, get_memory_sensor()]
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import schema
|
||||
from haco import schema
|
||||
from haco.control import Control
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue