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
This commit is contained in:
Maciej Bieniek authored and Andrew Sayre committed 2020-01-06 11:06:16 -06:00
1 parent 8257ea30c0
commit 21029b1d7b
14 files changed
+595

No files matched your search

@@ -0,0 +1,23 @@
{
"config": {
"title": "Brother Printer",
"step": {
"user": {
"title": "Brother Printer",
"description": "Set up Brother printer integration. If you have problems with configuration go to: https://www.home-assistant.io/integrations/brother",
"data": {
"host": "Printer hostname or IP address",
"type": "Type of the printer"
}
}
},
"error": {
"wrong_host": "Invalid hostname or IP address.",
"connection_error": "Connection error.",
"snmp_error": "SNMP server turned off or printer not supported."
},
"abort": {
"unsupported_model": "This printer model is not supported."
}
}
}