Maciej Bieniek
0daa5b55b5
Add missing type for CoordinatorEntity in Brother sensor platform ( #80197 )
...
Add missing type for CoordinatorEntity
2022-10-12 21:02:25 +02:00
Maciej Bieniek
8176400cfd
Migrate attributes to separate sensors in Brother integration ( #79932 )
...
Migrate attributes to sensors
2022-10-09 14:48:01 +02:00
Maciej Bieniek
1e13433d4f
Rework Brother sensor platform ( #79864 )
...
* Rework BrotherSensorEntityDescription
* Rework state attributes
* Cleaning
* Add _handle_coordinator_update()
* Suggested change
* Re-add consts
2022-10-08 22:25:58 +03:00
Maciej Bieniek
721fddc016
Bump `brother` backend library ( #78072 )
...
* Update integration for a new library
* Update tests
* Add unique_id migration
* Update integration and tests for lib 2.0.0
* Improve test coverage
* Improve typing in tests
2022-09-18 23:28:17 +02:00
Maciej Bieniek
7283d1b7fb
Migrate Brother to new entity naming style ( #75000 )
2022-07-12 15:35:12 +02:00
epenet
4818872591
Use new enums in brother ( #61327 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-09 09:17:50 +01:00
Maciej Bieniek
67f9118cbf
Use native datetime value in Brother uptime sensor ( #60363 )
2021-12-03 09:58:27 +01:00
Maciej Bieniek
970df6d067
Move sensor stuff to the sensor platform in Brother integration ( #60306 )
2021-11-24 22:50:35 +01:00
epenet
f6ffae9e10
Use DeviceInfo on components with configuration_url ( #58223 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-10-22 17:40:13 +02:00
Maciej Bieniek
38688e5263
Add configuration URL to Brother ( #57726 )
2021-10-15 10:08:00 +02:00
Erik Montnemery
4e07ab1b32
Move temperature conversions to sensor base class (1/8) ( #48261 )
...
* Move temperature conversions to entity base class (1/8)
* Update integrations a-c
* Leave old temperature conversion until all integrations are migrated
* tweak
* Use contextlib.suppress
* Remove the MeasurableUnitEntity mixin
* Address comments, add tests
* Fix f-string
* Drop deprecation warning from base entity class
* Update with _attr-shorthand
* Fix rebase mistakes
* Fix additional rebase mistakes
* Only report temperature conversion once
* Fix additional rebase mistakes
* Format homeassistant/components/bbox/sensor.py
* Fix check for overidden _attr_state
* Remove test workarounds from implementation
* Remove useless None-check
* Tweaks
* Migrate new sensors a-c
* Update climacell
* Push deprecation of temperature conversion forward
* Override __repr__ in SensorEntity
* Include native_value in SensorEntity attributes
* Pylint
* Black
* Black
* Fix rebase mistakes
* black
* Fix rebase mistakes
* Revert changes in august/sensor.py
* Revert handling of unit converted restored state
* Apply code review suggestion
* Fix arlo test
2021-08-11 10:45:05 +02:00
Maciej Bieniek
ea9d312b45
Use SensorEntityDescription in Brother integration ( #53558 )
2021-07-27 17:26:47 +02:00
Marc Mueller
7768f53281
Use NamedTuple - brother ( #53330 )
2021-07-22 10:36:29 +02:00
Maciej Bieniek
343e0e0933
Use attrs instead of properties in Brother ( #51742 )
...
* Use attrs instead of properties
* Use get() for device_class
2021-06-11 13:36:17 +02:00
Maciej Bieniek
0404acddf9
Add support for state_class ( #51512 )
2021-06-10 21:31:21 +03:00
Maciej Bieniek
953e6ebe62
Use constants with TypedDict ( #50880 )
2021-05-20 10:36:23 +01:00
Maciej Bieniek
6e98b020ac
Improve type annotations in Brother integration ( #49989 )
2021-05-03 15:10:20 +02:00
Ville Skyttä
59f32f7c9c
Make device info a TypedDict ( #49670 )
2021-04-30 23:21:39 +02:00
Maciej Bieniek
3210c086ef
Improve type annotations for the Brother integration ( #49771 )
2021-04-29 16:59:31 +02:00
Maciej Bieniek
e75233b279
Bump `brother` library to version 1.0.0 ( #49547 )
...
* Bump brother library
* Improve attributes generation
2021-04-22 13:20:14 +02:00
Erik Montnemery
9e9ba53f0e
Move SensorEntity last in the inheritance tree ( #48230 )
2021-03-22 20:05:13 +01:00
Erik Montnemery
e0cd7072d6
Migrate integrations a-c to extend SensorEntity ( #48210 )
2021-03-22 12:37:16 +01:00
Erik Montnemery
6c084ae6ce
Update integrations a-e to override extra_state_attributes() ( #47756 )
2021-03-11 16:51:03 +01:00
Maciej Bieniek
061d9c5293
Bump brother library to version 0.2.1 ( #46421 )
2021-02-12 18:11:35 +01:00
Maciej Bieniek
a4ae2d210e
Bump Brother library to version 0.1.20 ( #43628 )
2020-11-28 10:17:16 -10:00
Maciej Bieniek
885e393df9
Make Brother uptime sensor disabled by default ( #43478 )
2020-11-22 11:42:16 -10:00
Philip Allgaier
625bbe6238
Cleanup unused loggers (components A-M) ( #41600 )
2020-10-12 16:59:05 +02:00
springstan
29c1f873eb
Update brother to use CoordinatorEntity ( #39418 )
2020-08-30 09:02:12 -05:00
Maciej Bieniek
2568932c1c
Bump brother library to version 0.1.15 ( #39226 )
2020-08-26 10:55:57 +02:00
Maciej Bieniek
9de57382cd
Switch brother to async_on_remove ( #34478 )
2020-04-20 14:00:46 -07:00
Maciej Bieniek
3461f3a1ed
Tests improvements to the Brother integration ( #32982 )
...
* Add tests for states of the sensors
* Revert async_update method
* Tests improvement
* Fix icon name
* Tests improvement
* Simplify tests
* Test improvement
* Patch the library instead of the coordinator
* Suggested change
* Remove return_value
2020-03-20 10:21:43 +01:00
Maciej Bieniek
c1ceab09e5
Migrate Brother to use DataUpdateCoordinator ( #32800 )
...
* Use DataCoordinator to update Brother data
* Simplify error text
* Improve tests
* Rename DEFAULT_SCAN_INTERVAL to SCAN_INTERVAL
* Add entity_registry_enabled_default property
* Add quality_scale to manifest.json file
* Remove misleading coordinator.data.data
2020-03-17 22:21:56 -05:00
Maciej Bieniek
96a0aa3d2b
Add new sensors to Brother integration ( #32466 )
...
* Add new sensors
* Suggested change
2020-03-09 11:54:43 -07:00
Maciej Bieniek
21029b1d7b
Add Brother Printer integration ( #30359 )
...
* Init entities as unavailable when offline
* Initial commit
* Fix CODEOWNERS
* CODEOWNERS
* Run script.hassfest
* Add initial test
* Bump library
* More tests
* Tests
* Add new sensors and fix KeyError
* Fix unique_id and device_info
* Fix check for configured device
* More tests
* Bump library version
* Add uptime sensor
* Use config entry unique ID
* Run python3 -m script.gen_requirements_all
* Fix pylint error
* Remove pysnmp dependency
* Raise ConfigEntryNotReady when device offline at HA start
* Remove period from logging message
* Generator simplification
* Change raise_on_progress
* Rename data to printer
* Move update state to async_update
* Remove unused _unit_of_measurement
* Remove update of device_info
* Suggested change for tests
* Remove unnecessary argument
* Suggested change
2020-01-06 11:06:16 -06:00