Skip to content

Commit

Permalink
Corrige o componente para funcionar com a nova atualização do HA
Browse files Browse the repository at this point in the history
  • Loading branch information
hudsonbrendon committed Apr 8, 2022
1 parent 8006abe commit be991d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.8
FROM python:3.9

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
Expand All @@ -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


Expand Down
2 changes: 1 addition & 1 deletion custom_components/drivvo/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def total_amount_of_supplies(self):
return len(self._supplies)

@property
def device_state_attributes(self):
def extra_state_attributes(self):
"""Atributos."""
return {
"veiculo": self._model,
Expand Down

0 comments on commit be991d2

Please sign in to comment.