Skip to content

Commit

Permalink
Remove redundant/relative imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ejohb committed Aug 29, 2023
1 parent caa9920 commit cdbfaca
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
11 changes: 0 additions & 11 deletions haco/configs/development.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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))']:
Expand All @@ -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()]
)
2 changes: 1 addition & 1 deletion haco/sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import schema
from haco import schema
from haco.control import Control


Expand Down

0 comments on commit cdbfaca

Please sign in to comment.