Make general code quality improvements in the Broadlink integration (#58848)

* Create DEVICE_TYPES constant

* Rename _auth_fetch_firmware() to _get_firmware_version()

* Rename dev_type to device_type

* Use SOURCE_REAUTH from config_entries namespace

* Fix unidiomatic imports
This commit is contained in:
Felipe Martins Diel 2021-10-31 20:01:11 -03:00 committed by GitHub
parent adfebaf510
commit 3f61ff4f96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 20 additions and 22 deletions

View file

@ -3,7 +3,7 @@ from base64 import b64decode
from homeassistant import config_entries
from homeassistant.const import CONF_HOST
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers import config_validation as cv
from .const import DOMAIN