Skip to content

Commit

Permalink
Corrige componente para funciona na nova versão do Home Assistant
Browse files Browse the repository at this point in the history
  • Loading branch information
hudsonbrendon committed Apr 11, 2022
1 parent 14e6e6e commit 2109c58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/*

RUN python -m pip install --upgrade colorlog black pylint
RUN python -m pip install --upgrade git+git://github.com/home-assistant/home-assistant.git@dev
RUN python -m pip install --upgrade homeassistant
RUN cd && mkdir -p /config/custom_components
RUN cd && mkdir -p /www/custom-lovelace

Expand Down
2 changes: 1 addition & 1 deletion custom_components/clarotv/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def state(self):
return now.strftime("%d-%m-%Y %H:%M:%S")

@property
def device_state_attributes(self):
def extra_state_attributes(self):
"""Attributes."""
return {"data": self._programations}

Expand Down

0 comments on commit 2109c58

Please sign in to comment.