-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the Bug
Upgraded to 1.4.6 via HACS and am seeing the following error in the log:
Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:680
integration: Sensor (documentation, issues)
First occurred: 2:29:49 AM (2 occurrences)
Last logged: 2:29:49 AM
Error adding entity sensor.home_uber_eats_driver_latitude for domain sensor with platform uber_eats
Error adding entity sensor.home_uber_eats_driver_longitude for domain sensor with platform uber_eats
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 689, in state
numerical_value = float(value) # type:ignore[arg-type]
ValueError: could not convert string to float: 'No active order'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 680, in _async_add_entities
await self._async_add_entity(
entity, False, entity_registry, config_subentry_id
)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 998, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1395, in add_to_platform_finish
self.async_write_ha_state()
~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1018, in async_write_ha_state
self._async_write_ha_state()
~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1163, in _async_write_ha_state
) = self.__async_calculate_state()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1070, in __async_calculate_state
state = self._stringify_state(available)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1024, in _stringify_state
if (state := self.state) is None:
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 691, in state
raise ValueError(
...<5 lines>...
) from err
ValueError: Sensor sensor.home_uber_eats_driver_latitude has device class 'None', state class 'None' unit '°' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: 'No active order' (<class 'str'>)
Steps to Reproduce
- Upgrade to 1.4.6
- Restart Home Assistant
Expected Behavior
No errors
Home Assistant Version
2026.2.2
Integration Version
1.4.6
Installation Method
HACS
Problem Area
Sensors/Entities
Relevant Logs
Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:680
integration: Sensor (documentation, issues)
First occurred: 2:29:49 AM (2 occurrences)
Last logged: 2:29:49 AM
Error adding entity sensor.home_uber_eats_driver_latitude for domain sensor with platform uber_eats
Error adding entity sensor.home_uber_eats_driver_longitude for domain sensor with platform uber_eats
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 689, in state
numerical_value = float(value) # type:ignore[arg-type]
ValueError: could not convert string to float: 'No active order'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 680, in _async_add_entities
await self._async_add_entity(
entity, False, entity_registry, config_subentry_id
)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 998, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1395, in add_to_platform_finish
self.async_write_ha_state()
~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1018, in async_write_ha_state
self._async_write_ha_state()
~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1163, in _async_write_ha_state
) = self.__async_calculate_state()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1070, in __async_calculate_state
state = self._stringify_state(available)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1024, in _stringify_state
if (state := self.state) is None:
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 691, in state
raise ValueError(
...<5 lines>...
) from err
ValueError: Sensor sensor.home_uber_eats_driver_latitude has device class 'None', state class 'None' unit '°' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: 'No active order' (<class 'str'>)Screenshots
No response
Additional Context
No response
Checklist
- I have searched existing issues to ensure this bug hasn't been reported
- I am using the latest version of the integration
- I have restarted Home Assistant after updating
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working