mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-18 18:40:47 -04:00
home assistant entities yay yay
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
// Preserve raw sensor text and units; a sensor's non-on value is never "off".
|
||||
export default function ReadOnlyControl({ entity }) {
|
||||
return <span className="break-words text-xs text-slate-200">
|
||||
{entity.available ? (entity.password ? '••••••' : `${entity.state}${entity.unit ? ` ${entity.unit}` : ''}`) : 'Unavailable'}
|
||||
</span>;
|
||||
}
|
||||
Reference in New Issue
Block a user