`oh-clock-card`: Remove (broken) background property in favour of style config (#2932)

This avoids confusion because `background` is not working anymore.
Use `style: background: ` instead.

---------

Signed-off-by: Florian Hotze <dev@florianhotze.com>
(cherry picked from commit 56e0ebe23e)
4.3.x
Florian Hotze 2024-12-19 15:31:40 +01:00
parent c00c9a4572
commit 813f11930f
2 changed files with 0 additions and 6 deletions

View File

@ -70,11 +70,6 @@ Display a digital clock in a card
<PropOption value="HH:mm:ss" label="Current time ('HH:mm:ss')" />
</PropOptions>
</PropBlock>
<PropBlock type="TEXT" name="background" label="Background style">
<PropDescription>
Background style (in CSS "background" attribute format)
</PropDescription>
</PropBlock>
<PropBlock type="TEXT" name="timeFontSize" label="Time Font Size">
<PropDescription>
Time font size (e.g. "34px")

View File

@ -143,7 +143,6 @@ export const OhClockCardDefinition = () => new WidgetDefinition('oh-clock-card',
{ value: 'LT', label: 'Localized time (\'LT\'. e.g. \'8:02 PM\')' },
{ value: 'HH:mm:ss', label: 'Current time (\'HH:mm:ss\')' }
], false),
pt('background', 'Background style', 'Background style (in CSS "background" attribute format)'),
pt('timeFontSize', 'Time Font Size', 'Time font size (e.g. "34px")'),
pt('timeFontWeight', 'Time Font Weight', 'Time font weight (e.g. "normal" or "bold")'),
pb('showDate', 'Show the date', 'Show the current date in addition to the time'),