@@ -161,39 +161,34 @@ class PortainerEndpointSensorEntityDescription(SensorEntityDescription):
161161 translation_key = "containers_count" ,
162162 value_fn = lambda data : data .docker_info .containers ,
163163 entity_category = EntityCategory .DIAGNOSTIC ,
164- entity_registry_enabled_default = False ,
165164 state_class = SensorStateClass .MEASUREMENT ,
166165 ),
167166 PortainerEndpointSensorEntityDescription (
168167 key = "containers_running" ,
169168 translation_key = "containers_running" ,
170169 value_fn = lambda data : data .docker_info .containers_running ,
171170 entity_category = EntityCategory .DIAGNOSTIC ,
172- entity_registry_enabled_default = False ,
173171 state_class = SensorStateClass .MEASUREMENT ,
174172 ),
175173 PortainerEndpointSensorEntityDescription (
176174 key = "containers_stopped" ,
177175 translation_key = "containers_stopped" ,
178176 value_fn = lambda data : data .docker_info .containers_stopped ,
179177 entity_category = EntityCategory .DIAGNOSTIC ,
180- entity_registry_enabled_default = False ,
181178 state_class = SensorStateClass .MEASUREMENT ,
182179 ),
183180 PortainerEndpointSensorEntityDescription (
184181 key = "containers_paused" ,
185182 translation_key = "containers_paused" ,
186183 value_fn = lambda data : data .docker_info .containers_paused ,
187184 entity_category = EntityCategory .DIAGNOSTIC ,
188- entity_registry_enabled_default = False ,
189185 state_class = SensorStateClass .MEASUREMENT ,
190186 ),
191187 PortainerEndpointSensorEntityDescription (
192188 key = "images_count" ,
193189 translation_key = "images_count" ,
194190 value_fn = lambda data : data .docker_info .images ,
195191 entity_category = EntityCategory .DIAGNOSTIC ,
196- entity_registry_enabled_default = False ,
197192 state_class = SensorStateClass .MEASUREMENT ,
198193 ),
199194 PortainerEndpointSensorEntityDescription (
@@ -203,6 +198,7 @@ class PortainerEndpointSensorEntityDescription(SensorEntityDescription):
203198 device_class = SensorDeviceClass .DATA_SIZE ,
204199 state_class = SensorStateClass .MEASUREMENT ,
205200 native_unit_of_measurement = UnitOfInformation .BYTES ,
201+ suggested_unit_of_measurement = UnitOfInformation .MEBIBYTES ,
206202 entity_category = EntityCategory .DIAGNOSTIC ,
207203 entity_registry_enabled_default = False ,
208204 ),
0 commit comments