# Changelog

## 2.7.0 (2026-04-07)

- Migrate to ruff
- Update workflow
- Convert tests to pytest
- Update dependencies

## 2.6.0 (2025-12-25)

- Add optional token functionality (thanks @geostag)
- Update dependencies

## 2.5.0 (2025-08-19)

- Add boot_id, energy_since_boot and time_since_boot to switch (thanks @slyoldfox)
- Expose `device_type` property on switches
- Fix: Tolerate missing 'type' in device info for legacy myStrom v1 switches, preventing KeyError during get_state (related to home-assistant/core#150264)

## 2.4.0 (2025-06-20)
- Migrate to pyproject
- Remove async_timeout
- Update formatting
- Add example for discovery

## 2.2.0 (2023-05-21)

- Add additional devices (incl. Switch Zero)
- Support for Switch Zero (thanks @hguetlin)
- Implement get_device_info (thanks @pail23)

## 2.1.0 (2022-11-26)

- Add dd consumed energy to switch (thanks @OneCyrus)

## 2.0.0 (2020-11-12)

- Update the CLI to work with the bulbs
- Add support for Motion/PIR sensors
- Add support for device discovery

## 1.1.3 (2020-06-08)

- Improve temperature handling (Switch HW v2)

## 1.1.2 (2020-04-12)

- Minor changes and fixes

## 1.1.1 (2020-04-12)

- Fix typo
- Minor fixes

## 1.1.0 (2020-04-10)

- Add new features for bulb
- Add new features for switch/plug

## 1.0.0 (2020-01-05)

- Full asynchronous now
- Move to aiohttp
- Update file header

## 0.5.0 (2019-02-27)

- Add support for temperature provided by Switch v2

## 0.4.4 (2018-06-07)

- Fix install_requires

## 0.4.3 (2018-06-07)

- Update README

## 0.4.2 (2018-03-27)

- Remove subprocess
- Add CLI
