Use entity_id attribute

pull/1124/head
Philip Lundrigan 2016-02-06 20:33:43 -07:00
parent c580953bd8
commit bbdc196127
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ def setup(hass, config):
measurement = state.attributes.get('unit_of_measurement')
if measurement in (None, ''):
measurement = '{}.{}'.format(state.domain, state.object_id)
measurement = state.entity_id
json_body = [
{