From 1de4971d5498d1d5fd15ce5f8f057eb8a39871ce Mon Sep 17 00:00:00 2001
From: brucemiranda <brucemiranda@gmail.com>
Date: Tue, 25 May 2021 17:25:12 +0100
Subject: [PATCH] Add ebusd boiler StateNumber and Modulation Percentage
 sensors (#49732)

* Added Boiler StateNumber and ModulationPercentage

* Update const.py

* Clean whitespace

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
---
 homeassistant/components/ebusd/const.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/homeassistant/components/ebusd/const.py b/homeassistant/components/ebusd/const.py
index c15cf8d4eaf..c4ff789202d 100644
--- a/homeassistant/components/ebusd/const.py
+++ b/homeassistant/components/ebusd/const.py
@@ -1,6 +1,7 @@
 """Constants for ebus component."""
 from homeassistant.const import (
     ENERGY_KILO_WATT_HOUR,
+    PERCENTAGE,
     PRESSURE_BAR,
     TEMP_CELSIUS,
     TIME_SECONDS,
@@ -136,5 +137,7 @@ SENSOR_TYPES = {
         ],
         "RoomThermostat": ["DCRoomthermostat", None, "mdi:toggle-switch", 2],
         "HeatingPartLoad": ["PartloadHcKW", ENERGY_KILO_WATT_HOUR, "mdi:flash", 0],
+        "StateNumber": ["StateNumber", None, "mdi:fire", 3],
+        "ModulationPercentage": ["ModulationTempDesired", PERCENTAGE, "mdi:percent", 0],
     },
 }