Small code style improvements to Insteon integration (#33662)

* Small code style improvements to Insteon integration

* Update homeassistant/components/insteon/utils.py

Co-Authored-By: Martin Hjelmare <marhje52@gmail.com>

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
Franck Nijhof 2020-04-05 02:58:10 +02:00 committed by GitHub
parent b00b8ea0c1
commit 61b4d1e8de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 21 deletions

View file

@ -30,7 +30,7 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
_LOGGER.debug(
"Adding device %s entity %s to Binary Sensor platform",
device.address.hex,
device.states[state_key].name,
name,
)
new_entity = InsteonBinarySensor(device, state_key)