diff --git a/homeassistant/components/picnic/const.py b/homeassistant/components/picnic/const.py index 7e983321f3d618..2eb7a6cd617e45 100644 --- a/homeassistant/components/picnic/const.py +++ b/homeassistant/components/picnic/const.py @@ -23,7 +23,6 @@ NEXT_DELIVERY_DATA = "next_delivery_data" LAST_ORDER_DATA = "last_order_data" -SENSOR_CART_ITEMS_COUNT = "cart_items_count" SENSOR_CART_TOTAL_PRICE = "cart_total_price" SENSOR_SELECTED_SLOT_START = "selected_slot_start" SENSOR_SELECTED_SLOT_END = "selected_slot_end" diff --git a/homeassistant/components/picnic/sensor.py b/homeassistant/components/picnic/sensor.py index e7a69e0bf0294e..d6e2f2b0eac374 100644 --- a/homeassistant/components/picnic/sensor.py +++ b/homeassistant/components/picnic/sensor.py @@ -27,7 +27,6 @@ ATTRIBUTION, CONF_COORDINATOR, DOMAIN, - SENSOR_CART_ITEMS_COUNT, SENSOR_CART_TOTAL_PRICE, SENSOR_LAST_ORDER_DELIVERY_TIME, SENSOR_LAST_ORDER_MAX_ORDER_TIME, @@ -64,13 +63,6 @@ class PicnicSensorEntityDescription(SensorEntityDescription, PicnicRequiredKeysM SENSOR_TYPES: tuple[PicnicSensorEntityDescription, ...] = ( - PicnicSensorEntityDescription( - key=SENSOR_CART_ITEMS_COUNT, - translation_key=SENSOR_CART_ITEMS_COUNT, - icon="mdi:format-list-numbered", - data_type="cart_data", - value_fn=lambda cart: cart.get("total_count", 0), - ), PicnicSensorEntityDescription( key=SENSOR_CART_TOTAL_PRICE, translation_key=SENSOR_CART_TOTAL_PRICE, diff --git a/homeassistant/components/picnic/strings.json b/homeassistant/components/picnic/strings.json index 9a6b7162fd57bb..277e5338223408 100644 --- a/homeassistant/components/picnic/strings.json +++ b/homeassistant/components/picnic/strings.json @@ -27,9 +27,6 @@ } }, "sensor": { - "cart_items_count": { - "name": "Cart items count" - }, "cart_total_price": { "name": "Cart total price" }, diff --git a/tests/components/picnic/test_sensor.py b/tests/components/picnic/test_sensor.py index cae10320fb9be4..689eec03ea6dec 100644 --- a/tests/components/picnic/test_sensor.py +++ b/tests/components/picnic/test_sensor.py @@ -213,7 +213,6 @@ async def test_sensors_setup(self): """Test the default sensor setup behaviour.""" await self._setup_platform(use_default_responses=True) - self._assert_sensor("sensor.mock_title_cart_items_count", "10") self._assert_sensor( "sensor.mock_title_cart_total_price", "25.35", @@ -289,7 +288,6 @@ async def test_sensors_setup_disabled_by_default(self): """Test that some sensors are disabled by default.""" await self._setup_platform(use_default_responses=True, enable_all_sensors=False) - self._assert_sensor("sensor.mock_title_cart_items_count", disabled=True) self._assert_sensor( "sensor.mock_title_start_of_last_order_s_slot", disabled=True )