# Changelog

## [0.5.1]

- Use orjson for parsing json (https://github.com/jrester/tesla_powerwall/pull/59)
- Expose low level information for each battery pack (https://github.com/jrester/tesla_powerwall/pull/60)

## [0.5.0]

- BREAKING: The API is now async by default (by @bubonicbob)

## [0.4.0]

- fix logout (https://github.com/jrester/tesla_powerwall/issues/50)
- add meter details for site and solar (https://github.com/jrester/tesla_powerwall/issues/48)
- rework response handling to now parse the responses directly instead of relying on lazy evaluation
- extend pre-commit hooks
- move to pyproject.toml and remove old setup.py


## [0.3.19]

- add ability to take powerwall on/off grid. Thanks to @daniel-simpson (https://github.com/jrester/tesla_powerwall/pull/42)

## [0.3.18]

- updated examples
- add Metertype `busway` thanks to @maikukun (https://github.com/jrester/tesla_powerwall/pull/40)


## [0.3.17]

- move `py.typed` to correct location (https://github.com/jrester/tesla_powerwall/pull/35)

## [0.3.16]

- add `py.typed` file
- remove all the version pinning and drop support for powerwall version < 0.47.0
- add more type hints
- fix 'login_time' attribute in `LoginResponse`

## [0.3.15]

- fix version pin when there is a sha trailer (https://github.com/jrester/tesla_powerwall/pull/34)
- Add support for fetching the gateway_din (https://github.com/jrester/tesla_powerwall/pull/33)

## [0.3.14]

- revert changes from 0.3.11:
    - meters can now be accessed using the old, direct method (e.g. `meters.solar.instant_power`)
    - if a meter is not available a `MeterNotAvailableError` will be thrown
- move from `distutils.version` to `packaging.version`

## [0.3.13]

Implement `system_status` endpoint (https://github.com/jrester/tesla_powerwall/issues/31):
- add `Battery` response type, which is returned by `get_batteries`
- add `get_energy`, `get_capacity`, `get_batteries`

## [0.3.12]

- add MeterType `generator` (https://github.com/jrester/tesla_powerwall/issues/30)

## [0.3.11]

- meters of `MetersAggregates` can now only be accessed via `get_meter` (https://github.com/home-assistant/core/issues/56660)
