fix unavailable entities
This commit is contained in:
parent
b3a476fc89
commit
c4b03a130b
@ -7,6 +7,7 @@ class Entity < ApplicationRecord
|
||||
|
||||
def value
|
||||
@data = Entity.response("/" + ha_id)
|
||||
return "" if @data.is_a? Array
|
||||
@data["state"]
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user