13 lines
334 B
Python
13 lines
334 B
Python
from flickerstrip_py import Flickerstrip
|
|
|
|
from homeassistant.helpers.entity import Entity
|
|
|
|
|
|
class FlickerstripEntity(Entity):
|
|
"""Base flickerstrip entity."""
|
|
|
|
def __init__(self, host: str, port: int = 80):
|
|
self.host: str = host
|
|
self.port: int = port
|
|
self.strip: Flickerstrip = Flickerstrip(host, port)
|