2023-01-29 20:57:59 -05:00
|
|
|
from flickerstrip_py import Flickerstrip
|
2023-01-29 13:29:34 -05:00
|
|
|
|
2023-01-29 20:57:59 -05:00
|
|
|
from homeassistant.helpers.entity import Entity
|
2023-01-29 13:29:34 -05:00
|
|
|
|
|
|
|
|
2023-01-29 20:57:59 -05:00
|
|
|
class FlickerstripEntity(Entity):
|
|
|
|
"""Base flickerstrip entity."""
|
2023-01-29 13:29:34 -05:00
|
|
|
|
2023-01-29 20:57:59 -05:00
|
|
|
def __init__(self, host: str, port: int = 80):
|
|
|
|
self.host: str = host
|
|
|
|
self.port: int = port
|
|
|
|
self.strip: Flickerstrip = Flickerstrip(host, port)
|