fix unavailable entities

This commit is contained in:
Torsten 2023-01-16 22:13:31 +02:00
parent b3a476fc89
commit c4b03a130b

View File

@ -7,6 +7,7 @@ class Entity < ApplicationRecord
def value
@data = Entity.response("/" + ha_id)
return "" if @data.is_a? Array
@data["state"]
end