Skip to content

Commit 1917bdd

Browse files
Force update group power sensor when member sensor force updates (#3938)
* feat: force update group power sensor * chore(lint): [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 32a6365 commit 1917bdd

File tree

1 file changed

+1
-0
lines changed
  • custom_components/powercalc/sensors/group

1 file changed

+1
-0
lines changed

custom_components/powercalc/sensors/group/custom.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,7 @@ class GroupedSensor(BaseEntity, SensorEntity):
426426
_attr_should_poll = False
427427
_unrecorded_attributes = frozenset({ATTR_ENTITIES, ATTR_IS_GROUP})
428428
_is_energy_sensor = False
429+
_attr_force_update = True
429430

430431
def __init__(
431432
self,

0 commit comments

Comments
 (0)