Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes #70 #71

Merged
merged 2 commits into from
Jun 7, 2024
Merged

fixes #70 #71

merged 2 commits into from
Jun 7, 2024

Conversation

snicker
Copy link
Collaborator

@snicker snicker commented Jun 4, 2024

No description provided.

@snicker snicker requested a review from Snuffy2 June 4, 2024 01:20
@Snuffy2
Copy link
Collaborator

Snuffy2 commented Jun 4, 2024

This is how black sometimes breaks up long strings. Since the line break is between the curly braces, it still works just fine, it just looks weird. Feel free to change it if you'd like to. FWIW, I've moved away from including \ in multiline strings. I'd just do it like below, but any of these 3 ways (current, your fix, my fix) will work fine.

        _LOGGER.info(
            f"{self.entity_type.title()} Callback ({self.name}): "
            f"{state}. User Data: {user_data}"
        )

@Snuffy2 Snuffy2 merged commit 8ec9259 into master Jun 7, 2024
@Snuffy2 Snuffy2 deleted the 20240603_fix_70 branch June 7, 2024 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants