# Changelog

<!--next-version-placeholder-->

## v2.18.1 (2024-06-25)

### Fix

* Fix license classifier ([#61](https://github.com/Bluetooth-Devices/sensor-state-data/issues/61)) ([`135d7ff`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/135d7ff3e2cf0dece8cf430027d0c46a79104360))

## v2.18.0 (2023-10-20)

### Feature

* Allow name to be None ([#59](https://github.com/Bluetooth-Devices/sensor-state-data/issues/59)) ([`d321c31`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/d321c3196514a5a518340fe27e86b02b48bd87e3))

## v2.17.1 (2023-07-19)

### Fix

* Remove unwanted scale sensors ([#57](https://github.com/Bluetooth-Devices/sensor-state-data/issues/57)) ([`9ed2d0b`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/9ed2d0b586d4bcc93574d9de0cf5e0974509760e))

## v2.17.0 (2023-07-17)

### Feature

* Add sensors for scales ([#56](https://github.com/Bluetooth-Devices/sensor-state-data/issues/56)) ([`8c3160e`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/8c3160e89a7f49a0b96b010613784936c667d476))

## v2.16.1 (2023-07-06)

### Fix

* Ensure events are only kept for a single update cycle ([#53](https://github.com/Bluetooth-Devices/sensor-state-data/issues/53)) ([`304a844`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/304a844009204a524c0ad29821765e43288b44ca))

## v2.16.0 (2023-06-13)
### Feature
* Add sensor description for pressure in hPa ([#52](https://github.com/Bluetooth-Devices/sensor-state-data/issues/52)) ([`8e06dc8`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/8e06dc850830d7bc83a1295646788fb863edf8a8))

## v2.15.1 (2023-05-14)
### Fix
* Unit of gyroscope ([#49](https://github.com/Bluetooth-Devices/sensor-state-data/issues/49)) ([`6a61e9a`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/6a61e9a3d33b9a2acdd65cd7bb293cf31486b71f))

## v2.15.0 (2023-05-14)
### Feature
* Add acceleration gyroscope and timestamp sensors ([#48](https://github.com/Bluetooth-Devices/sensor-state-data/issues/48)) ([`e882f8b`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/e882f8bb8e0c9353d00d947e8774a5ae53c99687))

## v2.14.0 (2023-03-11)
### Feature
* Add water sensor ([#46](https://github.com/Bluetooth-Devices/sensor-state-data/issues/46)) ([`a90039e`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/a90039ec207a5aedf8455bd2afa4cedea7a311af))

## v2.13.0 (2022-12-17)
### Feature
* Add volume and packet_id sensor types ([#45](https://github.com/Bluetooth-Devices/sensor-state-data/issues/45)) ([`cda847e`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/cda847e2f94884b1018fa7eb1f3ce6feda0630c7))

## v2.12.1 (2022-11-13)
### Fix
* Wrong unit formaldehyde ([#44](https://github.com/Bluetooth-Devices/sensor-state-data/issues/44)) ([`0c8216f`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/0c8216f1ad9b7341a5c68669bd39fdd7500cf59f))

## v2.12.0 (2022-11-09)
### Feature
* Add conductivity and formaldehyde ([#43](https://github.com/Bluetooth-Devices/sensor-state-data/issues/43)) ([`53edc7a`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/53edc7a3b9508028d30e774eda3e65d16b89390b))

## v2.11.0 (2022-11-05)
### Feature
* Change time to duration and UV index ([#42](https://github.com/Bluetooth-Devices/sensor-state-data/issues/42)) ([`3e0a9f1`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/3e0a9f1f17aa68b9b6e122e197d223e12ce4dc22))

## v2.10.1 (2022-11-01)
### Fix
* Volt ampere should be ampere ([#41](https://github.com/Bluetooth-Devices/sensor-state-data/issues/41)) ([`703ba9d`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/703ba9d7def8d482df23619d29a66ea260db9813))

## v2.10.0 (2022-11-01)
### Feature
* New sensor types ([#40](https://github.com/Bluetooth-Devices/sensor-state-data/issues/40)) ([`6291208`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/6291208574409a9af48341cf6a43b5e2c5375ea7))

## v2.9.1 (2022-10-03)
### Fix
* Combine event data in str or dict ([#39](https://github.com/Bluetooth-Devices/sensor-state-data/issues/39)) ([`83e870f`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/83e870fc7127a7ac4032fdaa9b24727c1f3c8b08))

## v2.9.0 (2022-09-30)
### Feature
* Add support for events ([#38](https://github.com/Bluetooth-Devices/sensor-state-data/issues/38)) ([`bc15fe7`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/bc15fe7c2209f74430dd8211164152d21f36dc8e))

## v2.8.0 (2022-09-20)
### Feature
* Add kegtron sensor types ([#35](https://github.com/Bluetooth-Devices/sensor-state-data/issues/35)) ([`ee56f59`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/ee56f5945540ff11228b0e73f6994d0fbb776890))

## v2.7.0 (2022-09-06)
### Feature
* Add binary sensor device class ([#34](https://github.com/Bluetooth-Devices/sensor-state-data/issues/34)) ([`e34ca02`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/e34ca02fe3b37e95a1506759a5771cb43c96844f))

## v2.6.0 (2022-08-30)
### Feature
* Add specific gravity ([#33](https://github.com/Bluetooth-Devices/sensor-state-data/issues/33)) ([`9dacd26`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/9dacd26ed93ca545d17fd4d68b830dfc39f985f1))

## v2.5.0 (2022-08-28)
### Feature
* New device classes for new sensor types ([#31](https://github.com/Bluetooth-Devices/sensor-state-data/issues/31)) ([`35c47b2`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/35c47b2628d600e9fcabf35a38b8747abdd3181c))

## v2.4.0 (2022-08-28)
### Feature
* New sensor types ([#30](https://github.com/Bluetooth-Devices/sensor-state-data/issues/30)) ([`883235e`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/883235e2584d0e0cab66577c6a1acd863b3e9049))

## v2.3.2 (2022-08-24)
### Fix
* Unit of measurement voc ([#29](https://github.com/Bluetooth-Devices/sensor-state-data/issues/29)) ([`6e8a65e`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/6e8a65ecf08cb80c79a101892cf076de5974e283))

## v2.3.1 (2022-08-17)
### Fix
* Add pm units ([#28](https://github.com/Bluetooth-Devices/sensor-state-data/issues/28)) ([`3df28b5`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/3df28b5d5654632e91c78fc1fd7b09fc4ad1bfab))

## v2.3.0 (2022-08-17)
### Feature
* New base sensors ([#27](https://github.com/Bluetooth-Devices/sensor-state-data/issues/27)) ([`b7637bf`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/b7637bf725a12fdf0f358a52c94eda54b89303c6))

## v2.2.0 (2022-08-13)
### Feature
* Add set_precision convenience method ([#26](https://github.com/Bluetooth-Devices/sensor-state-data/issues/26)) ([`0937284`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/0937284a66bd9b2494817aa0402235cd1635d0f3))

## v2.1.2 (2022-08-11)
### Fix
* Export BinarySensorDescription ([#25](https://github.com/Bluetooth-Devices/sensor-state-data/issues/25)) ([`ecc7331`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/ecc73310db03f40b0e78d27a6ab0aa7f665f4f18))

## v2.1.1 (2022-08-11)
### Fix
* Add default factories for descriptions and values ([#24](https://github.com/Bluetooth-Devices/sensor-state-data/issues/24)) ([`519ac61`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/519ac61debf227ed36cd4855a3c77cc4c6db5432))

## v2.1.0 (2022-08-11)
### Feature
* Add support for binary sensors ([#23](https://github.com/Bluetooth-Devices/sensor-state-data/issues/23)) ([`902fb76`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/902fb7624d51627bd02e190f67d3234a17d4615a))

## v2.0.2 (2022-07-21)
### Fix
* Typing on native_unit_of_measurement ([#22](https://github.com/Bluetooth-Devices/sensor-state-data/issues/22)) ([`9815b3d`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/9815b3d679fb0f4416f4919c4246c45e7bed6806))

## v2.0.1 (2022-07-21)
### Fix
* Name and device type were not being set from refactor ([#21](https://github.com/Bluetooth-Devices/sensor-state-data/issues/21)) ([`2badc47`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/2badc471e96493437f7eea3bc8629894edd79217))

## v2.0.0 (2022-07-21)
### Feature
* Refactor to split name and units ([#20](https://github.com/Bluetooth-Devices/sensor-state-data/issues/20)) ([`e06c200`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/e06c20084ea106a2e9c6e506953c210bd90d0d10))

### Breaking
* Library has changed to have units ([`e06c200`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/e06c20084ea106a2e9c6e506953c210bd90d0d10))
* name is now moved to SensorValue ([`e06c200`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/e06c20084ea106a2e9c6e506953c210bd90d0d10))
* SensorDeviceInfo is now a dataclass ([`e06c200`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/e06c20084ea106a2e9c6e506953c210bd90d0d10))
* Units are now an str enum ([`e06c200`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/e06c20084ea106a2e9c6e506953c210bd90d0d10))

## v1.11.1 (2022-07-20)
### Fix
* Adjust naming to account for _s ([#19](https://github.com/Bluetooth-Devices/sensor-state-data/issues/19)) ([`ab600f5`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/ab600f51294510418b1502d72dfc84f88944c535))
* Do not prefix device name since hass will use entity_name ([#18](https://github.com/Bluetooth-Devices/sensor-state-data/issues/18)) ([`728be53`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/728be53bd3767b1f7c0a1f79ba37950cb7a13e2d))

## v1.11.0 (2022-07-19)
### Feature
* Rename _update_from_data to _start_update ([#17](https://github.com/Bluetooth-Devices/sensor-state-data/issues/17)) ([`3235362`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/3235362010113fd2a1903ede58fa39ce5854c38a))

## v1.10.0 (2022-07-19)
### Feature
* Export consts ([#16](https://github.com/Bluetooth-Devices/sensor-state-data/issues/16)) ([`177db6f`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/177db6f84519c2817bd891b8ad8ae2cb13414cd1))

## v1.9.0 (2022-07-19)
### Feature
* Allow setting the key for a predefined sensor ([#15](https://github.com/Bluetooth-Devices/sensor-state-data/issues/15)) ([`519b4e2`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/519b4e28d4d41f5ed24f326ae17507fc3321534a))

## v1.8.0 (2022-07-19)
### Feature
* Add the ability to set manufacturer/sw_version/hw_version ([#14](https://github.com/Bluetooth-Devices/sensor-state-data/issues/14)) ([`fef90fe`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/fef90fed29c1963ed00a75b9b6eaf78adcd34075))

## v1.7.0 (2022-07-19)
### Feature
* Add title property ([#13](https://github.com/Bluetooth-Devices/sensor-state-data/issues/13)) ([`7aa2690`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/7aa26901f77a8ad4109465c6232d8ae9ea99432c))

## v1.6.0 (2022-07-19)
### Feature
* Add primary_device_id property ([#12](https://github.com/Bluetooth-Devices/sensor-state-data/issues/12)) ([`6ee964b`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/6ee964b98b144a6f7c1e78444972e4759ee6223e))

## v1.5.1 (2022-07-19)
### Fix
* Fix __all__ ([#11](https://github.com/Bluetooth-Devices/sensor-state-data/issues/11)) ([`6f99e5f`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/6f99e5f6f3c3021ad320527e3024f5dbcb6186aa))

## v1.5.0 (2022-07-19)
### Feature
* Change model ([#10](https://github.com/Bluetooth-Devices/sensor-state-data/issues/10)) ([`a57ef64`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/a57ef64a255e6e40cdeea6332937a0f0891b1b3f))

## v1.4.1 (2022-07-19)
### Fix
* Sensor library should not be an enum ([#9](https://github.com/Bluetooth-Devices/sensor-state-data/issues/9)) ([`bed9997`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/bed9997e57f073e581c26329629ef0e05f8980c3))

## v1.4.0 (2022-07-19)
### Feature
* Update format ([#8](https://github.com/Bluetooth-Devices/sensor-state-data/issues/8)) ([`f8e4cdc`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/f8e4cdcacb415fd5c446e1ec263b19397c49b840))

## v1.3.1 (2022-07-18)
### Fix
* Refactor update_predefined_sensor ([#7](https://github.com/Bluetooth-Devices/sensor-state-data/issues/7)) ([`3e10e0e`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/3e10e0e20c274cb7f334ed8590d90d7fb10c622d))

## v1.3.0 (2022-07-18)
### Feature
* Add data ([#5](https://github.com/Bluetooth-Devices/sensor-state-data/issues/5)) ([`206f42d`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/206f42d5b14e80995e78ff5d658d3f0a3f0edc37))

### Fix
* Drop unused os ([#6](https://github.com/Bluetooth-Devices/sensor-state-data/issues/6)) ([`a5514fe`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/a5514fe2135659c026e8f629d96a2337bf49cfc1))

## v1.2.1 (2022-07-18)
### Fix
* Fix release process ([#4](https://github.com/Bluetooth-Devices/sensor-state-data/issues/4)) ([`fe660c3`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/fe660c3ea4a2b964f32e50801ddc4f4c8c85fdd4))

## v1.2.0 (2022-07-18)
### Feature
* Add library ([#3](https://github.com/Bluetooth-Devices/sensor-state-data/issues/3)) ([`c7d12fc`](https://github.com/Bluetooth-Devices/sensor-state-data/commit/c7d12fc63e9e253c3548951bd8c3c0dfc6620dde))
