revert update of input_boolean

pull/3675/head
Daniel Høyer Iversen 2016-10-03 22:05:06 +02:00 committed by GitHub
parent 4a5a1e1e96
commit c3ea04f2dd
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ from homeassistant.const import (
ATTR_ENTITY_ID, CONF_ICON, CONF_NAME, SERVICE_TURN_OFF, SERVICE_TURN_ON,
SERVICE_TOGGLE, STATE_ON)
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.entity import ToggleEntity, generate_entity_id
from homeassistant.helpers.entity import ToggleEntity
from homeassistant.helpers.entity_component import EntityComponent
DOMAIN = 'input_boolean'
@ -103,7 +103,7 @@ class InputBoolean(ToggleEntity):
def __init__(self, object_id, name, state, icon):
"""Initialize a boolean input."""
self.entity_id = generate_entity_id(ENTITY_ID_FORMAT, object_id)
self.entity_id = ENTITY_ID_FORMAT.format(object_id)
self._name = name
self._state = state
self._icon = icon