Skip to content

Can't call domain services using domain.entity.service() pattern #173

Closed
@Nxt3

Description

@Nxt3

I used to be able to do:

light.master_bedroom.turn_on(brightness=254, color_temp=275)

but now I get errors:

AttributeError: 'StateVal' object has no attribute 'turn_on'
2021-02-26 16:06:29 ERROR (MainThread) [custom_components.pyscript.file.daytime.turnOnDayLights] Exception in <file.daytime.turnOnDayLights> line 9:
            light.master_bedroom.turn_on(brightness=254, color_temp=275)
            ^
AttributeError: 'StateVal' object has no attribute 'turn_on'

I recently upgraded my core version to core-2021.3.0b1; might have something to do with this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions