Releases: zabuldon/teslajsonpy
v3.9.3
v3.9.2
v3.9.1
v3.9.1 (2023-07-25)
Build
- build(deps): bump aiohttp from 3.8.3 to 3.8.5 (#415)
Bumps aiohttp from 3.8.3 to 3.8.5.
updated-dependencies:
- dependency-name: aiohttp
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (5300af9)
- build(deps): bump aiohttp from 3.8.3 to 3.8.5 in /docs (#414)
Bumps aiohttp from 3.8.3 to 3.8.5.
updated-dependencies:
- dependency-name: aiohttp
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (4aeb35a)
- build(deps): bump pygments from 2.13.0 to 2.15.0 (#413)
Bumps pygments from 2.13.0 to 2.15.0.
updated-dependencies:
- dependency-name: pygments
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (d86130d)
- build(deps): bump pygments from 2.13.0 to 2.15.0 in /docs (#412)
Bumps pygments from 2.13.0 to 2.15.0.
updated-dependencies:
- dependency-name: pygments
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (132b032)
Fix
-
fix: missing defaults in energysite (#417)
-
Fix missing defaults in energysite
fixes
2023-07-24 12:56:40.749 ERROR (MainThread) [homeassistant.components.number] Error while setting up tesla_custom platform for number
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 370, in _async_setup_platform
await asyncio.gather(*pending)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 670, in _async_add_entity
original_icon=entity.icon,
^^^^^^^^^^^
File "/config/custom_components/tesla_custom/number.py", line 142, in icon
return icon_for_battery_level(battery_level=self.native_value)
^^^^^^^^^^^^^^^^^
File "/config/custom_components/tesla_custom/number.py", line 122, in native_value
return self._energysite.backup_reserve_percent
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/teslajsonpy/energy.py", line 137, in backup_reserve_percent
return self._battery_data.get("backup").get("backup_reserve_percent")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: NoneType object has no attribute get```
* fix: empty ([`47b0dc4`](https://github.com/zabuldon/teslajsonpy/commit/47b0dc45c1ec30eda9a1797e657903931095ec32))
* fix: Avoid retries when car is unavailable with wake_if_asleep=False (#416)
Curerntly we would retry on 408s even if wake_if_asleep was False which
slowed down startup a lot for cars we did not wake ([`60ede4e`](https://github.com/zabuldon/teslajsonpy/commit/60ede4eec0d9440ed17e8e30f8d707795f2d5cac))
## Performance
* perf(httpx): avoid bytes to text conversion overhead
orjson can decode bytes directly without the need to convert
it to text first ([`ed3ebe1`](https://github.com/zabuldon/teslajsonpy/commit/ed3ebe1c994d8289cfbefada964be0f1d7877345))
## Unknown
* Merge pull request #418 from zabuldon/dev
chore: release 2023-07-24 ([`2dc54e9`](https://github.com/zabuldon/teslajsonpy/commit/2dc54e9f870749bd9e79687e33270a04cb6e7293))