Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: release 2024-03-03 #878

Merged
merged 2 commits into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ repos:
- hooks:
- id: black
repo: https://github.com/psf/black
rev: 24.1.0
rev: 24.2.0
- repo: https://github.com/pre-commit/mirrors-prettier
hooks:
- id: prettier
Expand Down
1 change: 1 addition & 0 deletions custom_components/tesla_custom/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
}
],
"documentation": "https://github.com/alandtse/tesla/wiki",
"import_executor": true,
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/alandtse/tesla/issues",
"loggers": ["teslajsonpy"],
Expand Down
4 changes: 2 additions & 2 deletions custom_components/tesla_custom/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,9 @@ class TeslaCarChargerPower(TeslaCarEntity, SensorEntity):
_attr_native_unit_of_measurement = UnitOfPower.KILO_WATT

@property
def native_value(self) -> int:
def native_value(self) -> float:
"""Return the charger power."""
return self._car.charger_power
return float(self._car.charger_power)

@property
def extra_state_attributes(self):
Expand Down
Loading