@@ -163,10 +163,7 @@ def __init__(
163163 def __repr__ (self ) -> str :
164164 """Return a string representation of the sensor."""
165165 return (
166- f"VictronSwitch(device={ self ._device .name } , "
167- f"metric={ self ._switch .short_id } , "
168- f"translation_key={ self ._attr_translation_key } , "
169- f"value={ self ._attr_native_value } )"
166+ f"VictronSwitch({ super ().__repr__ ()} , is_on={ self ._attr_is_on } )"
170167 )
171168
172169 async def _on_update_task (self , metric : VictronVenusMetric ):
@@ -205,7 +202,7 @@ def __init__(
205202
206203 def __repr__ (self ) -> str :
207204 """Return a string representation of the sensor."""
208- return f"VictronNumber({ super ().__repr__ ()} )"
205+ return f"VictronNumber({ super ().__repr__ ()} , native_value= { self . _attr_native_value } )"
209206
210207 async def _on_update_task (self , metric : VictronVenusMetric ):
211208 self ._attr_native_value = metric .value
@@ -263,7 +260,7 @@ def __init__(
263260
264261 def __repr__ (self ) -> str :
265262 """Return a string representation of the sensor."""
266- return f"VictronSelect({ super ().__repr__ ()} )"
263+ return f"VictronSelect({ super ().__repr__ ()} , current_option= { self . _attr_current_option } , options= { self . _attr_options } )"
267264
268265 async def _on_update_task (self , metric : VictronVenusMetric ):
269266 self ._attr_current_option = self ._map_value_to_state (metric .value )
0 commit comments