diff --git a/custom_components/trmnl_sensor_push/__init__.py b/custom_components/trmnl_sensor_push/__init__.py index 485d08b..87e7434 100644 --- a/custom_components/trmnl_sensor_push/__init__.py +++ b/custom_components/trmnl_sensor_push/__init__.py @@ -25,12 +25,7 @@ def create_entity_payload(state) -> dict: """Create the payload for a single entity.""" payload = { "name": state.attributes.get('friendly_name', state.entity_id), - "value": state.state, - "device_class": state.attributes.get('device_class', None), - "unit_of_measurement": state.attributes.get('unit_of_measurement', None), - "icon": state.attributes.get('icon', None), - "friendly_name": state.attributes.get('friendly_name', state.entity_id), - "attributes": state.attributes + "value": state.state } _LOGGER.debug("TRMNL: Created payload for %s: %s", state.entity_id, payload) return payload @@ -135,4 +130,4 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: except Exception as err: _LOGGER.error("TRMNL: Error unloading integration: %s", err) return False - return True \ No newline at end of file + return True