Skip to content

Commit

Permalink
Revert back to ATTR_DEVICE_ID
Browse files Browse the repository at this point in the history
  • Loading branch information
zanglang committed May 8, 2019
1 parent 97c4f4d commit b23385f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions homeassistant/components/sesame/lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
import homeassistant.helpers.config_validation as cv
from homeassistant.components.lock import LockDevice, PLATFORM_SCHEMA
from homeassistant.const import (
ATTR_ID, ATTR_BATTERY_LEVEL, CONF_API_KEY,
ATTR_BATTERY_LEVEL, CONF_API_KEY,
STATE_LOCKED, STATE_UNLOCKED)
from homeassistant.helpers.typing import ConfigType

ATTR_DEVICE_ID = 'device_id'
ATTR_SERIAL_NO = 'serial'

PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
Expand Down Expand Up @@ -86,7 +87,7 @@ def update(self) -> None:
def device_state_attributes(self) -> dict:
"""Return the state attributes."""
attributes = {}
attributes[ATTR_ID] = self._device_id
attributes[ATTR_DEVICE_ID] = self._device_id
attributes[ATTR_SERIAL_NO] = self._serial
attributes[ATTR_BATTERY_LEVEL] = self._battery
return attributes

0 comments on commit b23385f

Please sign in to comment.