mirror of
https://github.com/elisspace/core.git
synced 2026-10-02 15:30:00 +00:00
Use entity_id attribute
This commit is contained in:
@@ -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 = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user