Build
* build(deps): bump aiohttp from 3.8.3 to 3.8.5 (415)
Bumps [aiohttp](https://github.com/aio-libs/aiohttp) from 3.8.3 to 3.8.5.
- [Release notes](https://github.com/aio-libs/aiohttp/releases)
- [Changelog](https://github.com/aio-libs/aiohttp/blob/v3.8.5/CHANGES.rst)
- [Commits](https://github.com/aio-libs/aiohttp/compare/v3.8.3...v3.8.5)
---
updated-dependencies:
- dependency-name: aiohttp
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <supportgithub.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]users.noreply.github.com> ([`5300af9`](https://github.com/zabuldon/teslajsonpy/commit/5300af99e739a0d6fe1593930ab67c51671b6748))
* build(deps): bump aiohttp from 3.8.3 to 3.8.5 in /docs (414)
Bumps [aiohttp](https://github.com/aio-libs/aiohttp) from 3.8.3 to 3.8.5.
- [Release notes](https://github.com/aio-libs/aiohttp/releases)
- [Changelog](https://github.com/aio-libs/aiohttp/blob/v3.8.5/CHANGES.rst)
- [Commits](https://github.com/aio-libs/aiohttp/compare/v3.8.3...v3.8.5)
---
updated-dependencies:
- dependency-name: aiohttp
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <supportgithub.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]users.noreply.github.com> ([`4aeb35a`](https://github.com/zabuldon/teslajsonpy/commit/4aeb35aa62124c562d67bd7187673b8348afdcf4))
* build(deps): bump pygments from 2.13.0 to 2.15.0 (413)
Bumps [pygments](https://github.com/pygments/pygments) from 2.13.0 to 2.15.0.
- [Release notes](https://github.com/pygments/pygments/releases)
- [Changelog](https://github.com/pygments/pygments/blob/master/CHANGES)
- [Commits](https://github.com/pygments/pygments/compare/2.13.0...2.15.0)
---
updated-dependencies:
- dependency-name: pygments
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <supportgithub.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]users.noreply.github.com> ([`d86130d`](https://github.com/zabuldon/teslajsonpy/commit/d86130d774ed21ee5a2ff0de18c15318cff33de9))
* build(deps): bump pygments from 2.13.0 to 2.15.0 in /docs (412)
Bumps [pygments](https://github.com/pygments/pygments) from 2.13.0 to 2.15.0.
- [Release notes](https://github.com/pygments/pygments/releases)
- [Changelog](https://github.com/pygments/pygments/blob/master/CHANGES)
- [Commits](https://github.com/pygments/pygments/compare/2.13.0...2.15.0)
---
updated-dependencies:
- dependency-name: pygments
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <supportgithub.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]users.noreply.github.com> ([`132b032`](https://github.com/zabuldon/teslajsonpy/commit/132b0328fcd723bd11d9e4ab2d738ca8a2f07f54))
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 &34;/usr/src/homeassistant/homeassistant/helpers/entity_platform.py&34;, line 370, in _async_setup_platform
await asyncio.gather(*pending)
File &34;/usr/src/homeassistant/homeassistant/helpers/entity_platform.py&34;, line 510, in async_add_entities
await asyncio.gather(*tasks)
File &34;/usr/src/homeassistant/homeassistant/helpers/entity_platform.py&34;, line 670, in _async_add_entity
original_icon=entity.icon,
^^^^^^^^^^^
File &34;/config/custom_components/tesla_custom/number.py&34;, line 142, in icon
return icon_for_battery_level(battery_level=self.native_value)
^^^^^^^^^^^^^^^^^
File &34;/config/custom_components/tesla_custom/number.py&34;, line 122, in native_value
return self._energysite.backup_reserve_percent
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File &34;/usr/local/lib/python3.11/site-packages/teslajsonpy/energy.py&34;, line 137, in backup_reserve_percent
return self._battery_data.get(&34;backup&34;).get(&34;backup_reserve_percent&34;)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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))