Skip to content

Commit

Permalink
fix: transtation docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
hudsonbrendon committed Sep 10, 2023
1 parent 51ce3f8 commit e267029
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter"
},
"python.formatting.provider": "none"
}
2 changes: 1 addition & 1 deletion custom_components/drivvo/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/hudsonbrendon/sensor.drivvo/issues",
"requirements": [],
"version": "1.0.7"
"version": "1.0.9"
}
8 changes: 4 additions & 4 deletions custom_components/drivvo/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def __init__(self, hass, email, password, data, interval):
name=data.identification,
manufacturer="Drivvo",
model=self._model,
sw_version="1.0.8",
sw_version="1.0.9",
)
self.data = data

Expand All @@ -140,12 +140,12 @@ def icon(self):

@property
def state(self):
"""Retorna o número de abastecimentos até então."""
"""Returns the number of supplies so far."""
return self.data.refuelling_total

@property
def extra_state_attributes(self):
"""Atributos."""
"""Attributes."""

return {
"veiculo": self._model,
Expand All @@ -169,7 +169,7 @@ def extra_state_attributes(self):
}

async def async_update(self):
"""Atualiza os dados fazendo requisição na API."""
"""Updates the data by making a request to the API."""
self.data = await get_data_vehicle(
hass=self.hass,
user=self._email,
Expand Down

0 comments on commit e267029

Please sign in to comment.